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 |
type | 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 |
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 | Identifier of the market |
name | Name of the market e.g. Fulltime - 1x2 |
pattern | Internal attribute (e.g. Jump distance #addText# → Jump distance Noriaki Kasai) |
type | Identifier type for the market e.g. Totals, Asian, Corners |
scope_id | Unique identifier for the scope |
sport_id | Unique identifier for the sport |
param_value | Possible values:
|
add_text | Possible values:
|
subtype | Possible values:
|
status | Possible values:
|
description | Description of the market |
display_order | The parameter used to sort markets |
ut | Information about the date and time of when the record was last updated. Format UNIX_TIMESTAMP |
...default_outcomes | |
id | Identifier of the outcome |
name | Name of the outcome e.g. Home, Under |
pattern | Patter of the outcome name e.g. Under #param# |
display_order | The parameter used to sort outcomes in the market |