Tournament API › Disciplines
GET /disciplines
Returns a collection of disciplines.
Resource URL
https://api.toornament.com/organizer/v2/disciplinesHTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Rangestring
A range of requested items using the
disciplinesunit. The size of the range can not exceed 50. (see Pagination)Example: disciplines=0-49
Query Parameters
This endpoint does not have any query parameters.
Request Body
This endpoint does not require a request body.
Response
[206] Disciplines retrieved.
Example
[
{
"id": "counterstrike_go",
"name": "Counter-Strike: GO",
"shortname": "CS:GO",
"fullname": "Counter-Strike: Global Offensive",
"copyrights": "Valve Software"
}
]Structure (collection)
- idstring
An identifier for a discipline, can be used in others APIs.
Example: "counterstrike_go"
- namestring
The official name of the discipline.
Example: "Counter-Strike: GO"
- shortnamestring
The short name of the discipline.
Example: "CS:GO"
- fullnamestring
The complete name of the discipline.
Example: "Counter-Strike: Global Offensive"
- copyrightsstring
Name of the entity or entities that are the creators and/or right holders of the discipline.
Example: "Valve Software"
GET /disciplines/{id}
Returns a discipline with its information and configuration options.
Resource URL
https://api.toornament.com/organizer/v2/disciplines/{id}HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
Path parameters
- idstring
The id of the discipline.
Query Parameters
This endpoint does not have any query parameters.
Request Body
This endpoint does not require a request body.
Response
[200] Discipline retrieved.
Example
{
"platforms_available": [
"pc",
"nintendo_switch",
"neo_geo"
],
"team_size": {
"min": 4,
"max": 4
},
"features": [
{
"name": "track",
"type": "map",
"options": {}
}
],
"id": "counterstrike_go",
"name": "Counter-Strike: GO",
"shortname": "CS:GO",
"fullname": "Counter-Strike: Global Offensive",
"copyrights": "Valve Software"
}Structure (object)
- platforms_availablearray[string]
A list of platforms available of this discipline.
Possible values: pc, playstation4, xbox_one, nintendo_switch, nintendo_switch2, 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
- team_sizeobject
Sets the minimum and maximum of players in a team.
- featuresarray[object]
List of features for the discipline.
- idstring
An identifier for a discipline, can be used in others APIs.
Example: "counterstrike_go"
- namestring
The official name of the discipline.
Example: "Counter-Strike: GO"
- shortnamestring
The short name of the discipline.
Example: "CS:GO"
- fullnamestring
The complete name of the discipline.
Example: "Counter-Strike: Global Offensive"
- copyrightsstring
Name of the entity or entities that are the creators and/or right holders of the discipline.
Example: "Valve Software"