Media API › Streams
Endpoints
- GET /streams
Retrieve the list of streams of a tournament.
- POST /streams
Add a new stream in a tournament.
- GET /streams/{id}
Retrieve a single stream from a tournament.
- PATCH /streams/{id}
Update a single stream in a tournament.
- DELETE /streams/{id}
Delete a stream in a tournament.
- GET /matches/{match_id}/streams
Retrieve the list of streams linked to a match.
- PUT /matches/{match_id}/streams
Update the list of streams linked to a match.
- LegacyGET /tournaments/{tournament_id}/streams
Retrieve the list of streams of a tournament.
- LegacyPOST /tournaments/{tournament_id}/streams
Add a new stream in a tournament.
- LegacyGET /tournaments/{tournament_id}/streams/{id}
Retrieve a single stream from a tournament.
- LegacyPATCH /tournaments/{tournament_id}/streams/{id}
Update a single stream in a tournament.
- LegacyDELETE /tournaments/{tournament_id}/streams/{id}
Delete a stream in a tournament.
- LegacyGET /tournaments/{tournament_id}/matches/{match_id}/streams
Retrieve the list of streams linked to a match.
- LegacyPUT /tournaments/{tournament_id}/matches/{match_id}/streams
Update the list of streams linked to a match.
GET /streams
Returns the list of streams of the given tournament.
Resource URL
https://api.toornament.com/organizer/v2/streams
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:view
scope (see Authorization) - Rangestring
A range of requested items using the
streams
unit. The size of the range can not exceed 50. (see Pagination)Example: streams=0-49
Query Parameters
- tournament_idsarray
Only return streams for the given list of tournaments.
Example: 378426939508809728,534138941862841533
- stream_idsarray
Only return streams for the given list of streams.
Example: 1146390604275957762,1260571507295271111
- languagesarray
Only return streams for the given list of languages, in ISO 639-1 alpha-2 format.
Example: en,fr
Request Body
This endpoint does not require a request body.
Response
[206] Streams retrieved.
Example
[ { "id": "1146390604275957762", "tournament_id": "534138941862841533", "name": "Stream", "url": "https:\/\/www.twitch.tv\/stream", "language": "en" } ]
Structure (collection)
- idstring
The id of the stream.
Example: "1146390604275957762"
- tournament_idstring
The id of tournament.
Example: "534138941862841533"
- namestring
The title of the stream.
Example: "Stream"
- urlstring
The URL of the stream.
Example: "https://www.twitch.tv/stream"
- languagestring
Language of the stream content, in ISO 639-1 alpha-2 format.
Example: "en"
POST /streams
Create a new stream in a tournament. You can not have more than 128 streams in one tournament.
Resource URL
https://api.toornament.com/organizer/v2/streams
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:admin
scope (see Authorization)
Query Parameters
This endpoint does not have any query parameters.
Request Body
Stream data
Example
{ "tournament_id": "534138941862841533", "name": "Stream", "url": "https:\/\/www.twitch.tv\/stream", "language": "en" }
Structure (object)
- tournament_idstring
The id of tournament.
Example: "534138941862841533"
- namestring
The title of the stream.
Example: "Stream"
- urlstring
The URL of the stream.
Example: "https://www.twitch.tv/stream"
- languagestring
Language of the stream content, in ISO 639-1 alpha-2 format.
Example: "en"
Response
[201] Success
Example
{ "id": "1146390604275957762", "tournament_id": "534138941862841533", "name": "Stream", "url": "https:\/\/www.twitch.tv\/stream", "language": "en" }
Structure (object)
- idstring
The id of the stream.
Example: "1146390604275957762"
- tournament_idstring
The id of tournament.
Example: "534138941862841533"
- namestring
The title of the stream.
Example: "Stream"
- urlstring
The URL of the stream.
Example: "https://www.twitch.tv/stream"
- languagestring
Language of the stream content, in ISO 639-1 alpha-2 format.
Example: "en"
GET /streams/{id}
Returns a single stream from a tournament.
Resource URL
https://api.toornament.com/organizer/v2/streams/{id}
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:view
scope (see Authorization)
Path parameters
- idstring
The id of the stream.
Query Parameters
This endpoint does not have any query parameters.
Request Body
This endpoint does not require a request body.
Response
[200] Success
Example
{ "id": "1146390604275957762", "tournament_id": "534138941862841533", "name": "Stream", "url": "https:\/\/www.twitch.tv\/stream", "language": "en" }
Structure (object)
- idstring
The id of the stream.
Example: "1146390604275957762"
- tournament_idstring
The id of tournament.
Example: "534138941862841533"
- namestring
The title of the stream.
Example: "Stream"
- urlstring
The URL of the stream.
Example: "https://www.twitch.tv/stream"
- languagestring
Language of the stream content, in ISO 639-1 alpha-2 format.
Example: "en"
PATCH /streams/{id}
Update a single stream in a tournament.
Resource URL
https://api.toornament.com/organizer/v2/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
- idstring
The id of the stream.
Query Parameters
This endpoint does not have any query parameters.
Request Body
Stream data
Example
{ "name": "Stream", "url": "https:\/\/www.twitch.tv\/stream", "language": "en" }
Structure (object)
- namestring
Optional
The title of the stream.
Example: "Stream"
- urlstring
Optional
The URL of the stream.
Example: "https://www.twitch.tv/stream"
- languagestring
Optional
Language of the stream content, in ISO 639-1 alpha-2 format.
Example: "en"
Response
[200] Success
Example
{ "id": "1146390604275957762", "tournament_id": "534138941862841533", "name": "Stream", "url": "https:\/\/www.twitch.tv\/stream", "language": "en" }
Structure (object)
- idstring
The id of the stream.
Example: "1146390604275957762"
- tournament_idstring
The id of tournament.
Example: "534138941862841533"
- namestring
The title of the stream.
Example: "Stream"
- urlstring
The URL of the stream.
Example: "https://www.twitch.tv/stream"
- languagestring
Language of the stream content, in ISO 639-1 alpha-2 format.
Example: "en"
DELETE /streams/{id}
Delete a stream in a tournament.
Resource URL
https://api.toornament.com/organizer/v2/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
- idstring
The id of the stream.
Query Parameters
This endpoint does not have any query parameters.
Request Body
This endpoint does not require a request body.
Response
[204] Success
GET /matches/{match_id}/streams
Returns the list of streams linked to a match. 32 streams maximum linked to a match.
Resource URL
https://api.toornament.com/organizer/v2/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
- match_idstring
The id of the match you want to retrieve data about.
Query Parameters
This endpoint does not have any query parameters.
Request Body
This endpoint does not require a request body.
Response
[200] Success
Example
[ "618951258745465416", "574431425878674446" ]
Structure (object)
- idarray[string]
The list of stream ids associated to this match.
Example: ["618951258745465416","574431425878674446"]
PUT /matches/{match_id}/streams
Update the list of streams linked to a match. You can not have more than 32 streams in linked to a match.
Resource URL
https://api.toornament.com/organizer/v2/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
- match_idstring
The id of the match you want to retrieve data about.
Query Parameters
This endpoint does not have any query parameters.
Request Body
Stream data
Example
[ "618951258745465416", "574431425878674446" ]
Structure (object)
- idarray[string]
The list of stream ids associated to this match.
Example: ["618951258745465416","574431425878674446"]
Response
[200] Success
Example
[ "618951258745465416", "574431425878674446" ]
Structure (object)
- idarray[string]
The list of stream ids associated to this match.
Example: ["618951258745465416","574431425878674446"]
LegacyGET /tournaments/{tournament_id}/streams
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Returns the list of 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 can not exceed 50. (see Pagination)Example: streams=0-49
Path parameters
- tournament_idstring
The id of the tournament you want to retrieve data about.
Query Parameters
- languagesarray
Only return streams for the given list of languages, in ISO 639-1 alpha-2 format.
Example: en,fr
Request Body
This endpoint does not require a request body.
Response
[206] Streams retrieved.
Example
[ { "id": "1146390604275957762", "name": "Stream", "url": "https:\/\/www.twitch.tv\/stream", "language": "en" } ]
Structure (collection)
- idstring
The id of the stream.
Example: "1146390604275957762"
- namestring
The title of the stream.
Example: "Stream"
- urlstring
The URL of the stream.
Example: "https://www.twitch.tv/stream"
- languagestring
Language of the stream content, in ISO 639-1 alpha-2 format.
Example: "en"
LegacyPOST /tournaments/{tournament_id}/streams
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Create a new stream in a tournament. You can not have more than 128 streams in 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 you want to retrieve data about.
Query Parameters
This endpoint does not have any query parameters.
Request Body
Stream data
Example
{ "name": "Stream", "url": "https:\/\/www.twitch.tv\/stream", "language": "en" }
Structure (object)
- namestring
Optional
The title of the stream.
Example: "Stream"
- urlstring
Optional
The URL of the stream.
Example: "https://www.twitch.tv/stream"
- languagestring
Optional
Language of the stream content, in ISO 639-1 alpha-2 format.
Example: "en"
Response
[201] Success
Example
{ "id": "1146390604275957762", "name": "Stream", "url": "https:\/\/www.twitch.tv\/stream", "language": "en" }
Structure (object)
- idstring
The id of the stream.
Example: "1146390604275957762"
- namestring
The title of the stream.
Example: "Stream"
- urlstring
The URL of the stream.
Example: "https://www.twitch.tv/stream"
- languagestring
Language of the stream content, in ISO 639-1 alpha-2 format.
Example: "en"
LegacyGET /tournaments/{tournament_id}/streams/{id}
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Returns a single stream from 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
The id of the tournament you want to retrieve data about.
- idstring
The id of the stream.
Query Parameters
This endpoint does not have any query parameters.
Request Body
This endpoint does not require a request body.
Response
[200] Success
Example
{ "id": "1146390604275957762", "name": "Stream", "url": "https:\/\/www.twitch.tv\/stream", "language": "en" }
Structure (object)
- idstring
The id of the stream.
Example: "1146390604275957762"
- namestring
The title of the stream.
Example: "Stream"
- urlstring
The URL of the stream.
Example: "https://www.twitch.tv/stream"
- languagestring
Language of the stream content, in ISO 639-1 alpha-2 format.
Example: "en"
LegacyPATCH /tournaments/{tournament_id}/streams/{id}
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Update a single stream in 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
The id of the tournament you want to retrieve data about.
- idstring
The id of the stream.
Query Parameters
This endpoint does not have any query parameters.
Request Body
Stream data
Example
{ "name": "Stream", "url": "https:\/\/www.twitch.tv\/stream", "language": "en" }
Structure (object)
- namestring
Optional
The title of the stream.
Example: "Stream"
- urlstring
Optional
The URL of the stream.
Example: "https://www.twitch.tv/stream"
- languagestring
Optional
Language of the stream content, in ISO 639-1 alpha-2 format.
Example: "en"
Response
[200] Success
Example
{ "id": "1146390604275957762", "name": "Stream", "url": "https:\/\/www.twitch.tv\/stream", "language": "en" }
Structure (object)
- idstring
The id of the stream.
Example: "1146390604275957762"
- namestring
The title of the stream.
Example: "Stream"
- urlstring
The URL of the stream.
Example: "https://www.twitch.tv/stream"
- languagestring
Language of the stream content, in ISO 639-1 alpha-2 format.
Example: "en"
LegacyDELETE /tournaments/{tournament_id}/streams/{id}
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Delete a stream in 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
The id of the tournament you want to retrieve data about.
- idstring
The id of the stream.
Query Parameters
This endpoint does not have any query parameters.
Request Body
This endpoint does not require a request body.
Response
[204] Success
LegacyGET /tournaments/{tournament_id}/matches/{match_id}/streams
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Returns the list of streams linked to a match. 32 streams maximum linked to 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 tournament you want to retrieve data about.
- match_idstring
The id of the match you want to retrieve data about.
Query Parameters
This endpoint does not have any query parameters.
Request Body
This endpoint does not require a request body.
Response
[200] Success
Example
[ "618951258745465416", "574431425878674446" ]
Structure (object)
- idarray[string]
The list of stream ids associated to this match.
Example: ["618951258745465416","574431425878674446"]
LegacyPUT /tournaments/{tournament_id}/matches/{match_id}/streams
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Update the list of streams linked to a match. You can not have more than 32 streams in linked to 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 tournament you want to retrieve data about.
- match_idstring
The id of the match you want to retrieve data about.
Query Parameters
This endpoint does not have any query parameters.
Request Body
Stream data
Example
[ "618951258745465416", "574431425878674446" ]
Structure (object)
- idarray[string]
The list of stream ids associated to this match.
Example: ["618951258745465416","574431425878674446"]
Response
[200] Success
Example
[ "618951258745465416", "574431425878674446" ]
Structure (object)
- idarray[string]
The list of stream ids associated to this match.
Example: ["618951258745465416","574431425878674446"]