Game API › Counter-Strike: GO Legacy

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

Path parameters

  • match_id
    string

    The id of the match to gather data from.

  • number
    integer

    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)
  • provider
    string|null

    The source providing the statistics data.

    Possible values: adminbot, ebot

  • round
    integer

    A relative identifier between 1 and the total number of rounds, to identify the round within the game.

    Example: 9

  • outcome
    string|null

    The outcome of the round.

    Possible values: team_eliminated, bomb_defused, target_bombed, target_saved

  • opponents
    array[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

Path parameters

  • match_id
    string

    The id of the match to gather data from.

  • number
    integer

    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)
  • provider
    string|null

    The source providing the statistics data.

    Possible values: adminbot, ebot

  • round
    integer

    A relative identifier between 1 and the total number of rounds, to identify the round within the game.

    Example: 9

  • outcome
    string|null

    The outcome of the round.

    Possible values: team_eliminated, bomb_defused, target_bombed, target_saved

  • opponents
    array[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

Path parameters

  • match_id
    string

    The id of the match to gather data from.

  • number
    integer

    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)
  • provider
    string|null

    The source providing the statistics data.

    Possible values: adminbot, ebot

  • round
    integer

    A relative identifier between 1 and the total number of rounds, to identify the round within the game.

    Example: 9

  • outcome
    string|null

    The outcome of the round.

    Possible values: team_eliminated, bomb_defused, target_bombed, target_saved

  • opponents
    array[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)
  • provider
    string|null

    The source providing the statistics data.

    Possible values: adminbot, ebot

  • round
    integer

    A relative identifier between 1 and the total number of rounds, to identify the round within the game.

    Example: 9

  • outcome
    string|null

    The outcome of the round.

    Possible values: team_eliminated, bomb_defused, target_bombed, target_saved

  • opponents
    array[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

Path parameters

  • match_id
    string

    The id of the match to gather data from.

  • number
    integer

    The relative identifier of the game within the match, to gather data from.

  • round_number
    integer

    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)
  • provider
    string|null

    The source providing the statistics data.

    Possible values: adminbot, ebot

  • round
    integer

    A relative identifier between 1 and the total number of rounds, to identify the round within the game.

    Example: 9

  • outcome
    string|null

    The outcome of the round.

    Possible values: team_eliminated, bomb_defused, target_bombed, target_saved

  • opponents
    array[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

Path parameters

  • match_id
    string

    The id of the match to gather data from.

  • number
    integer

    The relative identifier of the game within the match, to gather data from.

  • round_number
    integer

    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)
  • provider
    string|null

    The source providing the statistics data.

    Possible values: adminbot, ebot

  • round
    integer

    A relative identifier between 1 and the total number of rounds, to identify the round within the game.

    Example: 9

  • outcome
    string|null

    The outcome of the round.

    Possible values: team_eliminated, bomb_defused, target_bombed, target_saved

  • opponents
    array[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)
  • provider
    string|null

    The source providing the statistics data.

    Possible values: adminbot, ebot

  • round
    integer

    A relative identifier between 1 and the total number of rounds, to identify the round within the game.

    Example: 9

  • outcome
    string|null

    The outcome of the round.

    Possible values: team_eliminated, bomb_defused, target_bombed, target_saved

  • opponents
    array[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

Path parameters

  • match_id
    string

    The id of the match to gather data from.

  • number
    integer

    The relative identifier of the game within the match, to gather data from.

  • round_number
    integer

    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.

Response

[204] Success