Esports game statistics
GET
/
Markdown copyOpen in the playground →
Esports: the objectives each side secured in a single game — kills, gold, towers, inhibitors, dragons (split by element in dragonsByType for League of Legends), elder dragons, barons and the herald, plus barracks and first blood in Dota 2.
For a side with no objectives at the source the value is null, and in Counter-Strike that is always the case. gold, dragons and barons belong to League of Legends; barracks and firstBlood to Dota 2.
Parameters
idpathrequired
fixture id issued by DataSportsAPI, a positive integer
gameIdpathrequired
game id issued by DataSportsAPI — EsportsGame.id as returned by /v2/fixtures/{id}/games
Response
- meta
- gameId
- errors
- 403
history_not_in_plan— the fixture predates the history your plan covers404not_found— the game id is not one of this fixture’s games, or DataSportsAPI never issued the id
The errors every /v2 call shares (key, plan, quota, rate) are listed under error codes.
curl -H "Authorization: Bearer sk_live_…" \
"https://api.datasportsapi.com/v2/fixtures/{id}/games/{gameId}/statistics"Example
{ "data": {
"home": { "kills": 8, "gold": 57524, "towers": 3, "inhibitors": 0, "dragons": 3, "elderDragons": 0, "barons": 1, "heraldTaken": false,
"barracks": null, "firstBlood": null,
"dragonsByType": { "chemtech": 0, "cloud": 0, "hextech": 0, "infernal": 0, "mountain": 0, "ocean": 3 } },
"away": { … } },
"meta": { "gameId": 9021440 } }