Endpoints
- GET /tournaments/{tournament_id}/streams
Retrieve streams of a tournament.
Authorized Access - POST /tournaments/{tournament_id}/streams
Add a stream in a tournament.
Authorized Access - GET /tournaments/{tournament_id}/streams/{id}
Retrieve a single streams of a tournament.
Authorized Access - PATCH /tournaments/{tournament_id}/streams/{id}
Update a single streams of a tournament.
Authorized Access - DELETE /tournaments/{tournament_id}/streams/{id}
Delete a stream of a tournament.
Authorized Access - GET /tournaments/{tournament_id}/matches/{match_id}/streams
Retrieve streams of a match.
Authorized Access - PUT /tournaments/{tournament_id}/matches/{match_id}/streams
Update or add streams about one match.
Authorized Access
GET /tournaments/{tournament_id}/streams
Returns the streams of the given tournament.
Resource URL
https://api.toornament.com/organizer/v2/tournaments/{tournament_id}/streams
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:admin
scope (see Authorization) - Rangestring
A range of requested items using the
streams
unit. The size of the range cannot exceed 50. (see Pagination)Example: streams=0-49
Path parameters
- tournament_idstring
The id of the tournament for which streams must be retrieved
Query Parameters
This endpoint doesn't have any query parameters.
Request Body
This endpoint doesn't require a request body.
Response
[200] Streams retrieved
Example
{ "id": "1146390604275957762", "name": "Stream", "url": "https:\/\/www.twitch.tv\/stream", "language": "en" }
Structure (object)
- idstring
Id of the stream.
Example: "1146390604275957762"
- namestring
Title of the stream.
Example: "Stream"
- urlstring
Url of the stream.
Example: "https://www.twitch.tv/stream"
- languagestring
Language code of the stream content. This value is represented as an ISO 639-1 code.
Example: "en"
POST /tournaments/{tournament_id}/streams
Create a stream for a tournament. You can not exceed 128 streams in total for a tournament.
Resource URL
https://api.toornament.com/organizer/v2/tournaments/{tournament_id}/streams
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:admin
scope (see Authorization)
Path parameters
- tournament_idstring
The id of the tournament for which streams must be retrieved
Query Parameters
This endpoint doesn't have any query parameters.
Request Body
Data to provide for create the stream.
Example
{ "name": "Stream", "url": "https:\/\/www.twitch.tv\/stream", "language": "en" }
Structure (object)
- namestring
Title of the stream.
Example: "Stream"
- urlstring
Url of the stream.
Example: "https://www.twitch.tv/stream"
- languagestring
Language code of the stream content. This value is represented as an ISO 639-1 code.
Example: "en"
Response
[201] Success
Example
{ "id": "1146390604275957762", "name": "Stream", "url": "https:\/\/www.twitch.tv\/stream", "language": "en" }
Structure (object)
- idstring
Id of the stream.
Example: "1146390604275957762"
- namestring
Title of the stream.
Example: "Stream"
- urlstring
Url of the stream.
Example: "https://www.twitch.tv/stream"
- languagestring
Language code of the stream content. This value is represented as an ISO 639-1 code.
Example: "en"
GET /tournaments/{tournament_id}/streams/{id}
Returns a single stream by the given id.
Resource URL
https://api.toornament.com/organizer/v2/tournaments/{tournament_id}/streams/{id}
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:admin
scope (see Authorization)
Path parameters
- tournament_idstring
A unique identifier of the tournament.
- idstring
The id of the requested stream.
Query Parameters
This endpoint doesn't have any query parameters.
Request Body
This endpoint doesn't require a request body.
Response
[200] Success
Example
{ "id": "1146390604275957762", "name": "Stream", "url": "https:\/\/www.twitch.tv\/stream", "language": "en" }
Structure (object)
- idstring
Id of the stream.
Example: "1146390604275957762"
- namestring
Title of the stream.
Example: "Stream"
- urlstring
Url of the stream.
Example: "https://www.twitch.tv/stream"
- languagestring
Language code of the stream content. This value is represented as an ISO 639-1 code.
Example: "en"
PATCH /tournaments/{tournament_id}/streams/{id}
Update a single stream of a tournament.
Resource URL
https://api.toornament.com/organizer/v2/tournaments/{tournament_id}/streams/{id}
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:admin
scope (see Authorization)
Path parameters
- tournament_idstring
A unique identifier of the tournament.
- idstring
The id of the requested stream.
Query Parameters
This endpoint doesn't have any query parameters.
Request Body
Data to provide for update the stream.
Example
{ "name": "Stream", "url": "https:\/\/www.twitch.tv\/stream", "language": "en" }
Structure (object)
- namestring
Optional
Title of the stream.
Example: "Stream"
- urlstring
Optional
Url of the stream.
Example: "https://www.twitch.tv/stream"
- languagestring
Optional
Language code of the stream content. This value is represented as an ISO 639-1 code.
Example: "en"
Response
[200] Success
Example
{ "id": "1146390604275957762", "name": "Stream", "url": "https:\/\/www.twitch.tv\/stream", "language": "en" }
Structure (object)
- idstring
Id of the stream.
Example: "1146390604275957762"
- namestring
Title of the stream.
Example: "Stream"
- urlstring
Url of the stream.
Example: "https://www.twitch.tv/stream"
- languagestring
Language code of the stream content. This value is represented as an ISO 639-1 code.
Example: "en"
DELETE /tournaments/{tournament_id}/streams/{id}
Delete a stream of a tournament.
Resource URL
https://api.toornament.com/organizer/v2/tournaments/{tournament_id}/streams/{id}
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:admin
scope (see Authorization)
Path parameters
- tournament_idstring
A unique identifier of the tournament.
- idstring
The id of the requested stream.
Query Parameters
This endpoint doesn't have any query parameters.
Request Body
This endpoint doesn't require a request body.
Response
[204] Success
GET /tournaments/{tournament_id}/matches/{match_id}/streams
Returns the streams of the given match.
Resource URL
https://api.toornament.com/organizer/v2/tournaments/{tournament_id}/matches/{match_id}/streams
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:result
scope (see Authorization)
Path parameters
- tournament_idstring
The id of the tournament for which streams must be retrieved
- match_idstring
The id of the match to retrieve
Query Parameters
This endpoint doesn't have any query parameters.
Request Body
This endpoint doesn't require a request body.
Response
[200] Streams retrieved
Example
[ "618951258745465416", "574431425878674446" ]
Structure (object)
- idarray[string]
List of the stream's ids associated to this match.
Example: ["618951258745465416","574431425878674446"]
PUT /tournaments/{tournament_id}/matches/{match_id}/streams
Update or create streams about one match. You can not exceed 32 streams in total for a match.
Resource URL
https://api.toornament.com/organizer/v2/tournaments/{tournament_id}/matches/{match_id}/streams
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:result
scope (see Authorization)
Path parameters
- tournament_idstring
The id of the match's tournament.
- match_idstring
The id of the requested match.
Query Parameters
This endpoint doesn't have any query parameters.
Request Body
List of stream ids.
Example
[ "618951258745465416", "574431425878674446" ]
Structure (object)
- idarray[string]
A selection of the stream's ids available in this tournament.
Example: ["618951258745465416","574431425878674446"]
Response
[200] Success
Example
[ "618951258745465416", "574431425878674446" ]
Structure (object)
- idarray[string]
List of the stream's ids associated to this match.
Example: ["618951258745465416","574431425878674446"]