- 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 seasons
- 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 the days for a specified season
The method is used to get the list of the days for a specified season id. URL: https://offvariance.com/api/public/{format}/seasons/{id}/{method}
An example of a request:
json:
https://offvariance.com/api/public/json/seasons/3331/tours/?key=demokey
xml:
https://offvariance.com/api/public/xml/seasons/3331/tours/?key=demokey
Parameters of a request:
Parameter
Description
format
Format of server response data
key
Your API key
id
The identifier of a season
method
The name of the method
Parameters of a response:
Parameter
Description
id
The identifier of a country in the database
name
The name of the day on the website
application/json
text/xml
{
"result":[
{
"id":3332,
"name": "1-й тур"
},
...
]
}
<root>
<result>
<element-0>
<id>3332</id>
<name>1-й тур</name>
</element-0>
...
</result>
</root>
Retrieving the list of the matches for a specified season
The method is used for getting the list of matches for a specified season id. URL: https://offvariance.com/api/public/{format}/seasons/{id}/{method}
An example of a request:
json:
https://offvariance.com/api/public/json/seasons/3331/matches/?key=demokey
xml:
https://offvariance.com/api/public/xml/seasons/3331/matches/?key=demokey
The matches are filtered with 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/seasons/3331/matches/updates/?key=xxxxx&from=1564574...
Parameters of a request:
Parameter
Description
format
Format of server response data
key
Your API key
id
The identifier of a season
method
The name of a method
updateTimestamp
Date in a Timestamp. Not compulsory. Allows filtering the matches by displaying only the matches whose date is bigger than the specified date. Outdated parameter.
Parameters of a response:
Parameter
Description
id
The identifier of a match in the database
updateTime
The date of match update in a Timestamp
dateMatch
The date of the match in a Timestamp
application/json
text/xml
{
"result":[
{
"id":"63078",
"updateTime":1564574094
},
...
]
}
<root>
<result>
<element-0>
<id>63078</id>
<updateTime>1564574094</updateTime>
</element-0>
...
</result>
</root>