- 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 day
- 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 matches for a specified day
The method is used to get the list of matches for a specified id of the day. URL: https://offvariance.com/api/public/{format}/tour/{id}/{method}
An example of a request:
json:
https://offvariance.com/api/public/json/tour/3344/matches/?key=demokey
xml:
https://offvariance.com/api/public/xml/tour/3344/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/tour/3344/matches/?key=xxxx&from=1564574515&...
{
"result":[
{
"id":"63078",
"updateTime":1564574094
},
...
]
}
<root>
<result>
<element-0>
<id>63078</id>
<updateTime>1564574094</updateTime>
</element-0>
...
</result>
</root>
Retrieving the xG statistics of the matches for a specified day
The method is used to get the list of matches with calculated xG statistics for a specified id of the day. URL: https://offvariance.com/api/public/{format}/tour/{id}/{method}/{team}
An example of a request:
json:
https://offvariance.com/api/public/json/tour/522/xg/?key=demokey
https://offvariance.com/api/public/json/tour/522/xg/home/?key=demokey
https://offvariance.com/api/public/json/tour/522/xg/away/?key=demokey
xml:
https://offvariance.com/api/public/xml/tour/522/xg/?key=demokey
https://offvariance.com/api/public/xml/tour/522/xg/home/?key=demokey
https://offvariance.com/api/public/xml/tour/522/xg/away/?key=demokey
- away - away team
- home - home team
*xg included only in xg90-03 and xgpower datasets. This means calculated xG90 parameters for the whole match.
{
"result": [
{
"idteam": "6712",
"idmatch": "15170",
"classic": {
"game": 2,
"down": 4,
"wins": 1,
"draw": 0,
"defeat": 1,
"miss": 4,
"gd": 0,
"points": 3,
"xg": 3.57,
"xga": 3.4,
"xgd": 0.1,
"gdxgd": -0.1,
"xp": 0,
"xgsh": 0.21,
"xgash": 0.18,
"xg90": 1.69,
"xga90": 1.61,
"xgxga90": 1.05,
"xg90xga90sum": 3.3
},
"xg90": {
"draw": {
"xg90": 1,
"xga90": 0.8,
"xgxga": 1.24,
"xg90xga90sum": 1.8,
"minutes": 28
},
"zero": {
"xg90": 1,
"xga90": 0.8,
"xgxga": 1.24,
"xg90xga90sum": 1.8,
"minutes": 28
},
"cxp": {
"xg90": 0,
"xga90": 13.6,
"xgxga": 0,
"xg90xga90sum": 13.6,
"minutes": 9
},
"cop": {
"xg90": 1.2,
"xga90": 0.65,
"xgxga": 1.84,
"xg90xga90sum": 1.85,
"minutes": 84
},
"com": {
"xg90": 0,
"xga90": 2.93,
"xgxga": 0,
"xg90xga90sum": 2.93,
"minutes": 12
},
"cxm": {
"xg90": 0.9,
"xga90": 0,
"xgxga": 0,
"xg90xga90sum": 0.9,
"minutes": 62
}
},
"five": {
"draw": {
"xg90": 1,
"xga90": 0.8,
"xgxga": 1.24,
"xg90xga90sum": 1.8,
"minutes": 28
},
"zero": {
"xg90": 1,
"xga90": 0.8,
"xgxga": 1.24,
"xg90xga90sum": 1.8,
"minutes": 28
},
"cxp": {
"xg90": 0,
"xga90": 13.6,
"xgxga": 0,
"xg90xga90sum": 13.6,
"minutes": 9
},
"cop": {
"xg90": 1.2,
"xga90": 0.65,
"xgxga": 1.84,
"xg90xga90sum": 1.85,
"minutes": 84
},
"com": {
"xg90": 0,
"xga90": 2.93,
"xgxga": 0,
"xg90xga90sum": 2.93,
"minutes": 12
},
"cxm": {
"xg90": 0.9,
"xga90": 0,
"xgxga": 0,
"xg90xga90sum": 0.9,
"minutes": 62
}
},
"xg90-03": {
"xg": {
"xg90": 1.02,
"xga90": 1.04,
"xgxga": 0.98,
"xg90xga90sum": 2.06,
"minutes": 190
},
"draw": {
"xg90": 1,
"xga90": 0.8,
"xgxga": 1.24,
"xg90xga90sum": 1.8,
"minutes": 28
},
"zero": {
"xg90": 1,
"xga90": 0.8,
"xgxga": 1.24,
"xg90xga90sum": 1.8,
"minutes": 28
},
"cxp": {
"xg90": 0,
"xga90": 6.5,
"xgxga": 0,
"xg90xga90sum": 6.5,
"minutes": 9
},
"cop": {
"xg90": 0,
"xga90": 0,
"xgxga": 1.46,
"xg90xga90sum": 0,
"minutes": 0
},
"com": {
"xg90": 0,
"xga90": 0.37,
"xgxga": 0,
"xg90xga90sum": 0.37,
"minutes": 96
},
"cxm": {
"xg90": 0.46,
"xga90": 0,
"xgxga": 0,
"xg90xga90sum": 0.46,
"minutes": 71
}
},
"xgpower": {
"xg": {
"xg90": 1.02,
"xga90": 1.04,
"xgxga": 0.98,
"xg90xga90sum": 2.06,
"minutes": 190
},
"draw": {
"xg90": 1,
"xga90": 0.8,
"xgxga": 1.24,
"xg90xga90sum": 1.8,
"minutes": 28
},
"zero": {
"xg90": 1,
"xga90": 0.8,
"xgxga": 1.24,
"xg90xga90sum": 1.8,
"minutes": 28
},
"cxp": {
"xg90": 0,
"xga90": 6.5,
"xgxga": 0,
"xg90xga90sum": 6.5,
"minutes": 9
},
"cop": {
"xg90": 0,
"xga90": 0,
"xgxga": 1.46,
"xg90xga90sum": 0,
"minutes": 0
},
"com": {
"xg90": 0,
"xga90": 0.37,
"xgxga": 0,
"xg90xga90sum": 0.37,
"minutes": 96
},
"cxm": {
"xg90": 0.46,
"xga90": 0,
"xgxga": 0,
"xg90xga90sum": 0.46,
"minutes": 71
}
}
},
...
]
}
<root>
<result>
<element-0>
<idteam>6712</idteam>
<idmatch>15170</idmatch>
<classic>
<game>2</game>
<down>4</down>
<wins>1</wins>
<draw>0</draw>
<defeat>1</defeat>
<miss>4</miss>
<gd>0</gd>
<points>3</points>
<xg>3.57</xg>
<xga>3.4</xga>
<xgd>0.1</xgd>
<gdxgd>-0.1</gdxgd>
<xp>0</xp>
<xgsh>0.21</xgsh>
<xgash>0.18</xgash>
<xg90>1.69</xg90>
<xga90>1.61</xga90>
<xgxga90>1.05</xgxga90>
<xg90xga90sum>3.3</xg90xga90sum>
</classic>
<xg90>
<draw>
<xg90>1</xg90>
<xga90>0.8</xga90>
<xgxga>1.24</xgxga>
<xg90xga90sum>1.8</xg90xga90sum>
<minutes>28</minutes>
</draw>
<zero>
<xg90>1</xg90>
<xga90>0.8</xga90>
<xgxga>1.24</xgxga>
<xg90xga90sum>1.8</xg90xga90sum>
<minutes>28</minutes>
</zero>
<cxp>
<xg90>0</xg90>
<xga90>13.6</xga90>
<xgxga>0</xgxga>
<xg90xga90sum>13.6</xg90xga90sum>
<minutes>9</minutes>
</cxp>
<cop>
<xg90>1.2</xg90>
<xga90>0.65</xga90>
<xgxga>1.84</xgxga>
<xg90xga90sum>1.85</xg90xga90sum>
<minutes>84</minutes>
</cop>
<com>
<xg90>0</xg90>
<xga90>2.93</xga90>
<xgxga>0</xgxga>
<xg90xga90sum>2.93</xg90xga90sum>
<minutes>12</minutes>
</com>
<cxm>
<xg90>0.9</xg90>
<xga90>0</xga90>
<xgxga>0</xgxga>
<xg90xga90sum>0.9</xg90xga90sum>
<minutes>62</minutes>
</cxm>
</xg90>
<five>
<draw>
<xg90>1</xg90>
<xga90>0.8</xga90>
<xgxga>1.24</xgxga>
<xg90xga90sum>1.8</xg90xga90sum>
<minutes>28</minutes>
</draw>
<zero>
<xg90>1</xg90>
<xga90>0.8</xga90>
<xgxga>1.24</xgxga>
<xg90xga90sum>1.8</xg90xga90sum>
<minutes>28</minutes>
</zero>
<cxp>
<xg90>0</xg90>
<xga90>13.6</xga90>
<xgxga>0</xgxga>
<xg90xga90sum>13.6</xg90xga90sum>
<minutes>9</minutes>
</cxp>
<cop>
<xg90>1.2</xg90>
<xga90>0.65</xga90>
<xgxga>1.84</xgxga>
<xg90xga90sum>1.85</xg90xga90sum>
<minutes>84</minutes>
</cop>
<com>
<xg90>0</xg90>
<xga90>2.93</xga90>
<xgxga>0</xgxga>
<xg90xga90sum>2.93</xg90xga90sum>
<minutes>12</minutes>
</com>
<cxm>
<xg90>0.9</xg90>
<xga90>0</xga90>
<xgxga>0</xgxga>
<xg90xga90sum>0.9</xg90xga90sum>
<minutes>62</minutes>
</cxm>
</five>
<xg90-03>
<xg>
<xg90>1.02</xg90>
<xga90>1.04</xga90>
<xgxga>0.98</xgxga>
<xg90xga90sum>2.06</xg90xga90sum>
<minutes>190</minutes>
</xg>
<draw>
<xg90>1</xg90>
<xga90>0.8</xga90>
<xgxga>1.24</xgxga>
<xg90xga90sum>1.8</xg90xga90sum>
<minutes>28</minutes>
</draw>
<zero>
<xg90>1</xg90>
<xga90>0.8</xga90>
<xgxga>1.24</xgxga>
<xg90xga90sum>1.8</xg90xga90sum>
<minutes>28</minutes>
</zero>
<cxp>
<xg90>0</xg90>
<xga90>6.5</xga90>
<xgxga>0</xgxga>
<xg90xga90sum>6.5</xg90xga90sum>
<minutes>9</minutes>
</cxp>
<cop>
<xg90>0</xg90>
<xga90>0</xga90>
<xgxga>1.46</xgxga>
<xg90xga90sum>0</xg90xga90sum>
<minutes>0</minutes>
</cop>
<com>
<xg90>0</xg90>
<xga90>0.37</xga90>
<xgxga>0</xgxga>
<xg90xga90sum>0.37</xg90xga90sum>
<minutes>96</minutes>
</com>
<cxm>
<xg90>0.46</xg90>
<xga90>0</xga90>
<xgxga>0</xgxga>
<xg90xga90sum>0.46</xg90xga90sum>
<minutes>71</minutes>
</cxm>
</xg90-03>
<xgpower>
<xg>
<xg90>1.02</xg90>
<xga90>1.04</xga90>
<xgxga>0.98</xgxga>
<xg90xga90sum>2.06</xg90xga90sum>
<minutes>190</minutes>
</xg>
<draw>
<xg90>1</xg90>
<xga90>0.8</xga90>
<xgxga>1.24</xgxga>
<xg90xga90sum>1.8</xg90xga90sum>
<minutes>28</minutes>
</draw>
<zero>
<xg90>1</xg90>
<xga90>0.8</xga90>
<xgxga>1.24</xgxga>
<xg90xga90sum>1.8</xg90xga90sum>
<minutes>28</minutes>
</zero>
<cxp>
<xg90>0</xg90>
<xga90>6.5</xga90>
<xgxga>0</xgxga>
<xg90xga90sum>6.5</xg90xga90sum>
<minutes>9</minutes>
</cxp>
<cop>
<xg90>0</xg90>
<xga90>0</xga90>
<xgxga>1.46</xgxga>
<xg90xga90sum>0</xg90xga90sum>
<minutes>0</minutes>
</cop>
<com>
<xg90>0</xg90>
<xga90>0.37</xga90>
<xgxga>0</xgxga>
<xg90xga90sum>0.37</xg90xga90sum>
<minutes>96</minutes>
</com>
<cxm>
<xg90>0.46</xg90>
<xga90>0</xga90>
<xgxga>0</xgxga>
<xg90xga90sum>0.46</xg90xga90sum>
<minutes>71</minutes>
</cxm>
</xgpower>
</element-0>
...
</result>
</root>