Game API › League of Legends Legacy

LegacyGET /leagueoflegends/matches/{match_id}/tournament-codes

This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.

Returns the list of tournament codes of a match.

Resource URL

https://api.toornament.com/game/v2/leagueoflegends/matches/{match_id}/tournament-codes

HTTP headers

  • X-Api-Key
    string

    API key of your application (see Authentication)

  • Authorization
    string

    Access token with scope (see Authorization)

  • Range
    string

    A range of requested items using the games unit. The size of the range can not exceed 50. (see Pagination)

    Example: games=0-49

Path parameters

  • match_id
    string

    The id of the match.

    Example: 212738912376478976

Query Parameters

This endpoint does not have any query parameters.

Request Body

This endpoint does not require a request body.

Response

[206] Success

Example
[
    {
        "game_number": 1,
        "tournament_code": "NA1234a-1a23b456-a1b2-1abc-ab12-1234567890ab"
    }
]
Structure (collection)
  • game_number
    integer

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

    Example: 1

  • tournament_code
    string

    The League of Legends tournament code for this game.

    Example: "NA1234a-1a23b456-a1b2-1abc-ab12-1234567890ab"

LegacyGET /leagueoflegends/matches/{match_id}/match-history-urls

This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.

Returns the list of match history URLs of a match.

Resource URL

https://api.toornament.com/game/v2/leagueoflegends/matches/{match_id}/match-history-urls

HTTP headers

  • X-Api-Key
    string

    API key of your application (see Authentication)

  • Range
    string

    A range of requested items using the games unit. The size of the range can not exceed 50. (see Pagination)

    Example: games=0-49

Path parameters

  • match_id
    string

    The id of the match.

    Example: 212738912376478976

Query Parameters

This endpoint does not have any query parameters.

Request Body

This endpoint does not require a request body.

Response

[206] Success

Example
[
    {
        "game_number": 1,
        "match_history_url": "https:\/\/matchhistory.na.leagueoflegends.com\/en\/#match-details\/TRLH4\/1002520052?gameHash=a471c8236a388b91"
    }
]
Structure (collection)
  • game_number
    integer

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

    Example: 1

  • match_history_url
    string|null

    The URL of the match history for this game.

    Example: "https://matchhistory.na.leagueoflegends.com/en/#match-details/TRLH4/1002520052?gameHash=a471c8236a388b91"

LegacyGET /leagueoflegends/matches/{match_id}/match-history-urls/{number}

This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.

Returns a single match history URL from a match.

Resource URL

https://api.toornament.com/game/v2/leagueoflegends/matches/{match_id}/match-history-urls/{number}

HTTP headers

Path parameters

  • match_id
    string

    The id of the match.

    Example: 212738912376478976

  • number
    integer

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

    Example: 1

Query Parameters

This endpoint does not have any query parameters.

Request Body

This endpoint does not require a request body.

Response

[200] Success

Example
{
    "match_history_url": "https:\/\/matchhistory.na.leagueoflegends.com\/en\/#match-details\/TRLH4\/1002520052?gameHash=a471c8236a388b91"
}
Structure (object)
  • match_history_url
    string|null

    The URL of the match history for this game.

    Example: "https://matchhistory.na.leagueoflegends.com/en/#match-details/TRLH4/1002520052?gameHash=a471c8236a388b91"

LegacyPUT /leagueoflegends/matches/{match_id}/match-history-urls/{number}

This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.

Updates a single match history URL in a match. Match history URLs can not be manually updated if the Tournament Codes feature is enabled in the tournament.

Resource URL

https://api.toornament.com/game/v2/leagueoflegends/matches/{match_id}/match-history-urls/{number}

HTTP headers

Path parameters

  • match_id
    string

    The id of the match.

    Example: 212738912376478976

  • number
    integer

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

    Example: 1

Query Parameters

This endpoint does not have any query parameters.

Request Body

Match history url

Example
{
    "match_history_url": "https:\/\/matchhistory.na.leagueoflegends.com\/en\/#match-details\/TRLH4\/1002520052?gameHash=a471c8236a388b91"
}
Structure (object)
  • match_history_url
    string|null

    The URL of the match history for this game.

    Example: "https://matchhistory.na.leagueoflegends.com/en/#match-details/TRLH4/1002520052?gameHash=a471c8236a388b91"

Response

[200] Success

Example
{
    "match_history_url": "https:\/\/matchhistory.na.leagueoflegends.com\/en\/#match-details\/TRLH4\/1002520052?gameHash=a471c8236a388b91"
}
Structure (object)
  • match_history_url
    string|null

    The URL of the match history for this game.

    Example: "https://matchhistory.na.leagueoflegends.com/en/#match-details/TRLH4/1002520052?gameHash=a471c8236a388b91"