Viewer API › Brackets Legacy
LegacyGET /tournaments/{tournament_id}/stages/{stage_id}/bracket-nodes
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Returns the bracket nodes of a stage. A bracket node represents a match and some extra data.
Resource URL
https://api.toornament.com/viewer/v2/tournaments/{tournament_id}/stages/{stage_id}/bracket-nodes
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Rangestring
A range of requested items using the
nodes
unit. The size of the range can not exceed 128. (see Pagination)Example: nodes=0-127
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: 618943519431786343,618965178941654763
- group_numbersarray
A list of group numbers to filter.
Example: 3,4
- round_idsarray
A list of round ids to filter.
Example: 618943519431786343,618965178941654763
- round_numbersarray
A list of round numbers to filter.
Example: 1,2
- min_depthinteger
A minimum depth to filter.
- max_depthinteger
A maximal depth to filter.
Request Body
This endpoint does not require a request body.
Response
[206] Bracket nodes retrieved.
Example
[ { "id": "618954615761465416", "stage_id": "618983668512789184", "group_id": "618985165765456465", "round_id": "618965146546456651", "number": 2, "type": "duel", "status": "pending", "scheduled_datetime": "2015-12-31T00:00:00+00:00", "played_at": "2015-12-31T00:00:00+00:00", "depth": 2, "branch": "lb", "opponents": [ { "number": 1, "result": "win", "rank": 3, "forfeit": false, "score": 15, "source_type": "winner", "source_node_id": "618946514654565656", "participant": { "id": "375143143408309123", "name": "Northmen", "custom_fields": {} } } ] } ]
Structure (collection)
- idstring
The id of the bracket node and the match (they both share the same id).
Example: "618954615761465416"
- stage_idstring
The id of the stage that contains this bracket node.
Example: "618983668512789184"
- group_idstring
The id of the group that contains this bracket node.
Example: "618985165765456465"
- round_idstring
The id of the round that contains this bracket node.
Example: "618965146546456651"
- numberinteger
The match number (a relative identifier within a round).
Example: 2
- typestring
The match type.
Possible values: duel, ffa, bye
- statusstring
The status of the match.
Possible values: pending, running, completed
- scheduled_datetimestring|null
The scheduled date of the match in RFC 3339 (combined date, time and utc offset).
Format: datetime
Example: "2015-12-31T00:00:00+00:00"
- played_atstring|null
The timestamp on which the match was played (a result was provided) in RFC 3339 (combined date, time and utc offset).
Format: datetime
Example: "2015-12-31T00:00:00+00:00"
- depthinteger
The depth of the node in the bracket.
Example: 2
- branchstring|null
The core branch of the node in the bracket.
Possible values: wb, lb, gf
- opponentsarray[object]
List of match opponents.
LegacyGET /stages/{stage_id}/bracket-nodes
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Returns the bracket nodes of a stage. A bracket node represents a match and some extra data.
Resource URL
https://api.toornament.com/viewer/v2/stages/{stage_id}/bracket-nodes
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Rangestring
A range of requested items using the
nodes
unit. The size of the range can not exceed 128. (see Pagination)Example: nodes=0-127
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: 618943519431786343,618965178941654763
- group_numbersarray
A list of group numbers to filter.
Example: 3,4
- round_idsarray
A list of round ids to filter.
Example: 618943519431786343,618965178941654763
- round_numbersarray
A list of round numbers to filter.
Example: 1,2
- min_depthinteger
A minimum depth to filter.
- max_depthinteger
A maximal depth to filter.
Request Body
This endpoint does not require a request body.
Response
[206] Bracket nodes retrieved.
Example
[ { "tournament_id": "378426939508809728", "id": "618954615761465416", "stage_id": "618983668512789184", "group_id": "618985165765456465", "round_id": "618965146546456651", "number": 2, "type": "duel", "status": "pending", "scheduled_datetime": "2015-12-31T00:00:00+00:00", "played_at": "2015-12-31T00:00:00+00:00", "depth": 2, "branch": "lb", "opponents": [ { "number": 1, "result": "win", "rank": 3, "forfeit": false, "score": 15, "source_type": "winner", "source_node_id": "618946514654565656", "participant": { "id": "375143143408309123", "name": "Northmen", "custom_fields": {} } } ] } ]
Structure (collection)
- tournament_idstring
The id of the tournament that contains this bracket node.
Example: "378426939508809728"
- idstring
The id of the bracket node and the match (they both share the same id).
Example: "618954615761465416"
- stage_idstring
The id of the stage that contains this bracket node.
Example: "618983668512789184"
- group_idstring
The id of the group that contains this bracket node.
Example: "618985165765456465"
- round_idstring
The id of the round that contains this bracket node.
Example: "618965146546456651"
- numberinteger
The match number (a relative identifier within a round).
Example: 2
- typestring
The match type.
Possible values: duel, ffa, bye
- statusstring
The status of the match.
Possible values: pending, running, completed
- scheduled_datetimestring|null
The scheduled date of the match in RFC 3339 (combined date, time and utc offset).
Format: datetime
Example: "2015-12-31T00:00:00+00:00"
- played_atstring|null
The timestamp on which the match was played (a result was provided) in RFC 3339 (combined date, time and utc offset).
Format: datetime
Example: "2015-12-31T00:00:00+00:00"
- depthinteger
The depth of the node in the bracket.
Example: 2
- branchstring|null
The core branch of the node in the bracket.
Possible values: wb, lb, gf
- opponentsarray[object]
List of match opponents.