Viewer API › Disciplines Legacy
LegacyGET /disciplines
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 disciplines.
Resource URL
https://api.toornament.com/viewer/v2/disciplinesHTTP headers
- X-Api-KeystringAPI key of your application (see Authentication) 
- RangestringA 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] Success.
Example
[
    {
        "id": "counterstrike_go",
        "name": "Counter-Strike: GO",
        "shortname": "CS:GO",
        "fullname": "Counter-Strike: Global Offensive",
        "copyrights": "Valve Software"
    }
]Structure (collection)
- idstringAn identifier for a discipline, can be used in others APIs. Example: "counterstrike_go" 
- namestringThe official name of the discipline. Example: "Counter-Strike: GO" 
- shortnamestringThe short name of the discipline. Example: "CS:GO" 
- fullnamestringThe complete name of the discipline. Example: "Counter-Strike: Global Offensive" 
- copyrightsstringName of the entity or entities that are the creators and/or right holders of the discipline. Example: "Valve Software" 
LegacyGET /disciplines/{id}
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Returns a discipline with its information and configuration options.
Resource URL
https://api.toornament.com/viewer/v2/disciplines/{id}HTTP headers
- X-Api-KeystringAPI key of your application (see Authentication) 
Path parameters
- idstringThe string 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] Success.
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. Example: ["pc","nintendo_switch","neo_geo"] 
- team_sizeobjectSets the minimum and maximum of players in a team. 
- featuresarray[object]List of features for the discipline. 
- idstringAn identifier for a discipline, can be used in others APIs. Example: "counterstrike_go" 
- namestringThe official name of the discipline. Example: "Counter-Strike: GO" 
- shortnamestringThe short name of the discipline. Example: "CS:GO" 
- fullnamestringThe complete name of the discipline. Example: "Counter-Strike: Global Offensive" 
- copyrightsstringName of the entity or entities that are the creators and/or right holders of the discipline. Example: "Valve Software"