Tournaments

GET /tournaments/featured

Simple Access

Returns featured tournaments published by the organizer.

Resource URL

https://api.toornament.com/viewer/v2/tournaments/featured

HTTP headers

  • X-Api-Key
    string

    API key of your application (see Authentication)

  • Range
    string

    A range of requested items using the tournaments unit. The size of the range cannot exceed 50. (see Pagination)

    Example: tournaments=0-49

Query Parameters

  • name
    string

    The string to be looked for in the name or full name.

  • disciplines
    string

    One or several disciplines to filter

    Example: counterstrike_go,fifa17

  • statuses
    string

    One or several tournament statuses to filter

    Possible values: pending, running, completed

    Example: pending,running

  • scheduled_before
    date

    An ISO 8601 date to include all tournaments scheduled to take place before or at the date.

    Pattern: YYYY-MM-DD

    Example: 2016-12-31

  • scheduled_after
    date

    An ISO 8601 date to include all tournaments scheduled to take place after or at the date

    Pattern: YYYY-MM-DD

    Example: 2015-12-31

  • countries
    string

    One or several countries to filter

    Format: ISO 3166-1 alpha-2 country codes

    Example: US,CA

  • platforms
    string

    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_online
    boolean

    Whether to include or exclude tournaments played on internet

    Possible values: 0, 1

  • sort
    string

    Sorts the collection in a particular order. "scheduled_asc" sorts the tournaments by scheduled from older to newer; "scheduled_desc" sorts the tournaments by scheduled from newer to older.

    Possible values: scheduled_asc, scheduled_desc

    Default: scheduled_asc

Request Body

