Viewer API › Rankings Legacy
LegacyGET /tournaments/{tournament_id}/stages/{stage_id}/ranking-items
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Returns ranking items of a stage with a small summary of the associated participant in the ranking. The items are always ordered by ascending position.
Resource URL
https://api.toornament.com/viewer/v2/tournaments/{tournament_id}/stages/{stage_id}/ranking-itemsHTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Rangestring
A range of requested items using the
itemsunit. The size of the range can not exceed 50. (see Pagination)Example: items=0-49
Path parameters
- tournament_idstring
The id of the tournament you want to retrieve data about.
- stage_idstring
The id of the stage you want to retrieve data about.
Query Parameters
- group_idsarray
A list of group ids to filter.
Example: 618965314871946714,618932178746476544
- group_numbersarray
A list of group numbers to filter.
Example: 3,4
Request Body
This endpoint does not require a request body.
Response
[206] List of ranking items.
Example
[
{
"id": "618983668512789184",
"group_id": "618983668512789184",
"number": 2,
"position": 4,
"rank": 3,
"participant": {
"id": "375143143408309123",
"name": "Jon Snow",
"custom_fields": {}
},
"points": 17,
"properties": {
"wins": 1,
"draws": 0,
"losses": 0,
"played": 1,
"forfeits": 0,
"score_for": 0,
"score_against": 0,
"score_difference": 0
}
}
]Structure (collection)
- idstring
The id of the ranking item.
Example: "618983668512789184"
- group_idstring
The id of the group associated to this ranking.
Example: "618983668512789184"
- numberinteger
A number used as relative identifier within the ranking. It is determined from the seed attributed to the participant during the placement.
Example: 2
- positioninteger
A position used for presentation purposes. It is always unique within the same ranking.
Example: 4
- rankinteger|null
The ranking of the participant in the ranking. Multiple participants can share the same rank if they are tied after involving all configured tiebreakers.
Example: 3
- participantobject|null
- pointsinteger
A number of points acquired by the participant in the ranking.
Example: 17
- propertiesobject
A list of ranking metrics (see ranking properties).
Example: {"wins":1,"draws":0,"losses":0,"played":1,"forfeits":0,"score_for":0,"score_against":0,"score_difference":0}
LegacyGET /stages/{stage_id}/ranking-items
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Returns ranking items of a stage with a small summary of the associated participant in the ranking. The items are always ordered by ascending position.
Resource URL
https://api.toornament.com/viewer/v2/stages/{stage_id}/ranking-itemsHTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Rangestring
A range of requested items using the
itemsunit. The size of the range can not exceed 50. (see Pagination)Example: items=0-49
Path parameters
- stage_idstring
The id of the stage you want to retrieve data about.
Query Parameters
- group_idsarray
A list of group ids to filter.
Example: 618965314871946714,618932178746476544
- group_numbersarray
A list of group numbers to filter.
Example: 3,4
Request Body
This endpoint does not require a request body.
Response
[206] List of ranking items.
Example
[
{
"id": "618983668512789184",
"group_id": "618983668512789184",
"number": 2,
"position": 4,
"rank": 3,
"participant": {
"id": "375143143408309123",
"name": "Jon Snow",
"custom_fields": {}
},
"points": 17,
"properties": {
"wins": 1,
"draws": 0,
"losses": 0,
"played": 1,
"forfeits": 0,
"score_for": 0,
"score_against": 0,
"score_difference": 0
}
}
]Structure (collection)
- idstring
The id of the ranking item.
Example: "618983668512789184"
- group_idstring
The id of the group associated to this ranking.
Example: "618983668512789184"
- numberinteger
A number used as relative identifier within the ranking. It is determined from the seed attributed to the participant during the placement.
Example: 2
- positioninteger
A position used for presentation purposes. It is always unique within the same ranking.
Example: 4
- rankinteger|null
The ranking of the participant in the ranking. Multiple participants can share the same rank if they are tied after involving all configured tiebreakers.
Example: 3
- participantobject|null
- pointsinteger
A number of points acquired by the participant in the ranking.
Example: 17
- propertiesobject
A list of ranking metrics (see ranking properties).
Example: {"wins":1,"draws":0,"losses":0,"played":1,"forfeits":0,"score_for":0,"score_against":0,"score_difference":0}