Game API › League of Legends Legacy
Endpoints
- LegacyGET /leagueoflegends/matches/{match_id}/tournament-codes
Retrieve the tournament codes of a match.
- LegacyGET /leagueoflegends/matches/{match_id}/match-history-urls
Retrieve the match history URLs of a match.
- LegacyGET /leagueoflegends/matches/{match_id}/match-history-urls/{number}
Retrieve a single match history URL from a match.
- LegacyPUT /leagueoflegends/matches/{match_id}/match-history-urls/{number}
Update a single match history URL in a match.
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-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with scope (see Authorization)
- Rangestring
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_idstring
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_numberinteger
A relative identifier between 1 and the total number of games, to identify the game within the match.
Example: 1
- tournament_codestring
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-Keystring
API key of your application (see Authentication)
- Rangestring
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_idstring
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_numberinteger
A relative identifier between 1 and the total number of games, to identify the game within the match.
Example: 1
- match_history_urlstring|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
- X-Api-Keystring
API key of your application (see Authentication)
Path parameters
- match_idstring
The id of the match.
Example: 212738912376478976
- numberinteger
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_urlstring|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
- 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.
Example: 212738912376478976
- numberinteger
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_urlstring|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_urlstring|null
The URL of the match history for this game.
Example: "https://matchhistory.na.leagueoflegends.com/en/#match-details/TRLH4/1002520052?gameHash=a471c8236a388b91"