Viewer API › Tournaments Legacy
LegacyGET /tournaments/featured
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Returns a collection of published featured tournaments.
Resource URL
https://api.toornament.com/viewer/v2/tournaments/featuredHTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Rangestring
A range of requested items using the
tournamentsunit. The size of the range can not exceed 50. (see Pagination)Example: tournaments=0-49
Query Parameters
- namestring
The string to be looked for in the name or full name.
- disciplinesstring
One or several disciplines to filter.
Example: counterstrike_go,fifa17
- statusesstring
One or several tournament statuses to filter.
Possible values: pending, running, completed
Example: pending,running
- scheduled_beforestring
A date to include all tournaments scheduled to take place before or at the date, in ISO 8601 format (only the date part, with YYYY-MM-DD pattern).
Format: date
Example: 2016-12-31
- scheduled_afterstring
A date to include all tournaments scheduled to take place after or at the date, in ISO 8601 format (only the date part, with YYYY-MM-DD pattern).
Format: date
Example: 2015-12-31
- countriesstring
One or several countries to filter in ISO 3166-1 alpha-2 country codes format (some codes may not be supported)
Example: US,CA
- platformsstring
One or several platforms to filter.
Possible values: pc, playstation4, xbox_one, nintendo_switch, mobile, playstation3, playstation2, playstation1, ps_vita, psp, xbox360, xbox, wii_u, wii, gamecube, nintendo64, snes, nes, dreamcast, saturn, megadrive, master_system, 3ds, ds, game_boy, neo_geo, other_platform, not_video_game
Example: pc,xbox_one,playstation4
- is_onlineinteger
Whether the tournament is played online.
Possible values: 0, 1
- sortstring
Sorts the collection in a particular order. "scheduled_asc" sorts the tournaments by scheduled date from the oldest to the most recent one; "scheduled_desc" sorts the tournaments by scheduled date from the most recent to the oldest one.
Possible values: scheduled_asc, scheduled_desc
Default: scheduled_asc
Request Body
This endpoint does not require a request body.
Response
[206] Tournaments retrieved.
Example
[
{
"id": "378426939508809728",
"discipline": "my_discipline",
"name": "My Weekly Tournament",
"full_name": "My Weekly Tournament - Long title",
"status": "running",
"scheduled_date_start": "2015-09-06",
"scheduled_date_end": "2015-09-07",
"timezone": "America\/Sao_Paulo",
"public": true,
"size": 16,
"online": true,
"location": "London",
"country": "GB",
"platforms": [
"pc",
"playstation4"
],
"logo": {
"logo_small": "https:\/\/www.toornament.com\/media\/file\/123456\/logo_small",
"logo_medium": "https:\/\/www.toornament.com\/media\/file\/123456\/logo_medium",
"logo_large": "https:\/\/www.toornament.com\/media\/file\/123456\/logo_large",
"original": "https:\/\/www.toornament.com\/media\/file\/123456\/original"
},
"registration_enabled": true,
"registration_opening_datetime": "1999-01-01T00:00:00+00:00",
"registration_closing_datetime": "1999-01-01T00:00:00+00:00"
}
]Structure (collection)
- idstring
The unique identifier of the tournament.
Example: "378426939508809728"
- disciplinestring
A unique identifier of the tournament’s discipline.
Example: "my_discipline"
- namestring
The name of the tournament.
Max. length: 30 characters
Example: "My Weekly Tournament"
- full_namestring|null
The complete name of the tournament.
Max. length: 80 characters
Example: "My Weekly Tournament - Long title"
- statusstring
The status of the tournament
Possible values: pending, running, completed
- scheduled_date_startstring|null
A starting date in ISO 8601 format (only the date part, with YYYY-MM-DD pattern).
Format: date
Example: "2015-09-06"
- scheduled_date_endstring|null
An ending date in ISO 8601 format (only the date part, with YYYY-MM-DD pattern).
Format: date
Example: "2015-09-07"
- timezonestring
A time zone from the IANA tz database.
Example: "America/Sao_Paulo"
- publicboolean
Whether the tournament is published.
Example: true
- sizeinteger
The expected number of participants in the tournament.
Example: 16
- onlineboolean|null
Whether the tournament is played on internet.
Example: true
- locationstring|null
The region, city, address or place of interest where the tournament is held.
Example: "London"
- countrystring|null
The country where the tournament is played. Some codes may not be supported. (format is ISO 3166-1 alpha-2)
Example: "GB"
- platformsarray[string]
A list of platforms on which the tournament can be played.
Possible values: pc, playstation4, xbox_one, nintendo_switch, mobile, playstation3, playstation2, playstation1, ps_vita, psp, xbox360, xbox, wii_u, wii, gamecube, nintendo64, snes, nes, dreamcast, saturn, megadrive, master_system, 3ds, ds, game_boy, neo_geo, other_platform, not_video_game
- logoobject
- registration_enabledboolean
Whether the registration process is enabled.
Example: true
- registration_opening_datetimestring|null
The opening date of the registrations in RFC 3339 format (combined date, time and utc offset)
Format: datetime
Example: "1999-01-01T00:00:00+00:00"
- registration_closing_datetimestring|null
The closing date of the registrations in RFC 3339 format (combined date, time and utc offset)
Format: datetime
Example: "1999-01-01T00:00:00+00:00"
LegacyGET /tournaments/{id}
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Returns a tournament identified with the given id.
Resource URL
https://api.toornament.com/viewer/v2/tournaments/{id}HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
Path parameters
- idstring
The id of the tournament to retrieve.
Query Parameters
This endpoint does not have any query parameters.
Request Body
This endpoint does not require a request body.
Response
[200] Tournament retrieved.
Example
{
"participant_type": "single",
"organization": "Avery Bullock",
"contact": "[email protected]",
"discord": "https:\/\/discord.gg\/blablabla",
"website": "http:\/\/www.toornament.com",
"description": "My description \\n on multiple lines",
"rules": "My rules \\n on multiple lines",
"prize": "1 - 10,000$ \\n 2 - 5,000$",
"settings": {},
"id": "378426939508809728",
"discipline": "my_discipline",
"name": "My Weekly Tournament",
"full_name": "My Weekly Tournament - Long title",
"status": "running",
"scheduled_date_start": "2015-09-06",
"scheduled_date_end": "2015-09-07",
"timezone": "America\/Sao_Paulo",
"public": true,
"size": 16,
"online": true,
"location": "London",
"country": "GB",
"platforms": [
"pc",
"playstation4"
],
"logo": {
"logo_small": "https:\/\/www.toornament.com\/media\/file\/123456\/logo_small",
"logo_medium": "https:\/\/www.toornament.com\/media\/file\/123456\/logo_medium",
"logo_large": "https:\/\/www.toornament.com\/media\/file\/123456\/logo_large",
"original": "https:\/\/www.toornament.com\/media\/file\/123456\/original"
},
"registration_enabled": true,
"registration_opening_datetime": "1999-01-01T00:00:00+00:00",
"registration_closing_datetime": "1999-01-01T00:00:00+00:00"
}Structure (object)
- participant_typestring
The type of participants that play in the tournament.
Possible values: team, single
- organizationstring|null
The name of the organizer, be it an individual, group, association or company.
Example: "Avery Bullock"
- contactstring|null
The email address to contact the organizer.
Example: "[email protected]"
- discordstring|null
Invite URL to the tournament Discord server.
Example: "https://discord.gg/blablabla"
- websitestring|null
The tournament's official website URL.
Example: "http://www.toornament.com"
- descriptionstring|null
A description of the tournament.
Max. length: 1,500 characters
Example: "My description \n on multiple lines"
- rulesstring|null
The rules of the tournament.
Max. length: 64,000 characters
Example: "My rules \n on multiple lines"
- prizestring|null
The prizes of the tournament.
Max. length: 1,500 characters
Example: "1 - 10,000$ \n 2 - 5,000$"
- settingsobject
List of tournament settings, it usually contains discipline information for the entire tournament (maps, champions...).
Example: {}
- idstring
The unique identifier of the tournament.
Example: "378426939508809728"
- disciplinestring
A unique identifier of the tournament’s discipline.
Example: "my_discipline"
- namestring
The name of the tournament.
Max. length: 30 characters
Example: "My Weekly Tournament"
- full_namestring|null
The complete name of the tournament.
Max. length: 80 characters
Example: "My Weekly Tournament - Long title"
- statusstring
The status of the tournament
Possible values: pending, running, completed
- scheduled_date_startstring|null
A starting date in ISO 8601 format (only the date part, with YYYY-MM-DD pattern).
Format: date
Example: "2015-09-06"
- scheduled_date_endstring|null
An ending date in ISO 8601 format (only the date part, with YYYY-MM-DD pattern).
Format: date
Example: "2015-09-07"
- timezonestring
A time zone from the IANA tz database.
Example: "America/Sao_Paulo"
- publicboolean
Whether the tournament is published.
Example: true
- sizeinteger
The expected number of participants in the tournament.
Example: 16
- onlineboolean|null
Whether the tournament is played on internet.
Example: true
- locationstring|null
The region, city, address or place of interest where the tournament is held.
Example: "London"
- countrystring|null
The country where the tournament is played. Some codes may not be supported. (format is ISO 3166-1 alpha-2)
Example: "GB"
- platformsarray[string]
A list of platforms on which the tournament can be played.
Possible values: pc, playstation4, xbox_one, nintendo_switch, mobile, playstation3, playstation2, playstation1, ps_vita, psp, xbox360, xbox, wii_u, wii, gamecube, nintendo64, snes, nes, dreamcast, saturn, megadrive, master_system, 3ds, ds, game_boy, neo_geo, other_platform, not_video_game
- logoobject
- registration_enabledboolean
Whether the registration process is enabled.
Example: true
- registration_opening_datetimestring|null
The opening date of the registrations in RFC 3339 format (combined date, time and utc offset)
Format: datetime
Example: "1999-01-01T00:00:00+00:00"
- registration_closing_datetimestring|null
The closing date of the registrations in RFC 3339 format (combined date, time and utc offset)
Format: datetime
Example: "1999-01-01T00:00:00+00:00"
LegacyGET /playlists/{id}/tournaments
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Returns the tournaments of a playlist.
Resource URL
https://api.toornament.com/viewer/v2/playlists/{id}/tournamentsHTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Rangestring
A range of requested items using the
tournamentsunit. The size of the range can not exceed 50. (see Pagination)Example: tournaments=0-49
Path parameters
- idstring
The string id of the tournament.
Query Parameters
- namestring
The string to be looked for in the name or full name.
- disciplinesstring
One or several disciplines to filter.
Example: counterstrike_go,fifa17
- statusesstring
One or several tournament statuses to filter.
Possible values: pending, running, completed
Example: pending,running
- scheduled_beforestring
A date to include all tournaments scheduled to take place before or at the date, in ISO 8601 format (only the date part, with YYYY-MM-DD pattern).
Format: date
Example: 2016-12-31
- scheduled_afterstring
A date to include all tournaments scheduled to take place after or at the date, in ISO 8601 format (only the date part, with YYYY-MM-DD pattern).
Format: date
Example: 2015-12-31
- countriesstring
One or several countries to filter in ISO 3166-1 alpha-2 country codes format (some codes may not be supported)
Example: US,CA
- platformsstring
One or several platforms to filter.
Possible values: pc, playstation4, xbox_one, nintendo_switch, mobile, playstation3, playstation2, playstation1, ps_vita, psp, xbox360, xbox, wii_u, wii, gamecube, nintendo64, snes, nes, dreamcast, saturn, megadrive, master_system, 3ds, ds, game_boy, neo_geo, other_platform, not_video_game
Example: pc,xbox_one,playstation4
- is_onlineinteger
Whether the tournament is played online.
Possible values: 0, 1
- sortstring
Sorts the collection in a particular order. "scheduled_asc" sorts the tournaments by scheduled date from the oldest to the most recent one; "scheduled_desc" sorts the tournaments by scheduled date from the most recent to the oldest one.
Possible values: scheduled_asc, scheduled_desc
Default: scheduled_asc
Request Body
This endpoint does not require a request body.
Response
[206] Tournaments retrieved.
Example
[
{
"id": "378426939508809728",
"discipline": "my_discipline",
"name": "My Weekly Tournament",
"full_name": "My Weekly Tournament - Long title",
"status": "running",
"scheduled_date_start": "2015-09-06",
"scheduled_date_end": "2015-09-07",
"timezone": "America\/Sao_Paulo",
"public": true,
"size": 16,
"online": true,
"location": "London",
"country": "GB",
"platforms": [
"pc",
"playstation4"
],
"logo": {
"logo_small": "https:\/\/www.toornament.com\/media\/file\/123456\/logo_small",
"logo_medium": "https:\/\/www.toornament.com\/media\/file\/123456\/logo_medium",
"logo_large": "https:\/\/www.toornament.com\/media\/file\/123456\/logo_large",
"original": "https:\/\/www.toornament.com\/media\/file\/123456\/original"
},
"registration_enabled": true,
"registration_opening_datetime": "1999-01-01T00:00:00+00:00",
"registration_closing_datetime": "1999-01-01T00:00:00+00:00"
}
]Structure (collection)
- idstring
The unique identifier of the tournament.
Example: "378426939508809728"
- disciplinestring
A unique identifier of the tournament’s discipline.
Example: "my_discipline"
- namestring
The name of the tournament.
Max. length: 30 characters
Example: "My Weekly Tournament"
- full_namestring|null
The complete name of the tournament.
Max. length: 80 characters
Example: "My Weekly Tournament - Long title"
- statusstring
The status of the tournament
Possible values: pending, running, completed
- scheduled_date_startstring|null
A starting date in ISO 8601 format (only the date part, with YYYY-MM-DD pattern).
Format: date
Example: "2015-09-06"
- scheduled_date_endstring|null
An ending date in ISO 8601 format (only the date part, with YYYY-MM-DD pattern).
Format: date
Example: "2015-09-07"
- timezonestring
A time zone from the IANA tz database.
Example: "America/Sao_Paulo"
- publicboolean
Whether the tournament is published.
Example: true
- sizeinteger
The expected number of participants in the tournament.
Example: 16
- onlineboolean|null
Whether the tournament is played on internet.
Example: true
- locationstring|null
The region, city, address or place of interest where the tournament is held.
Example: "London"
- countrystring|null
The country where the tournament is played. Some codes may not be supported. (format is ISO 3166-1 alpha-2)
Example: "GB"
- platformsarray[string]
A list of platforms on which the tournament can be played.
Possible values: pc, playstation4, xbox_one, nintendo_switch, mobile, playstation3, playstation2, playstation1, ps_vita, psp, xbox360, xbox, wii_u, wii, gamecube, nintendo64, snes, nes, dreamcast, saturn, megadrive, master_system, 3ds, ds, game_boy, neo_geo, other_platform, not_video_game
- logoobject
- registration_enabledboolean
Whether the registration process is enabled.
Example: true
- registration_opening_datetimestring|null
The opening date of the registrations in RFC 3339 format (combined date, time and utc offset)
Format: datetime
Example: "1999-01-01T00:00:00+00:00"
- registration_closing_datetimestring|null
The closing date of the registrations in RFC 3339 format (combined date, time and utc offset)
Format: datetime
Example: "1999-01-01T00:00:00+00:00"