Resource information
URL | https://api.softnetsport.com/v2/markets |
---|---|
XSD | https://api.softnetsport.com/assets/API/docs/xsd/markets.index.xsd |
Method | GET |
Description | Returns markets used in BetPartner product |
Cache | 60 seconds |
Authorization required | No |
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 |
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 |
market_type_id | xsd:int | Determines the market type identifier |
scope_id | xsd:int | Determines the scope of the market |
subtype | xsd:string | Determines the subtype of the market. Possible values:
|
sport_id | xsd:int | Determines the sport identifier for the market |
is_live | xsd:string | |
is_prematch | xsd:string | |
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.softnetsport.com/v2/markets.xml | Returns a list of all markets in XML format |
https://api.softnetsport.com/v2/markets | Returns a list of all markets in JSON format |
Lista marketów dla sportu | |
Lista marketu dla scope, typu | |
Ostatnio zmienione markety | |
Output elements
.markets | |
---|---|
..market | |
id | Unique identifier of the market |
sport_id | Identifier for the sport |
name | Market name's pattern including replacers. It's used to generate final market name for specific event |
static_name | Static name of the market |
market_type_id | Identifier type for the market e.g. Totals, Asian, Corners |
scope_id | Unique identifier for the scope |
has_replacer | Possible values:
|
is_live | Possible values:
|
is_prematch | Possible values:
|
is_default_market | Possible values:
|
subtype | Possible values:
|
display_order | The parameter used to sort markets |
description | Description of the market |
status | Possible values:
|
ut | Information about the date and time of when the record was last updated. Format UNIX_TIMESTAMP |
...default_outcomes | |
....default_outcome | |
id | Identifier of the default outcome |
name | Name of the outcome e.g. Home, Under |
static name | Patter of the outcome name e.g. Under #param# |
required_participant | Internal attribute. Possible values:
|
display_order | The parameter used to sort outcomes in the market |
..replacers | |
Samples XML/JSON
<markets> <market id="1" sport_id="5" name="3way" static_name="3way" market_type_id="1" scope_id="2" has_replacer="yes" is_live="yes" is_prematch="yes" subtype="3-way" is_default="yes" display_order="1" description="Match result in regular time"> <default_outcomes> <default_outcome id=1 name="#participant1#" is_single_outcome="yes" required_participant="yes" display_order="1"/> <default_outcome id=2 name="Draw" is_single_outcome="yes" required_participant="no" display_order="2"> <default_outcome id=3 name="#participant2#" is_single_outcome="yes" required_participant="yes" display_order="3"> </default_outcomes> <replacers> <replacer id="7" name="#participant1#" format="text" description="Name of the first participant connected to specific object" /> <replacer id="8" name="#participant2#" format="text" description="Name of the second participant connected to specific object" /> </replacers> </market> <market id="1" sport_id="5" name="3way" static_name="3way" market_type_id="1" scope_id="2" has_replacer="yes" is_live="yes" is_prematch="yes" subtype="3-way" is_default="yes" display_order="1" description="Match result in regular time"> <default_outcomes> <default_outcome id=1 name="#participant1#" is_single_outcome="yes" required_participant="yes" display_order="1"/> <default_outcome id=2 name="Draw" is_single_outcome="yes" required_participant="no" display_order="2"> <default_outcome id=3 name="#participant2#" is_single_outcome="yes" required_participant="yes" display_order="3"> </default_outcomes> <replacers> <replacer id="7" name="#participant1#" format="text" description="Name of the first participant connected to specific object" /> <replacer id="8" name="#participant2#" format="text" description="Name of the second participant connected to specific object" /> </replacers> </market> </markets>