Viewer API › Videos Legacy
LegacyGET /tournaments/{tournament_id}/videos
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Returns the videos of the given tournament.
Resource URL
https://api.toornament.com/viewer/v2/tournaments/{tournament_id}/videos
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Rangestring
A range of requested items using the
videos
unit. The size of the range can not exceed 50. (see Pagination)Example: videos=0-49
Path parameters
- tournament_idstring
The id of the tournament you want to retrieve data about.
Query Parameters
- participant_idsarray
One or several participant ids to filter.
Example: 618965765764577354,618931468547654563
- categorystring
The category of the videos.
Possible values: replay, highlight, bonus
- sortstring
Sorts the collection in a particular order. "created_asc" sorts the videos from the oldest to the most recent one; "created_desc" sorts the videos from the most recent to the oldest one.
Possible values: created_asc, created_desc
Default: created_asc
Request Body
This endpoint does not require a request body.
Response
[206] Videos retrieved.
Example
[ { "match_id": "378426939508809728", "id": "863174896574643814", "name": "Game 1: TSM vs. EnVyUs", "url": "https:\/\/www.youtube.com\/watch?v=SI5QgDJkaSU", "language": "en", "category": "replay" } ]
Structure (collection)
- match_idstring|null
The match's identifier of this video.
Example: "378426939508809728"
- idstring
An identifier for a video.
Example: "863174896574643814"
- namestring
The title of the video.
Max. length: 40 characters
Example: "Game 1: TSM vs. EnVyUs"
- urlstring
The URL of the video.
Max. length: 2,000 characters
Example: "https://www.youtube.com/watch?v=SI5QgDJkaSU"
- languagestring
Language code of the video content in ISO 639-1 code
Max. length: 2 characters
Example: "en"
- categorystring
The category of the video.
Possible values: replay, highlight, bonus
LegacyGET /tournaments/{tournament_id}/matches/{match_id}/videos
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Returns the videos of the given match.
Resource URL
https://api.toornament.com/viewer/v2/tournaments/{tournament_id}/matches/{match_id}/videos
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
Path parameters
- tournament_idstring
The id of the tournament you want to retrieve data about.
- match_idstring
The id of the match to retrieve.
Query Parameters
- categorystring
The category of the videos.
Possible values: replay, highlight, bonus
- sortstring
Sorts the collection in a particular order. "created_asc" sorts the videos from the oldest to the most recent one; "created_desc" sorts the videos from the most recent to the oldest one.
Possible values: created_asc, created_desc
Default: created_asc
Request Body
This endpoint does not require a request body.
Response
[200] Videos retrieved.
Example
[ { "id": "863174896574643814", "name": "Game 1: TSM vs. EnVyUs", "url": "https:\/\/www.youtube.com\/watch?v=SI5QgDJkaSU", "language": "en", "category": "replay" } ]
Structure (collection)
- idstring
An identifier for a video.
Example: "863174896574643814"
- namestring
The title of the video.
Max. length: 40 characters
Example: "Game 1: TSM vs. EnVyUs"
- urlstring
The URL of the video.
Max. length: 2,000 characters
Example: "https://www.youtube.com/watch?v=SI5QgDJkaSU"
- languagestring
Language code of the video content in ISO 639-1 code
Max. length: 2 characters
Example: "en"
- categorystring
The category of the video.
Possible values: replay, highlight, bonus