Resource information
URL | https://api.softnetsport.com/v2/outrights |
---|---|
XSD | |
Method | GET |
Description | Returns a list of all betting offers including markets, prematch and live odds depends on which package you have subscribed to |
Cache | No |
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. There is more information concerning authorization in the API introduction section |
lang | xsd:string | Determines the language for the output data. The complete list of possible languages can be retrieved using the API resource: languages.index |
tz | xsd:string | Determines timezone for the output data. The complete list of possible time zones is included in the 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 betting offers on page. Used in paginated data. Default value is 50. Possible values: 5, 10, 25, 50, 100 |
season_id | xsd:int | The complete list of possible seasons can be retrieved using the API resource: seasons.index |
is_live_offer | xsd:string | Possible values:
|
market_id | xsd:int | Determines the market identificator. Possibility to input multiple identifiers, separated by comma. The complete list of possible markets can be retrieved using the API resource: markets.index |
scope_id | xsd:int | Determines the scope identificator. Possibility to input multiple identifiers, separated by comma. The complete list of possible scopes can be retrieved using the API resource: scopes.index |
market_type_id | xsd:int | Determines the market type identificator. Possibility to input multiple identifiers, separated by comma. The complete list of possible markets types can be retrieved using the API resource: markets-types.index |
date_from | xsd:string | Selection datetime, format 'yyyy-mm-dd hh:mm:ss'. Date from which betting offers should be returned. If you use a single date_from parameter you will receive all betting offers that start in the 24 hours from requested date |
date_to | xsd:string | Selection datetime, format 'yyyy-mm-dd hh:mm:ss'. End date of returned betting offers. The maximum period beetwen date_from and date_to parameter is 30 days. |
sport_id | xsd:int | Determines the sport identifier related to the betting offers The complete list of possible sports can be retrieved using the API resource: sports.index |
area_id | xsd:int | Determines the area identifier related to the betting offers The complete list of possible areas can be retrieved using the API resource: areas.index |
competiton_id | xsd:int | Determines the competition identifier related to the betting offers The complete list of possible competitions can be retrieved using the API resource: competitions.index |
participant_id | xsd:int | Determines the participant identifier related to the betting offers or outcomes. Possibility to input multiple identifiers, separated by comma The complete list of possible participants can be retrieved using the API resource: participants.index |
default_market | xsd:int | Possible values:
|
sort_type | xsd:string | Determines sort order of data. Possible values:
|
sort_order | xsd:string | Additional parameter for sort_type which determines the direction of sorting (ascending, descending)
|
market_ids | xsd:string | List of market identifiers separated by a comma (e.g. 123,234,321). Possibility to input multiple identifiers, separated by comma. The complete list of possible markets can be retrieved using the API resource: markets.index |
betting_offer_status | xsd:string | Determines status of betting offer. Possible values:
|
resulted_outcomes | xsd:string | Determines values of outcomes result:
|
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/outrights.xml?token={{YOUR_TOKEN}} | Returns a list of all betting offers for the customer in XML format |
https://api.softnetsport.com/v2/outrights?token={{YOUR_TOKEN}} | Returns a list of all betting offers for the customer in JSON format |
https://api.softnetsport.com/v2/outrights.xml?token={{YOUR_TOKEN}}&is_live_market=yes | Returns a list of all live betting offers for the customer in XML format |
https://api.softnetsport.com/v2/outrights.xml?token={{YOUR_TOKEN}}&is_live_market=no | Returns a list of all prematch betting offers for the customer in XML format |
Output elements
.outrights | |
---|---|
..season | |
id | Unique identifier for the season. The complete list of possible events can be retrieved using the API resource: seasons.index |
name | Name of the event e.g: Premiership 2017/2018 |
sport_id | Unique identifier for the sport. The complete list of possible sports can be retrieved using the API resource: sports.index |
area_id | Unique identifier for the area. The complete list of possible areas can be retrieved using the API resource: areas.index |
competition_id | Unique identifier for the competition. The complete list of possible competitions can be retrieved using the API resource: competitions.index |
...betting_offer | |
id | Identifier of the betting offer |
bookmaker_id | Identifier of the bookmaker assigned to you during subscription purchase |
is_live_offer | Possible values:
|
market_id | Identifier for the market. The complete list of possible markets and their default market can be retrieved using the API resource: markets.index |
market_name | Name of the market |
replacer | For some markets we are using replacers. It's a list of key=value atributtes seperated by | e.g. participant1=Barcelona | participant2=Real. The complete list of possible replacers for each market can be retrieved using the API resource: markets.index. Possible null value. |
status | Possible values:
|
display_order | The parameter used to sort betting offers. Sorting direction is ascending |
start_date | Date when the betting offer starts in format DATE_TIME (2015-03-01 11:02) |
open_at | Date when the betting offer was opened in format DATE_TIME (2015-03-01 11:02) |
closed_at | Date when the betting offer should be closed in format DATE_TIME (2015-03-01 11:02) |
ut | Information about the date and time of when the record was last updated. Format UNIX_TIMESTAMP |
....outcomes | |
.....outcome | |
id | Identifier of the outcome |
default_outcome_id | Default outcome id. The complete list of possible default outcomes can be retrieved using the API resource: default-outcomes.index |
name | Name of the outcome |
participant_id | Identifier of the participant related to the outcome. Possible null value. The complete list of possible participants can be retrieved using the API resource: participants.index |
status | Possible values:
|
result | Possible values:
Possible empty value for outcomes yet to be settled. |
starting_odds | The starting odds offered by the bookmaker in decimal format |
odds | The current odds offered by the bookmaker in decimal format |
probability | Probability of the outcome in format 0.65 |
display_order | The parameter used to sort outcomes. Sorting direction is ascending |
ut | Information about the date and time of when the record was last updated. Format UNIX_TIMESTAMP |
Sample XML/JSON
<?xml version="1.0" encoding="UTF-8"?> <outrights> <season id="12121" name="World Cup 2016/2017" sport_id="11" area_id="65" competition_id="201"> <betting_offer id="273462" bookmaker_id="1" is_live_market="no" market_id="201" market_name="Winner" replacer="participant1=Peter Prevc|participant2=Severin Freund|participant3=Maciej Kot|participant4=J. A.Forfang" status="active" display_order="1" start_date="2016-11-24 15:30:00" open_at="2016-10-20 08:17" closed_at="2016-11-22 17:00:00" ut="12345622323"> <outcomes> <outcome id="15001" default_outcome_id="82" name="Peter Prevc" participant_id="958573" status="active" result="" starting_odds="1.35" odds="1.35" probability="0.55" display_order="1" ut="12345622323" /> <outcome id="15002" default_outcome_id="82" name="Severin Freund" participant_id="957751" status="active" result="" starting_odds="9.00" odds="9.00" probability="0.08" display_order="2" ut="12345622323" /> <outcome id="15003" default_outcome_id="82" name="Maciej Kot" participant_id="958183" status="active" result="" starting_odds="9.00" odds="9.00" probability="0.08" display_order="3" ut="12345622323" /> <outcome id="15004" default_outcome_id="82" name="J. A. Forfang" participant_id="957734" status="active" result="" starting_odds="15.00" odds="15.00" probability="0.05" display_order="4" ut="12345622323" /> </outcomes> </betting_offer> </season> </outrights>
FAQ
For each example below you should use resource https://api.softnetsport.com/v2/event-betting-offers?token={{YOUR_TOKEN}} and described query parameters
Question | Query paremeters | Note | |
---|---|---|---|
1 | How do you retrieve a list of prematch betting offers including odds? |
| |
2 | How do you retrieve a list of live betting offers including odds? |
| |
3 | How do you retrieve a list of betting offers for a selected date for soccer? |
| |
4 | How do you retrieve a list of live betting offers for soccer? |
| |
5 | How do you retrieve a list of prematch betting offers for soccer? |
| |
6 | How do you retrieve a list of prematch betting offers for soccer eg. England only? |
| |
7 | How do you retrieve a list of live betting offers for a single event? |
| |
8 | How do you retrieve a list of betting offers updated from selected date? |
| |
9 | How do you retrieve a list of betting offers having resulted a part of outcomes? |
| |
10 | How do you retrieve a list of betting offers related to FC Barcelona? |
|