- 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 countries
- 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 all the countries
This method is used to get the list of the countries which are active on the website. URL: https://offvariance.com/api/public/{format}/countries
An example of a request:
json:
https://offvariance.com/api/public/json/countries/?key=demokey
xml:
https://offvariance.com/api/public/xml/countries/?key=demokey
{
"result":[
{
"id":990,
"name":"Australia"
},
...
]
}
<root>
<result>
<element-0>
<id>990</id>
<name>Australia</name>
</element-0>
...
</result>
</root>
Retrieving the list of leagues (divisions) for a specified country
This method is used to get the list of the leagues (divisions) according to a specified country id. URL: https://offvariance.com/api/public/{format}/countries/{id}/{method}
An example of a request:
json:
https://offvariance.com/api/public/json/countries/2287/leagues/?key=demokey
xml:
https://offvariance.com/api/public/xml/countries/2287/leagues/?key=demokey
{
"result":[
{
"id":2510,
"name":"Tipico Bundesliga"
},
...
]
}
<root>
<result>
<element-0>
<id>2510</id>
<name>Tipico Bundesliga</name>
</element-0>
...
</result>
</root>
Retrieving the list of matches for a specified country
The method is used to get the list of matches according to a specified country id. URL: https://offvariance.com/api/public/{format}/countries/{id}/{method}
An example of a request:
json:
https://offvariance.com/api/public/json/countries/2287/matches/?key=demokey
xml:
https://offvariance.com/api/public/xml/countries/2287/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/countries/2287/matches/?key=xxxx&from=1564574515&...
{
"result":[
{
"id":63078,
"updateTime":1564574094
},
...
]
}
<root>
<result>
<element-0>
<id>63078</id>
<updateTime>1564574094</updateTime>
</element-0>
...
</result>
</root>