- Method for retrieving data according to the countries
- Updates
- Demo data
- Method for retrieving data according to the leagues
- Method for retrieving data according to the seasons
- Method for retrieving data according to the day
- Method for retrieving data of the match
- CSV method for retrieving the events of the match
- CSV method for retrieving the matches
- CSV method for retrieving the odds
Method for retrieving data according to the leagues
- Method for retrieving data according to the countries
- Updates
- Demo data
- Method for retrieving data according to the leagues
- Method for retrieving data according to the seasons
- Method for retrieving data according to the day
- Method for retrieving data of the match
- CSV method for retrieving the events of the match
- CSV method for retrieving the matches
- CSV method for retrieving the odds
Retrieving the list of seasons according to a specified league
The method is used to get the list of the seasons according to the specified league id. URL: https://offvariance.com/api/public/{format}/leagues/{id}/{method}
An example of a request:
json:
https://offvariance.com/api/public/json/leagues/2510/seasons/?key=demokey
xml:
https://offvariance.com/api/public/xml/leagues/2510/seasons/?key=demokey
{
"result":[
{
"id":3331,
"name": "2019/2020"
},
...
]
}
<root>
<result>
<element-0>
<id>3331</id>
<name>2019/2020</name>
</element-0>
...
</result>
</root>
Retrieving the list of matches for a specified league
The method is used to get the list of the matches for a specified league id (division id). URL: https://offvariance.com/api/public/{format}/leagues/{id}/{method}
An example of a request:
json:
https://offvariance.com/api/public/json/leagues/2510/matches/?key=demokey
xml:
https://offvariance.com/api/public/xml/leagues/2510/matches/?key=demokey
Matches are filtered by the next methods:
- ".../matches/updates/" method is used to filter the matches by the updates on the website;
- ".../matches/dates/" method is used to filter the matches by the date of a match.
An example of usage:
https://offvariance.com/api/public/json/leagues/2510/matches/?key=xxxx&from=1564574515&a...
{
"result":[
{
"id":63078,
"updateTime":1564574094
},
...
]
}
<root>
<result>
<element-0>
<id>63078</id>
<updateTime>1564574094</updateTime>
</element-0>
...
</result>
</root>