Method for retrieving data according to the day

Content:

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.
Both methods include two parameters to state the range of filtration: "from" and "to".

An example of usage:
https://offvariance.com/api/public/json/­tour/3344/matches/?key=xxxx&from=1564574515&amp...

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
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>
				


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

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
team
Not compulsory. Allows to get the xG statistics separately for home and away matches. Team takes one of the two meanings: принимает одно из двух значений:
  • away - away team
  • home - home team
If the team parameter is not specified, the statistics will be calculated for both home and away matches.
Parameters of a response:
Parameter
Description
idteam
Team
idmatch
The identifier of a match
classic
Data set with the main xG parameters
xg90
The sum of xG for 90 minutes of the matches 
five
xG for the last 5 matches
xg90-03
The sum xG for 90 minutes of the matches where the highest xG value is 0,30
xgpower
Power rank
Description of the main parameters in the dataset classic:
Parameter
Description
game
Number of played games
down
Number of scored goals
wins
Number of wins
draw
Number of draws
defeat
Number of defeats
miss
Number of missed goals
gd
Difference between scored and missed goals
points
Number of points
X
Expected goals for
xga
Expected goals against
xgd
Difference of for and against expected goals
gdxgd
Parameter which evaluates the average team luck in the previous matches based on the difference between for and against goals and expected for and against goals
xgsh
Average number of scored goals per one shot
xgash
Average number of missed goals per one shot
xg90
Number of expected goals for per 90 minutes
xga90
Number of expected goals against per 90 minutes
xgxga90
The ratio of expected goals for per 90 minutes to expected goals against per 90 minutes
xg90xga90sum
The sum of expected goals for and expected goals against per 90 minutes

Description of the main parameters in xg90, xg90-03, xgpower and five data sets:
Parameter
Description
draw
xG scored during the draw
zero
xG scored during 0-0 score
cxp
xG scored during the advantage in 2 and more goals
cop
xG scored during the advantage in1 goal
com
xG scored during the rivals advantage in 1 goal
cxm
xG scored during the rivals advantage in 2 and more goals
Description of the parameters in draw, zero, cxp, cop, com, cxm and xg* data sets:

*xg included only in xg90-03 and xgpower datasets. This means calculated xG90 parameters for the whole match.


Parameter
Description
xg90
Expected goals for scored for 90 minutes of a match
xga90
Expected goals against scored for 90 minutes of a match
xgxga
The number of xG divided on the number of xGA
xg90xga90sum
The sum of the expected goals for per 90 minutes and the expected goals against per 90 minutes
minutes
The number of minutes during which the xG was scored
application/json
text/xml
	{
	"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>