Game API › Counter-Strike: GO Legacy
Endpoints
- LegacyGET /counterstrike_go/matches/{match_id}/games/{number}/stats
Retrieve the statistics from the latest round of a match game.
- LegacyGET /counterstrike_go/matches/{match_id}/games/{number}/stats/rounds
Retrieve the statistics from all rounds of a match game.
- LegacyPUT /counterstrike_go/matches/{match_id}/games/{number}/stats/rounds
Update the statistics of all rounds of a match game.
- LegacyGET /counterstrike_go/matches/{match_id}/games/{number}/stats/rounds/{round_number}
Retrieve the statistics up to a specific round of a match game.
- LegacyPUT /counterstrike_go/matches/{match_id}/games/{number}/stats/rounds/{round_number}
Update the statistics of a single round of a match game.
- LegacyDELETE /counterstrike_go/matches/{match_id}/games/{number}/stats/rounds/{round_number}
Delete the statistics of a single round.
LegacyGET /counterstrike_go/matches/{match_id}/games/{number}/stats
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Returns the statistics from the latest round of a match game.
Resource URL
https://api.toornament.com/game/v2/counterstrike_go/matches/{match_id}/games/{number}/stats
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
Path parameters
- match_idstring
The id of the match to gather data from.
- numberinteger
The relative identifier of the game within the match, to gather data from.
Query Parameters
This endpoint does not have any query parameters.
Request Body
This endpoint does not require a request body.
Response
[200] Success
Example
{ "provider": null, "round": 9, "outcome": null, "opponents": [ { "number": 1, "result": "win", "side": "terrorist", "players": [ { "name": "Bob", "steam_id": "STEAM_0:1:132456", "kills": 14, "deaths": 4, "assists": 2, "kills_per_deaths": 3.5, "headshots": 6, "team_kills": 0, "entry_kills": 4, "damages": 1062, "bomb_planted": 2, "bomb_defused": 0, "clutch3": 1, "clutch4": 0, "clutch5": 0 } ] } ] }
Structure (object)
- providerstring|null
The source providing the statistics data.
Possible values: adminbot, ebot
- roundinteger
A relative identifier between 1 and the total number of rounds, to identify the round within the game.
Example: 9
- outcomestring|null
The outcome of the round.
Possible values: team_eliminated, bomb_defused, target_bombed, target_saved
- opponentsarray[object]
The list of opponents in this round.
LegacyGET /counterstrike_go/matches/{match_id}/games/{number}/stats/rounds
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Returns the statistics from all rounds of a match game.
Resource URL
https://api.toornament.com/game/v2/counterstrike_go/matches/{match_id}/games/{number}/stats/rounds
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
Path parameters
- match_idstring
The id of the match to gather data from.
- numberinteger
The relative identifier of the game within the match, to gather data from.
Query Parameters
This endpoint does not have any query parameters.
Request Body
This endpoint does not require a request body.
Response
[200] Success
Example
[ { "provider": null, "round": 9, "outcome": null, "opponents": [ { "number": 1, "result": "win", "side": "terrorist", "players": [ { "name": "Bob", "steam_id": "STEAM_0:1:132456", "kills": 14, "deaths": 4, "assists": 2, "kills_per_deaths": 3.5, "headshots": 6, "team_kills": 0, "entry_kills": 4, "damages": 1062, "bomb_planted": 2, "bomb_defused": 0, "clutch3": 1, "clutch4": 0, "clutch5": 0 } ] } ] } ]
Structure (collection)
- providerstring|null
The source providing the statistics data.
Possible values: adminbot, ebot
- roundinteger
A relative identifier between 1 and the total number of rounds, to identify the round within the game.
Example: 9
- outcomestring|null
The outcome of the round.
Possible values: team_eliminated, bomb_defused, target_bombed, target_saved
- opponentsarray[object]
The list of opponents in this round.
LegacyPUT /counterstrike_go/matches/{match_id}/games/{number}/stats/rounds
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Updates the statistics of all rounds of a match game.
Resource URL
https://api.toornament.com/game/v2/counterstrike_go/matches/{match_id}/games/{number}/stats/rounds
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with scope (see Authorization)
Path parameters
- match_idstring
The id of the match to gather data from.
- numberinteger
The relative identifier of the game within the match, to gather data from.
Query Parameters
This endpoint does not have any query parameters.
Request Body
Update or create all rounds
Example
[ { "provider": null, "round": 9, "outcome": null, "opponents": [ { "number": 1, "result": "win", "side": "terrorist", "players": [ { "name": "Bob", "steam_id": "STEAM_0:1:132456", "kills": 14, "deaths": 4, "assists": 2, "kills_per_deaths": 3.5, "headshots": 6, "team_kills": 0, "entry_kills": 4, "damages": 1062, "bomb_planted": 2, "bomb_defused": 0, "clutch3": 1, "clutch4": 0, "clutch5": 0 } ] } ] } ]
Structure (collection)
- providerstring|null
The source providing the statistics data.
Possible values: adminbot, ebot
- roundinteger
A relative identifier between 1 and the total number of rounds, to identify the round within the game.
Example: 9
- outcomestring|null
The outcome of the round.
Possible values: team_eliminated, bomb_defused, target_bombed, target_saved
- opponentsarray[object]
The list of opponents in this round.
Response
[200] Success
Example
[ { "provider": null, "round": 9, "outcome": null, "opponents": [ { "number": 1, "result": "win", "side": "terrorist", "players": [ { "name": "Bob", "steam_id": "STEAM_0:1:132456", "kills": 14, "deaths": 4, "assists": 2, "kills_per_deaths": 3.5, "headshots": 6, "team_kills": 0, "entry_kills": 4, "damages": 1062, "bomb_planted": 2, "bomb_defused": 0, "clutch3": 1, "clutch4": 0, "clutch5": 0 } ] } ] } ]
Structure (collection)
- providerstring|null
The source providing the statistics data.
Possible values: adminbot, ebot
- roundinteger
A relative identifier between 1 and the total number of rounds, to identify the round within the game.
Example: 9
- outcomestring|null
The outcome of the round.
Possible values: team_eliminated, bomb_defused, target_bombed, target_saved
- opponentsarray[object]
The list of opponents in this round.
LegacyGET /counterstrike_go/matches/{match_id}/games/{number}/stats/rounds/{round_number}
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Returns the statistics from the first round, up to a specific round of a match game.
Resource URL
https://api.toornament.com/game/v2/counterstrike_go/matches/{match_id}/games/{number}/stats/rounds/{round_number}
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
Path parameters
- match_idstring
The id of the match to gather data from.
- numberinteger
The relative identifier of the game within the match, to gather data from.
- round_numberinteger
The round number of the stats.
Query Parameters
This endpoint does not have any query parameters.
Request Body
This endpoint does not require a request body.
Response
[200] Success
Example
{ "provider": null, "round": 9, "outcome": null, "opponents": [ { "number": 1, "result": "win", "side": "terrorist", "players": [ { "name": "Bob", "steam_id": "STEAM_0:1:132456", "kills": 14, "deaths": 4, "assists": 2, "kills_per_deaths": 3.5, "headshots": 6, "team_kills": 0, "entry_kills": 4, "damages": 1062, "bomb_planted": 2, "bomb_defused": 0, "clutch3": 1, "clutch4": 0, "clutch5": 0 } ] } ] }
Structure (object)
- providerstring|null
The source providing the statistics data.
Possible values: adminbot, ebot
- roundinteger
A relative identifier between 1 and the total number of rounds, to identify the round within the game.
Example: 9
- outcomestring|null
The outcome of the round.
Possible values: team_eliminated, bomb_defused, target_bombed, target_saved
- opponentsarray[object]
The list of opponents in this round.
LegacyPUT /counterstrike_go/matches/{match_id}/games/{number}/stats/rounds/{round_number}
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Updates the statistics of a single round of a match game.
Resource URL
https://api.toornament.com/game/v2/counterstrike_go/matches/{match_id}/games/{number}/stats/rounds/{round_number}
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with scope (see Authorization)
Path parameters
- match_idstring
The id of the match to gather data from.
- numberinteger
The relative identifier of the game within the match, to gather data from.
- round_numberinteger
The relative identifier of the round within the game, to gather the stats from.
Query Parameters
This endpoint does not have any query parameters.
Request Body
Update or create
Example
{ "provider": null, "round": 9, "outcome": null, "opponents": [ { "number": 1, "result": "win", "side": "terrorist", "players": [ { "name": "Bob", "steam_id": "STEAM_0:1:132456", "kills": 14, "deaths": 4, "assists": 2, "kills_per_deaths": 3.5, "headshots": 6, "team_kills": 0, "entry_kills": 4, "damages": 1062, "bomb_planted": 2, "bomb_defused": 0, "clutch3": 1, "clutch4": 0, "clutch5": 0 } ] } ] }
Structure (object)
- providerstring|null
The source providing the statistics data.
Possible values: adminbot, ebot
- roundinteger
A relative identifier between 1 and the total number of rounds, to identify the round within the game.
Example: 9
- outcomestring|null
The outcome of the round.
Possible values: team_eliminated, bomb_defused, target_bombed, target_saved
- opponentsarray[object]
The list of opponents in this round.
Response
[200] Success
Example
{ "provider": null, "round": 9, "outcome": null, "opponents": [ { "number": 1, "result": "win", "side": "terrorist", "players": [ { "name": "Bob", "steam_id": "STEAM_0:1:132456", "kills": 14, "deaths": 4, "assists": 2, "kills_per_deaths": 3.5, "headshots": 6, "team_kills": 0, "entry_kills": 4, "damages": 1062, "bomb_planted": 2, "bomb_defused": 0, "clutch3": 1, "clutch4": 0, "clutch5": 0 } ] } ] }
Structure (object)
- providerstring|null
The source providing the statistics data.
Possible values: adminbot, ebot
- roundinteger
A relative identifier between 1 and the total number of rounds, to identify the round within the game.
Example: 9
- outcomestring|null
The outcome of the round.
Possible values: team_eliminated, bomb_defused, target_bombed, target_saved
- opponentsarray[object]
The list of opponents in this round.
LegacyDELETE /counterstrike_go/matches/{match_id}/games/{number}/stats/rounds/{round_number}
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Deletes the statistics of a single round of a match game.
Resource URL
https://api.toornament.com/game/v2/counterstrike_go/matches/{match_id}/games/{number}/stats/rounds/{round_number}
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with scope (see Authorization)
Path parameters
- match_idstring
The id of the match to gather data from.
- numberinteger
The relative identifier of the game within the match, to gather data from.
- round_numberinteger
The relative identifier of the round within the game, to gather the stats from.
Query Parameters
This endpoint does not have any query parameters.
Request Body
This endpoint does not require a request body.