CSV method for retrieving the events of the match

Content:

Appeal to the method

This method is used to retrieve the file with the events of the match.
At the current moment, only csv format is available.
url: https://offvariance.com/api/public/csv/events/{type}/?key={key}

Method is divided into two types: finished and future.
- finished - retrieving the evens of the ended matches;

The example of the request for retrieving the events of the ended matches:
https://offvariance.com/api/public/csv/events/finished/?key=demokey

Parameters of the request:
Parameter 
Description
key
Yor API key
type
Type of the method:
- finished

Fields of the file

Field
Description
ID_MATCH
ID of the match
DATE
Date of the match. Format "d.m.Y H:i:s" .
Contained only in the 1st line referred to the match.
TOURNAMENT
Tournament. Field with the name of the country, tournament and the season.
MINUTE
A minute of the event. Extra minutes signed by the "+" for  45 and 90 minutes.
SCORE
Score on the moment of the event.
PLAYER_#N#
Player who made an event. Name of the player includes the name of his team (in the brackets),
  • PLAYER_1 - player of the home team 
  • PLAYER_2 - player of the away team
The meaning can be specified in one of the fields only!
RESULT_#N#
The result of the event.
Types of the results:
- not = No event
- save = Save
- missing = Miss
- blocked = Block
- goal = Goal
- penal = Penalty scored
- nopenal = Penalty missed 
- redcard = Red card
- owngoal = Own goal

  • RESULT_1 - The result  in favour of the home team
  • RESULT_2 - The result  in favour of the away team
The meaning can be specified in one of the fields only!
XG_#N#
XG scored for the event.
  • XG_1 - xg scored by the home team
  • XG_2 - xg scored by the away team
The meaning can be specified in one of the fields only!
CURRENT_SCORE_#N#
Current number of goals including the event.
  • CURRENT_SCORE_1 - current number of goals for the home team
  • CURRENT_SCORE_2 - current number of goals for the away team
FINAL_SCORE_#N#
Final number of goals.
  • FINAL_SCORE_1 - final number of goals for the home team
  • FINAL_SCORE_2 - final number of goals for the away team
TEAM_#N#
  • TEAM_1 - Home team
  • TEAM_2 - Away team
O-WIN1
Opening odds. Home team win.
Contained only in the 1st line referred to the match.
O-DRAW
Opening odds. Draw.
Contained only in the 1st line referred to the match.
O-WIN2
Opening odds. Away team win.
Contained only in the 1st line referred to the match.
O-TB25
Opening odds. Total Over 2,5.
Contained only in the 1st line referred to the match.
O-TM25
Opening odds. Total Under 2,5.
Contained only in the 1st line referred to the match.
C-WIN1
Closing odds. Home team win.
Contained only in the 1st line referred to the match.
C-DRAW
Closing odds. Draw.
Contained only in the 1st line referred to the match.
C-WIN2
Closing odds. Away team win.
Contained only in the 1st line referred to the match.
C-TB25
Closing odds. Total Over 2,5.
Contained only in the 1st line referred to the match.
C-TM25
Closing odds. Total Under 2,5.
Contained only in the 1st line referred to the match.

Available demo data

You can retrieve demo data with the key: ?key=demokey
Available tournament: England —> Premier League