- Обновления
- Метод получения информации по странам
- Метод получения информации по лигам
- Метод получения информации по сезонам
- Метод получения информации по туру
- Метод получения информации по матчу
- CSV метод получения событий матчей
- CSV метод получения матчей
- CSV метод получения коэффициентов
- Демо-данные
Метод получения информации по туру
- Обновления
- Метод получения информации по странам
- Метод получения информации по лигам
- Метод получения информации по сезонам
- Метод получения информации по туру
- Метод получения информации по матчу
- CSV метод получения событий матчей
- CSV метод получения матчей
- CSV метод получения коэффициентов
- Демо-данные
Получение списка матчей по указанному туру
Метод предназначен для получения списка матчей по указанному id тура.
url: https://offvariance.com/api/public/{format}/tour/{id}/{method}
Пример запроса:
json:
https://offvariance.com/api/public/json/tour/3344/matches/?key=demokey
xml:
https://offvariance.com/api/public/xml/tour/3344/matches/?key=demokey
Фильтрация матчей происходит с помощью методов:
- Метод ".../matches/updates/" для фильтрации по дате обновления на сайте;
- Метод ".../matches/dates/" для фильтрации по дате проведения матча.
пример использования
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>
Получение статистики xg матчей по указанному туру
Метод предназначен для получения списка матчей с посчитаной xg статистикой по указанному id тура.
url: https://offvariance.com/api/public/{format}/tour/{id}/{method}/{team}
Пример запроса
json:
https://offvariance.com/api/public/json/tour/522/xg/?key=dGVzdHRlc3R0ZXN0dGVzdHRlc3Rlc3R0
https://offvariance.com/api/public/json/tour/522/xg/home/?key=dGVzdHRlc3R0ZXN0dGVzdHRlc3Rlc3R0
https://offvariance.com/api/public/json/tour/522/xg/away/?key=dGVzdHRlc3R0ZXN0dGVzdHRlc3Rlc3R0
xml:
https://offvariance.com/api/public/xml/tour/522/xg/?key=dGVzdHRlc3R0ZXN0dGVzdHRlc3Rlc3R0
https://offvariance.com/api/public/xml/tour/522/xg/home/?key=dGVzdHRlc3R0ZXN0dGVzdHRlc3Rlc3R0
https://offvariance.com/api/public/xml/tour/522/xg/away/?key=dGVzdHRlc3R0ZXN0dGVzdHRlc3Rlc3R0
- away - выездная команда
- home - домашняя команда
*xg - присутствует только в массивах xg90-03,xgpower-03 и xgpower. Обозначает посчитанные показатели xg90 для всего матча.
{
"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>