Viewer API › Participants Legacy
Endpoints
- LegacyGET /tournaments/{tournament_id}/participants
Retrieve the participants of a tournament.
- LegacyGET /tournaments/{tournament_id}/participants/{id}
Retrieve a single participant of a tournament.
- LegacyGET /participants
Retrieve participants of tournament(s).
- LegacyGET /participants/{id}
Retrieve a single participant.
LegacyGET /tournaments/{tournament_id}/participants
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Returns the participants of the given tournament. The data provided in the participant depends on whether the participant type is team or player. This setting can be found in the tournament.
Resource URL
https://api.toornament.com/viewer/v2/tournaments/{tournament_id}/participants
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Rangestring
A range of requested items using the
participants
unit. The size of the range can not exceed 50. (see Pagination)Example: participants=0-49
Path parameters
- tournament_idstring
The id of the tournament the participants are from.
Query Parameters
- namestring
The string to be looked for in the name of the participant.
- sortstring
A method to sort the filtered data. “created_asc” and “created_desc” sort the participants from their creation date (earliest to latest, and inversely). “Alphabetic” sorts the participants using their case-insensitive names.
Possible values: created_asc, created_desc, alphabetic
Default: created_asc
Request Body
This endpoint does not require a request body.
Response
[206] Participants retrieved.
Example
[ { "lineup": [ { "name": "Jon Snow", "custom_fields": {} } ], "id": "375143143408309123", "name": "Northmen", "custom_fields": {} } ]
Structure (collection)
- lineuparray[object]
A list of players in a team (Only if the tournament participant type is “team”).
- idstring
The id of the participant.
Example: "375143143408309123"
- namestring
The name of the participant.
Max. length: 40 characters
Example: "Northmen"
- custom_fieldsobject
The values of the public custom fields configured in the tournament using the machine names as keys. For more information, please read the Custom Fields documentation.
Example: {}
LegacyGET /tournaments/{tournament_id}/participants/{id}
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Returns a participant identified with the given id. The data provided in the participant depends on whether the participant type is team or player. This setting can be found in the tournament.
Resource URL
https://api.toornament.com/viewer/v2/tournaments/{tournament_id}/participants/{id}
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
Path parameters
- tournament_idstring
The id of the tournament the participants are from.
- idstring
The id of the participant to retrieve.
Query Parameters
This endpoint does not have any query parameters.
Request Body
This endpoint does not require a request body.
Response
[200] Participant retrieved.
Example
{ "lineup": [ { "name": "Jon Snow", "custom_fields": {} } ], "id": "375143143408309123", "name": "Northmen", "custom_fields": {} }
Structure (object)
- lineuparray[object]
A list of players in a team (Only if the tournament participant type is “team”).
- idstring
The id of the participant.
Example: "375143143408309123"
- namestring
The name of the participant.
Max. length: 40 characters
Example: "Northmen"
- custom_fieldsobject
The values of the public custom fields configured in the tournament using the machine names as keys. For more information, please read the Custom Fields documentation.
Example: {}
LegacyGET /participants
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Returns the participants. The data provided in the participant depends on whether the participant type is team or player.
Resource URL
https://api.toornament.com/viewer/v2/participants
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Rangestring
A range of requested items using the
participants
unit. The size of the range can not exceed 50. (see Pagination)Example: participants=0-49
Query Parameters
- tournament_idsarray
Only return participants for the given list of tournaments.
Example: 618965416546776434,618975467354349191
- playlist_idsarray
Only return groups for the tournaments listed in the playlist.
Example: 123485236848698874,135864989139387313
- namestring
The string to be looked for in the name of the participant.
- sortstring
A method to sort the filtered data. “created_asc” and “created_desc” sort the participants from their creation date (earliest to latest, and inversely). “Alphabetic” sorts the participants using their case-insensitive names.
Possible values: created_asc, created_desc, alphabetic
Default: created_asc
Request Body
This endpoint does not require a request body.
Response
[206] Participants retrieved.
Example
[ { "tournament_id": "378426939508809728", "lineup": [ { "name": "Jon Snow", "custom_fields": {} } ], "id": "375143143408309123", "name": "Northmen", "custom_fields": {} } ]
Structure (collection)
- tournament_idstring
The id of the tournament that contains this participant.
Example: "378426939508809728"
- lineuparray[object]
A list of players in a team (Only if the tournament participant type is “team”).
- idstring
The id of the participant.
Example: "375143143408309123"
- namestring
The name of the participant.
Max. length: 40 characters
Example: "Northmen"
- custom_fieldsobject
The values of the public custom fields configured in the tournament using the machine names as keys. For more information, please read the Custom Fields documentation.
Example: {}
LegacyGET /participants/{id}
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Returns a participant identified with the given id. The data provided in the participant depends on whether the participant type is team or player. This setting can be found in the tournament.
Resource URL
https://api.toornament.com/viewer/v2/participants/{id}
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
Path parameters
- idstring
The id of the participant to retrieve.
Query Parameters
This endpoint does not have any query parameters.
Request Body
This endpoint does not require a request body.
Response
[200] Participant retrieved.
Example
{ "tournament_id": "378426939508809728", "lineup": [ { "name": "Jon Snow", "custom_fields": {} } ], "id": "375143143408309123", "name": "Northmen", "custom_fields": {} }
Structure (object)
- tournament_idstring
The id of the tournament that contains this participant.
Example: "378426939508809728"
- lineuparray[object]
A list of players in a team (Only if the tournament participant type is “team”).
- idstring
The id of the participant.
Example: "375143143408309123"
- namestring
The name of the participant.
Max. length: 40 characters
Example: "Northmen"
- custom_fieldsobject
The values of the public custom fields configured in the tournament using the machine names as keys. For more information, please read the Custom Fields documentation.
Example: {}