Resource information
URL | https://api. |
---|
statscore.com/v2/default-outcomes |
Method | GET |
---|---|
Description | Returns a list of default outcomes assigned to the markets. Each market contains their own default outcome(s). Default outcomes are always assigned to a market and used when the same outcomes appears for that market every time e.g. "Odd/even" market is always decided between default "Odd" and "Even" and a "1x2" market always has three possible outcomes: "Home", "Draw", "Away". |
Cache | 60 seconds |
Authorization required | Yes |
Method parameters
Name | Type | Description |
---|---|---|
There are no method parameters in this resource |
Query parameters
Name | Type | Description |
---|---|---|
token | xsd:string | REQUIRED. More information concerning authorization in API introduction section |
lang | xsd:string | Determines language for the output data. The complete list of possible languages can be retrieved using the API resource: languages.index |
page | xsd:int | Determines offset of paginated data. Default value is 1 which means first page |
limit | xsd:int | Determines maximum number of returned records on page. Used in paginated data. Default value is 500. Possible values: 5, 10, 25, 50, 100, 250, 500 |
required_participant | xsd:string | Determines required participant. Possible values:
|
is_single_outcome | xsd:string | Determines is single outcome. Possible values:
|
timestamp | xsd:unix_timestamp | Selection date, format UNIX_TIMESTAMP. Only changes that occurred or were updated after this timestamp will be returned. |
Method calling examples
Link | Description |
---|---|
https://api. |
statscore.com/v2/ |
default-outcomes.xml?token={{YOUR_TOKEN}} | Returns a list of all |
default outcomes for markets in XML format |
https://api. |
statscore.com/v2/ |
default-outcomes?token={{YOUR_TOKEN}} | Returns a list of all |
default outcomes for markets in JSON format |
Output elements
.default- |
---|
outcomes | |
---|---|
..default- |
outcome | |
---|---|
id | Unique identifier of the replacer |
name | Name of the default outcome |
static name |
Static name of the default outcome | |
is_single_outcome | Possible values: |
- decimal
- integer
- text
- variable_text
| |
required_participant | Possible values:
|
ut | Information about the date and time of when the stage record was last updated. Format UNIX_TIMESTAMP |
Sample XML/JSON
Code Block | ||
---|---|---|
| ||
<replacers><default_outcomes> <replacer<default_outcome id="1" name="#participant1#" static_name="Home" is_single_outcome="#totalPoints#" format="decimal" description="Contains the number of points (e.g in basketball, volleyball) used for specific market"yes" required_participant="yes" ut="45678901"/> <default_outcome id="2" name="#participant2#" static_name="Away" is_single_outcome="yes" required_participant="yes" ut="45678901"/> <default_outcome id="3" name="Draw" static_name="Draw" is_single_outcome="yes" required_participant="yes" ut="45678901"/> <default_outcome id="14" name="#objectParticipants#" static_name="Participant" is_single_outcome="no" required_participant="yes" ut="45678901"/> </replacers> </default_outcomes> |