Circuit API › Rankings
GET /rankings
Returns all rankings from your circuits.
Resource URL
https://api.toornament.com/circuit/v2/rankingsHTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:circuitscope (see Authorization) - Rangestring
A range of requested items using the
rankingsunit. The size of the range can not exceed 50. (see Pagination)Example: rankings=0-49
Query Parameters
- ranking_idsarray
Only return rankings for the given list of ids.
Example: 6031125052363620352,6036956611039707136
- circuit_idsarray
Only return rankings for the given list of circuit ids.
Example: 5617559294676615168,5629045554450325504
- disciplinestring
Only return rankings for the given discipline.
Example: leagueoflegends
- entity_typestring
Only return rankings for the given participating entity type.
Example: team
- season_idsarray
Only return rankings for the given list of seasons, identified by their ids.
Example: 5617559294676615168,5629045554450325504
- season_namesarray
Only return rankings for the given list of seasons, identified by their machine names.
Example: season_1,season_3
- region_idsarray
Only return rankings for the given list of regions, identified by their ids.
Example: 5617559294676615168,5629045554450325504
- region_namesarray
Only return rankings for the given list of regions, identified by their machine names.
Example: europe,americas,asia
Request Body
This endpoint does not require a request body.
Response
[206] Rankings retrieved.
Example
[
{
"id": "6031125052363620352",
"circuit": {
"id": "5756452414364442624",
"name": "Challenger League"
},
"name": "Global Ranking",
"engine": "points",
"discipline": "leagueoflegends",
"entity_type": "player",
"season": {
"id": "5629045554450325504",
"name": "Open Winter 2022",
"machine_name": "open_winter_2022"
},
"region": {
"id": "5629088936350867456",
"name": "Europe West",
"machine_name": "euw"
},
"settings": {
"default_scale": {
"1": 300,
"2-9": 100,
"10-20": 40
}
}
}
]Structure (collection)
- idstring
The unique identifier of the ranking.
Example: "6031125052363620352"
- circuitobject
The circuit associated with this ranking.
- namestring
The name of the ranking.
Max. length: 40 characters
Example: "Global Ranking"
- enginestring
The engine used to calculate the ranking.
Possible values: points, elo
- disciplinestring
Unique identifier of the ranking’s discipline.
Example: "leagueoflegends"
- entity_typestring
The type of participating entity to be analyzed in matches for the ranking.
Possible values: player, team, custom_player, custom_team
- seasonobject|null
The circuit season associated with this ranking.
- regionobject|null
The circuit region associated with this ranking.
- settingsobject
The settings of the ranking.
Example: {"default_scale":{"1":300,"2-9":100,"10-20":40}}
GET /rankings/{id}
Returns a ranking identified by the given id.
Resource URL
https://api.toornament.com/circuit/v2/rankings/{id}HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:circuitscope (see Authorization)
Path parameters
- idstring
The id of the ranking.
Query Parameters
This endpoint does not have any query parameters.
Request Body
This endpoint does not require a request body.
Response
[200] Ranking retrieved
Example
{
"id": "6031125052363620352",
"circuit": {
"id": "5756452414364442624",
"name": "Challenger League"
},
"name": "Global Ranking",
"engine": "points",
"discipline": "leagueoflegends",
"entity_type": "player",
"season": {
"id": "5629045554450325504",
"name": "Open Winter 2022",
"machine_name": "open_winter_2022"
},
"region": {
"id": "5629088936350867456",
"name": "Europe West",
"machine_name": "euw"
},
"settings": {
"default_scale": {
"1": 300,
"2-9": 100,
"10-20": 40
}
}
}Structure (object)
- idstring
The unique identifier of the ranking.
Example: "6031125052363620352"
- circuitobject
The circuit associated with this ranking.
- namestring
The name of the ranking.
Max. length: 40 characters
Example: "Global Ranking"
- enginestring
The engine used to calculate the ranking.
Possible values: points, elo
- disciplinestring
Unique identifier of the ranking’s discipline.
Example: "leagueoflegends"
- entity_typestring
The type of participating entity to be analyzed in matches for the ranking.
Possible values: player, team, custom_player, custom_team
- seasonobject|null
The circuit season associated with this ranking.
- regionobject|null
The circuit region associated with this ranking.
- settingsobject
The settings of the ranking.
Example: {"default_scale":{"1":300,"2-9":100,"10-20":40}}