This endpoint doesn't 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)
  • id
    string

    A unique identifier for the tournament

    Example: "378426939508809728"

  • discipline
    string

    A unique string identifier of a discipline

    Example: "my_discipline"

  • name
    string

    The name of the tournament (maximum 30 characters)

    Example: "My Weekly Tournament"

  • full_name
    string|null

    The complete name of the tournament (maximum 80 characters)

    Example: "My Weekly Tournament - Long title"

  • status
    string

    The status of the tournament

    Possible values: setup, running, completed

  • scheduled_date_start
    date|null

    A starting date in ISO 8601 format (only the date part)

    Pattern: YYYY-MM-DD

    Example: "2015-09-06"

  • scheduled_date_end
    date|null

    An ending date in ISO 8601 format (only the date part)

    Pattern: YYYY-MM-DD

    Example: "2015-09-07"

  • timezone
    string|null

    A time zone represented using the IANA tz database

    Example: "America/Sao_Paulo"

  • public
    boolean

    Whether the tournament is published

    Example: true

  • size
    integer

    The expected number of participants in the tournament

    Example: 16

  • online
    boolean

    Whether the tournament is played on internet

    Example: true

  • location
    string|null

    A region, city, address or place of interest

    Example: "London"

  • country
    string|null

    A country where the tournament is played. Its possible that some code is not supported.

    Format: ISO 3166-1 alpha-2

    Example: "GB"

  • platforms
    array[string]|null

    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

  • logo
    object|null

    The tournament logo in every available format.

    Example: {"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
    boolean

    Whether the registration is enabled

    Example: true

  • registration_opening_datetime
    datetime

    The opening date of the registrations

    Format: RFC 3339 (combined date, time and utc offset)

    Example: "1999-01-01T00:00:00+00:00"

  • registration_closing_datetime
    datetime

    The closing date of the registrations

    Format: RFC 3339 (combined date, time and utc offset)

    Example: "1999-01-01T00:00:00+00:00"

GET /tournaments/{id}

Simple Access

Returns a tournament identified by the given id.

Resource URL

https://api.toornament.com/viewer/v2/tournaments/{id}

HTTP headers

Path parameters

  • id
    string

    The id of the tournament to retrieve

Query Parameters

This endpoint doesn't have any query parameters.

Request Body

This endpoint doesn't require a request body.

Response

[200] Tournament 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,
    "participant_type": "team",
    "online": true,
    "location": "London",
    "country": "GB",
    "organization": "Avery Bullock",
    "contact": "contact@toornament.com",
    "discord": "https:\/\/discord.gg\/qWbbkuY",
    "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$",
    "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)
  • id
    string

    A unique identifier for the tournament

    Example: "378426939508809728"

  • discipline
    string

    A unique string identifier of a discipline

    Example: "my_discipline"

  • name
    string

    The name of the tournament (maximum 30 characters)

    Example: "My Weekly Tournament"

  • full_name
    string|null

    The complete name of the tournament (maximum 80 characters)

    Example: "My Weekly Tournament - Long title"

  • status
    string

    The status of the tournament

    Possible values: setup, running, completed

  • scheduled_date_start
    date|null

    A starting date in ISO 8601 format (only the date part)

    Pattern: YYYY-MM-DD

    Example: "2015-09-06"

  • scheduled_date_end
    date|null

    An ending date in ISO 8601 format (only the date part)

    Pattern: YYYY-MM-DD

    Example: "2015-09-07"

  • timezone
    string|null

    A time zone represented using the IANA tz database

    Example: "America/Sao_Paulo"

  • public
    boolean

    Whether the tournament is published

    Example: true

  • size
    integer

    The expected number of participants in the tournament

    Example: 16

  • participant_type
    string

    The type of participants who plays in the tournament

    Possible values: team, single

  • online
    boolean

    Whether the tournament is played on internet

    Example: true

  • location
    string|null

    A region, city, address or place of interest

    Example: "London"

  • country
    string|null

    A country where the tournament is played. Its possible that some code is not supported.

    Format: ISO 3166-1 alpha-2

    Example: "GB"

  • organization
    string|null

    The name of the organizer whether it is an individual, group, association or company

    Example: "Avery Bullock"

  • contact
    string

    The email address to contact the organizer

    Example: "contact@toornament.com"

  • discord
    string

    The discord URL to contact the organizer or participants

    Example: "https://discord.gg/qWbbkuY"

  • website
    string|null

    The tournament's official website URL

    Example: "http://www.toornament.com"

  • description
    string|null

    A description of the tournament (maximum 1,500 characters)

    Example: "My description \n on multiple lines"

  • rules
    string|null

    A description of the tournament's rules (maximum 10,000 characters)

    Example: "My rules \n on multiple lines"

  • prize
    string|null

    A description of the tournament's prizes (maximum 1,500 characters)

    Example: "1 - 10,000$ \n 2 - 5,000$"

  • platforms
    array[string]|null

    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

  • logo
    object|null

    The tournament logo in every available format.

    Example: {"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
    boolean

    Whether the registration is enabled

    Example: true

  • registration_opening_datetime
    datetime

    The opening date of the registrations

    Format: RFC 3339 (combined date, time and utc offset)

    Example: "1999-01-01T00:00:00+00:00"

  • registration_closing_datetime
    datetime

    The closing date of the registrations

    Format: RFC 3339 (combined date, time and utc offset)

    Example: "1999-01-01T00:00:00+00:00"

GET /playlist/{id}/tournaments

Simple Access

Returns the tournaments of a playlist.

Resource URL

https://api.toornament.com/viewer/v2/playlist/{id}/tournaments

HTTP headers

  • X-Api-Key
    string

    API key of your application (see Authentication)

  • Range
    string

    A range of requested items using the tournaments unit. The size of the range cannot exceed 50. (see Pagination)

    Example: tournaments=0-49

Query Parameters

  • name
    string

    The string to be looked for in the name or full name.

  • disciplines
    string

    One or several disciplines to filter

    Example: counterstrike_go,fifa17

  • statuses
    string

    One or several playlist statuses to filter

    Possible values: pending, running, completed

    Example: pending,running

  • scheduled_before
    date

    An ISO 8601 date to include all playlist scheduled to take place before or at the date.

    Pattern: YYYY-MM-DD

    Example: 2016-12-31

  • scheduled_after
    date

    An ISO 8601 date to include all playlist scheduled to take place after or at the date

    Pattern: YYYY-MM-DD

    Example: 2015-12-31

  • countries
    string

    One or several countries to filter

    Format: ISO 3166-1 alpha-2 country codes

    Example: US,CA

  • platforms
    string

    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_online
    boolean

    Whether to include or exclude playlist played on internet

    Possible values: 0, 1

  • sort
    string

    Sorts the collection in a particular order. "scheduled_asc" sorts the tournaments by scheduled from older to newer; "scheduled_desc" sorts the tournaments by scheduled from newer to older.

    Possible values: scheduled_asc, scheduled_desc

    Default: scheduled_asc

Request Body

This endpoint doesn't 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)
  • id
    string

    A unique identifier for the tournament

    Example: "378426939508809728"

  • discipline
    string

    A unique string identifier of a discipline

    Example: "my_discipline"

  • name
    string

    The name of the tournament (maximum 30 characters)

    Example: "My Weekly Tournament"

  • full_name
    string|null

    The complete name of the tournament (maximum 80 characters)

    Example: "My Weekly Tournament - Long title"

  • status
    string

    The status of the tournament

    Possible values: setup, running, completed

  • scheduled_date_start
    date|null

    A starting date in ISO 8601 format (only the date part)

    Pattern: YYYY-MM-DD

    Example: "2015-09-06"

  • scheduled_date_end
    date|null

    An ending date in ISO 8601 format (only the date part)

    Pattern: YYYY-MM-DD

    Example: "2015-09-07"

  • timezone
    string|null

    A time zone represented using the IANA tz database

    Example: "America/Sao_Paulo"

  • public
    boolean

    Whether the tournament is published

    Example: true

  • size
    integer

    The expected number of participants in the tournament

    Example: 16

  • online
    boolean

    Whether the tournament is played on internet

    Example: true

  • location
    string|null

    A region, city, address or place of interest

    Example: "London"

  • country
    string|null

    A country where the tournament is played. Its possible that some code is not supported.

    Format: ISO 3166-1 alpha-2

    Example: "GB"

  • platforms
    array[string]|null

    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

  • logo
    object|null

    The tournament logo in every available format.

    Example: {"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
    boolean

    Whether the registration is enabled

    Example: true

  • registration_opening_datetime
    datetime

    The opening date of the registrations

    Format: RFC 3339 (combined date, time and utc offset)

    Example: "1999-01-01T00:00:00+00:00"

  • registration_closing_datetime
    datetime

    The closing date of the registrations

    Format: RFC 3339 (combined date, time and utc offset)

    Example: "1999-01-01T00:00:00+00:00"