Match API › Matches
Endpoints
- GET /matches
Retrieves all matches of all your tournaments.
- GET /matches/{id}
Retrieves a match.
- PATCH /matches/{id}
Updates information and outcome of a match.
- LegacyGET /tournaments/{tournament_id}/matches
Retrieve the matches of a tournament.
- LegacyGET /tournaments/{tournament_id}/matches/{id}
Retrieves a match of a tournament.
- LegacyPATCH /tournaments/{tournament_id}/matches/{id}
Update information and outcome of a match.
GET /matches
Retrieves the matches of all your tournaments using various filters. If the match type is "ffa", the opponents are limited by the first 4 ordered by their position.
Resource URL
https://api.toornament.com/organizer/v2/matches
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:result
scope (see Authorization) - Rangestring
A range of requested items using the
matches
unit. The size of the range can not exceed 100. (see Pagination)Example: matches=0-99
Query Parameters
- stage_idsarray
One or several stage ids to filter.
Example: 618965765764577354,618931468547654563
- stage_numbersarray
One or several stage numbers to filter.
Example: 1,3
- group_idsarray
One or several group ids to filter.
Example: 618965314871946714,618932178746476544
- group_numbersarray
One or several group numbers to filter.
Example: 2,4
- round_idsarray
One or several round ids to filter.
Example: 618943519431786343,618965178941654763
- round_numbersarray
One or several round numbers to filter.
Example: 1,2
- statusesarray
One or several match statuses to filter.
Possible values: pending, running, completed
Example: pending,running
- is_scheduledboolean
Whether to include scheduled matches.
Possible values: 0, 1
- scheduled_beforestring
A datetime to include all matches scheduled before or at the datetime in RFC 3339 format (combined date, time and utc offset).
Format: datetime
Example: 2015-12-31T00:00:00+00:00
- scheduled_afterstring
A datetime to include all matches scheduled after or at the datetime in RFC 3339 format (combined date, time and utc offset).
Format: datetime
Example: 2015-12-31T00:00:00+00:00
- played_beforestring
A datetime to include all matches played before or at the datetime in RFC 3339 format (combined date, time and utc offset).
Format: datetime
Example: 2015-12-31T00:00:00+00:00
- played_afterstring
A datetime to include all matches played after or at the datetime in RFC 3339 format (combined date, time and utc offset).
Format: datetime
Example: 2015-12-31T00:00:00+00:00
- disciplinesarray
Only return matches for the tournaments with the discipline.
Example: leagueoflegends,fifa19
- tournament_idsarray
Only return matches for the given list of tournaments.
Example: 618965416546776434,618975467354349191
- participant_idsarray
One or several participant ids involved in the matches to filter.
Example: 618965416546776434,618975467354349191
- user_idsarray
One or several player user ids involved in the matches to filter.
Example: 475141143408399456,735147043408391234
- team_idsarray
One or several team ids involved in the matches to filter.
Example: 561714159547269773,255149043401714321
- custom_user_identifiersarray
One or several custom user identifiers involved in the matches to filter.
Example: acme:account:1234,acme:account:1235
- match_idsarray
Only return matches for the given list of ids.
Example: 2468971166855626795,436314459115419242
- circuit_idsarray
Only return matches for the given list of circuit ids.
Example: 5617559294676615168,5629045554450325504
- circuit_seasonsstring
Only return matches for the given list of circuit season machine names.
Example: season_1,season_3
- circuit_regionsstring
Only return matches for the given list of circuit region machine names.
Example: europe,americas,asia
- circuit_tiersstring
Only return matches for the given list of circuit tier machine names.
Example: tier_1,tier_2
- sortstring
A method to sort the filtered data. "structure" sorts using the stage, group, round and match numbers. "schedule" sorts using the scheduled date. "latest results" sorts using the date at which the matches were played (not scheduled).
Possible values: structure, schedule, latest_results
Default: structure
Example: schedule
Request Body
This endpoint does not require a request body.
Response
[206] Matches retrieved
Example
[ { "tournament_id": "378426939508809728", "id": "618954615761465416", "stage_id": "618983668512789184", "group_id": "618985165765456465", "round_id": "618965146546456651", "number": 2, "type": "duel", "status": "pending", "settings": {}, "scheduled_datetime": "2015-12-31T00:00:00+00:00", "played_at": "2015-12-31T00:00:00+00:00", "public_note": "A note on\\ntwo lines\\n", "private_note": "A note on\\ntwo lines\\n", "report_closed": true, "report_status": "report", "opponents": [ { "number": 1, "position": 1, "result": "win", "rank": 3, "forfeit": false, "score": 15, "participant": { "id": "375143143408309123", "name": "Northmen", "custom_user_identifier": "acme:account:1234", "custom_fields": {} } } ] } ]
Structure (collection)
- tournament_idstring
The id of the tournament that contains this match.
Example: "378426939508809728"
- idstring
The id of the match.
Example: "618954615761465416"
- stage_idstring
The id of the stage that contains this match.
Example: "618983668512789184"
- group_idstring
The id of the group that contains this match.
Example: "618985165765456465"
- round_idstring|null
The id of the round that contains this match.
Example: "618965146546456651"
- numberinteger
The match number (a relative identifier within a round).
Example: 2
- typestring
The match type.
Possible values: duel, ffa, bye
- statusstring
The status of the match.
Possible values: pending, running, completed
- settingsobject
Settings that describe the various options related to the match.
Example: {}
- scheduled_datetimestring|null
The scheduled date of the match in RFC 3339 format (combined date, time and utc offset).
Format: datetime
Example: "2015-12-31T00:00:00+00:00"
- played_atstring|null
The date and time when the match was completed (a result was provided).
Format: datetime
Example: "2015-12-31T00:00:00+00:00"
- public_notestring|null
Public note of a match, written by the organizer.
Example: "A note on\ntwo lines\n"
- private_notestring|null
Private note of a match, written by the organizer.
Example: "A note on\ntwo lines\n"
- report_closedboolean
Whether the match report is closed.
Example: true
- report_statusstring|null
The report status.
Possible values: report, dispute
- opponentsarray[object]
List of the opponents involved in this match.
GET /matches/{id}
Retrieves a match identified by the given id. If the match type is "ffa", a match returns a maximum of 100 opponents.
Resource URL
https://api.toornament.com/organizer/v2/matches/{id}
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:result
scope (see Authorization)
Path parameters
- idstring
The id of the requested match.
Query Parameters
This endpoint does not have any query parameters.
Request Body
This endpoint does not require a request body.
Response
[200] Match retrieved
Example
{ "tournament_id": "378426939508809728", "id": "618954615761465416", "stage_id": "618983668512789184", "group_id": "618985165765456465", "round_id": "618965146546456651", "number": 2, "type": "duel", "status": "pending", "settings": {}, "scheduled_datetime": "2015-12-31T00:00:00+00:00", "played_at": "2015-12-31T00:00:00+00:00", "public_note": "A note on\\ntwo lines\\n", "private_note": "A note on\\ntwo lines\\n", "report_closed": true, "report_status": "report", "opponents": [ { "properties": {}, "number": 1, "position": 1, "result": "win", "rank": 3, "forfeit": false, "score": 15, "participant": { "id": "375143143408309123", "name": "Northmen", "custom_user_identifier": "acme:account:1234", "custom_fields": {} } } ] }
Structure (object)
- tournament_idstring
The id of the tournament that contains this match.
Example: "378426939508809728"
- idstring
The id of the match.
Example: "618954615761465416"
- stage_idstring
The id of the stage that contains this match.
Example: "618983668512789184"
- group_idstring
The id of the group that contains this match.
Example: "618985165765456465"
- round_idstring|null
The id of the round that contains this match.
Example: "618965146546456651"
- numberinteger
The match number (a relative identifier within a round).
Example: 2
- typestring
The match type.
Possible values: duel, ffa, bye
- statusstring
The status of the match.
Possible values: pending, running, completed
- settingsobject
Settings that describe the various options related to the match.
Example: {}
- scheduled_datetimestring|null
The scheduled date of the match in RFC 3339 format (combined date, time and utc offset).
Format: datetime
Example: "2015-12-31T00:00:00+00:00"
- played_atstring|null
The date and time when the match was completed (a result was provided).
Format: datetime
Example: "2015-12-31T00:00:00+00:00"
- public_notestring|null
Public note of a match, written by the organizer.
Example: "A note on\ntwo lines\n"
- private_notestring|null
Private note of a match, written by the organizer.
Example: "A note on\ntwo lines\n"
- report_closedboolean
Whether the match report is closed.
Example: true
- report_statusstring|null
The report status.
Possible values: report, dispute
- opponentsarray[object]
List of the opponents involved in this match.
PATCH /matches/{id}
Updates information and detailed outcome of a match identified by the given id.
Resource URL
https://api.toornament.com/organizer/v2/matches/{id}
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:result
scope (see Authorization)
Path parameters
- idstring
The id of the requested match.
Query Parameters
This endpoint does not have any query parameters.
Request Body
Update data
Example
{ "settings": {}, "scheduled_datetime": "2015-12-31T00:00:00+00:00", "public_note": "A note on\\ntwo lines\\n", "private_note": "A note on\\ntwo lines\\n", "opponents": [ { "number": 1, "position": 1, "result": "win", "rank": 3, "forfeit": false, "score": 15, "properties": {} } ] }
Structure (object)
- settingsobject
Optional
Settings that describe the various options related to the match.
Example: {}
- scheduled_datetimestring|null
Optional
The scheduled date of the match in RFC 3339 format (combined date, time and utc offset).
Format: datetime
Example: "2015-12-31T00:00:00+00:00"
- public_notestring|null
Optional
Public note of a match, written by the organizer.
Example: "A note on\ntwo lines\n"
- private_notestring|null
Optional
Private note of a match, written by the organizer.
Example: "A note on\ntwo lines\n"
- opponentsarray[object]
Optional
List of the opponents involved in this match.
Response
[200] Success.
Example
{ "tournament_id": "378426939508809728", "id": "618954615761465416", "stage_id": "618983668512789184", "group_id": "618985165765456465", "round_id": "618965146546456651", "number": 2, "type": "duel", "status": "pending", "settings": {}, "scheduled_datetime": "2015-12-31T00:00:00+00:00", "played_at": "2015-12-31T00:00:00+00:00", "public_note": "A note on\\ntwo lines\\n", "private_note": "A note on\\ntwo lines\\n", "report_closed": true, "report_status": "report", "opponents": [ { "properties": {}, "number": 1, "position": 1, "result": "win", "rank": 3, "forfeit": false, "score": 15, "participant": { "id": "375143143408309123", "name": "Northmen", "custom_user_identifier": "acme:account:1234", "custom_fields": {} } } ] }
Structure (object)
- tournament_idstring
The id of the tournament that contains this match.
Example: "378426939508809728"
- idstring
The id of the match.
Example: "618954615761465416"
- stage_idstring
The id of the stage that contains this match.
Example: "618983668512789184"
- group_idstring
The id of the group that contains this match.
Example: "618985165765456465"
- round_idstring|null
The id of the round that contains this match.
Example: "618965146546456651"
- numberinteger
The match number (a relative identifier within a round).
Example: 2
- typestring
The match type.
Possible values: duel, ffa, bye
- statusstring
The status of the match.
Possible values: pending, running, completed
- settingsobject
Settings that describe the various options related to the match.
Example: {}
- scheduled_datetimestring|null
The scheduled date of the match in RFC 3339 format (combined date, time and utc offset).
Format: datetime
Example: "2015-12-31T00:00:00+00:00"
- played_atstring|null
The date and time when the match was completed (a result was provided).
Format: datetime
Example: "2015-12-31T00:00:00+00:00"
- public_notestring|null
Public note of a match, written by the organizer.
Example: "A note on\ntwo lines\n"
- private_notestring|null
Private note of a match, written by the organizer.
Example: "A note on\ntwo lines\n"
- report_closedboolean
Whether the match report is closed.
Example: true
- report_statusstring|null
The report status.
Possible values: report, dispute
- opponentsarray[object]
List of the opponents involved in this match.
LegacyGET /tournaments/{tournament_id}/matches
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Retrieve the matches from the tournament. If the match type is "ffa", only the first 4 opponents, ordered by position, are listed in each match.
Resource URL
https://api.toornament.com/organizer/v2/tournaments/{tournament_id}/matches
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:result
scope (see Authorization) - Rangestring
A range of requested items using the
matches
unit. The size of the range can not exceed 100. (see Pagination)Example: matches=0-99
Path parameters
- tournament_idstring
The id of the tournament you want to retrieve data about.
Query Parameters
- stage_idsarray
One or several stage ids to filter.
Example: 618965765764577354,618931468547654563
- group_idsarray
One or several group ids to filter.
Example: 618965314871946714,618932178746476544
- round_idsarray
One or several round ids to filter.
Example: 618943519431786343,618965178941654763
- statusesarray
One or several match statuses to filter.
Possible values: pending, running, completed
Example: pending,running
- is_scheduledboolean
Whether to include scheduled matches.
Possible values: 0, 1
- scheduled_beforestring
A datetime to include all matches scheduled before or at the datetime in RFC 3339 format (combined date, time and utc offset).
Format: datetime
Example: 2015-12-31T00:00:00+00:00
- scheduled_afterstring
A datetime to include all matches scheduled after or at the datetime in RFC 3339 format (combined date, time and utc offset).
Format: datetime
Example: 2015-12-31T00:00:00+00:00
- participant_idsarray
One or several participant ids involved in the matches to filter.
Example: 618965416546776434,618975467354349191
- custom_user_identifiersarray
One or several custom user identifiers involved in the matches to filter.
Example: acme:account:1234,acme:account:1235
- sortstring
A method to sort the filtered data. "structure" sorts using the stage, group, round and match numbers. "schedule" sorts using the scheduled date. "latest results" sorts using the date at which the matches were played (not scheduled).
Possible values: structure, schedule, latest_results
Default: structure
Example: schedule
Request Body
This endpoint does not require a request body.
Response
[206] Matches retrieved
Example
[ { "id": "618954615761465416", "stage_id": "618983668512789184", "group_id": "618985165765456465", "round_id": "618965146546456651", "number": 2, "type": "duel", "status": "pending", "settings": {}, "scheduled_datetime": "2015-12-31T00:00:00+00:00", "played_at": "2015-12-31T00:00:00+00:00", "public_note": "A note on\\ntwo lines\\n", "private_note": "A note on\\ntwo lines\\n", "report_closed": true, "report_status": "report", "opponents": [ { "number": 1, "position": 1, "result": "win", "rank": 3, "forfeit": false, "score": 15, "participant": { "id": "375143143408309123", "name": "Northmen", "custom_user_identifier": "acme:account:1234", "custom_fields": {} } } ] } ]
Structure (collection)
- idstring
The id of the match.
Example: "618954615761465416"
- stage_idstring
The id of the stage that contains this match.
Example: "618983668512789184"
- group_idstring
The id of the group that contains this match.
Example: "618985165765456465"
- round_idstring|null
The id of the round that contains this match.
Example: "618965146546456651"
- numberinteger
The match number (a relative identifier within a round).
Example: 2
- typestring
The match type.
Possible values: duel, ffa, bye
- statusstring
The status of the match.
Possible values: pending, running, completed
- settingsobject
Settings that describe the various options related to the match.
Example: {}
- scheduled_datetimestring|null
The scheduled date of the match in RFC 3339 format (combined date, time and utc offset).
Format: datetime
Example: "2015-12-31T00:00:00+00:00"
- played_atstring|null
The date and time when the match was completed (a result was provided).
Format: datetime
Example: "2015-12-31T00:00:00+00:00"
- public_notestring|null
Public note of a match, written by the organizer.
Example: "A note on\ntwo lines\n"
- private_notestring|null
Private note of a match, written by the organizer.
Example: "A note on\ntwo lines\n"
- report_closedboolean
Whether the match report is closed.
Example: true
- report_statusstring|null
The report status.
Possible values: report, dispute
- opponentsarray[object]
List of the opponents involved in this match.
LegacyGET /tournaments/{tournament_id}/matches/{id}
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Returns the match with the given id. A match is limited to 2 participants in “duel” type, and 100 participants in “ffa” type.
Resource URL
https://api.toornament.com/organizer/v2/tournaments/{tournament_id}/matches/{id}
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:result
scope (see Authorization)
Path parameters
- tournament_idstring
The id of the tournament you want to retrieve data about.
- idstring
The id of the requested match.
Query Parameters
This endpoint does not have any query parameters.
Request Body
This endpoint does not require a request body.
Response
[200] Match retrieved
Example
[ { "id": "618954615761465416", "stage_id": "618983668512789184", "group_id": "618985165765456465", "round_id": "618965146546456651", "number": 2, "type": "duel", "status": "pending", "settings": {}, "scheduled_datetime": "2015-12-31T00:00:00+00:00", "played_at": "2015-12-31T00:00:00+00:00", "public_note": "A note on\\ntwo lines\\n", "private_note": "A note on\\ntwo lines\\n", "report_closed": true, "report_status": "report", "opponents": [ { "properties": {}, "number": 1, "position": 1, "result": "win", "rank": 3, "forfeit": false, "score": 15, "participant": { "id": "375143143408309123", "name": "Northmen", "custom_user_identifier": "acme:account:1234", "custom_fields": {} } } ] } ]
Structure (collection)
- idstring
The id of the match.
Example: "618954615761465416"
- stage_idstring
The id of the stage that contains this match.
Example: "618983668512789184"
- group_idstring
The id of the group that contains this match.
Example: "618985165765456465"
- round_idstring|null
The id of the round that contains this match.
Example: "618965146546456651"
- numberinteger
The match number (a relative identifier within a round).
Example: 2
- typestring
The match type.
Possible values: duel, ffa, bye
- statusstring
The status of the match.
Possible values: pending, running, completed
- settingsobject
Settings that describe the various options related to the match.
Example: {}
- scheduled_datetimestring|null
The scheduled date of the match in RFC 3339 format (combined date, time and utc offset).
Format: datetime
Example: "2015-12-31T00:00:00+00:00"
- played_atstring|null
The date and time when the match was completed (a result was provided).
Format: datetime
Example: "2015-12-31T00:00:00+00:00"
- public_notestring|null
Public note of a match, written by the organizer.
Example: "A note on\ntwo lines\n"
- private_notestring|null
Private note of a match, written by the organizer.
Example: "A note on\ntwo lines\n"
- report_closedboolean
Whether the match report is closed.
Example: true
- report_statusstring|null
The report status.
Possible values: report, dispute
- opponentsarray[object]
List of the opponents involved in this match.
LegacyPATCH /tournaments/{tournament_id}/matches/{id}
This endpoint is in legacy mode. Access will soon be deprecated. It is therefore advised to use another endpoint when possible.
Updates information and detailed outcome of a match.
Resource URL
https://api.toornament.com/organizer/v2/tournaments/{tournament_id}/matches/{id}
HTTP headers
- X-Api-Keystring
API key of your application (see Authentication)
- Authorizationstring
Access token with
organizer:result
scope (see Authorization)
Path parameters
- tournament_idstring
The id of the tournament you want to retrieve data about.
- idstring
The id of the requested match.
Query Parameters
This endpoint does not have any query parameters.
Request Body
Update data
Example
{ "settings": {}, "scheduled_datetime": "2015-12-31T00:00:00+00:00", "public_note": "A note on\\ntwo lines\\n", "private_note": "A note on\\ntwo lines\\n", "opponents": [ { "number": 1, "position": 1, "result": "win", "rank": 3, "forfeit": false, "score": 15, "properties": {} } ] }
Structure (object)
- settingsobject
Optional
Settings that describe the various options related to the match.
Example: {}
- scheduled_datetimestring|null
Optional
The scheduled date of the match in RFC 3339 format (combined date, time and utc offset).
Format: datetime
Example: "2015-12-31T00:00:00+00:00"
- public_notestring|null
Optional
Public note of a match, written by the organizer.
Example: "A note on\ntwo lines\n"
- private_notestring|null
Optional
Private note of a match, written by the organizer.
Example: "A note on\ntwo lines\n"
- opponentsarray[object]
Optional
List of the opponents involved in this match.
Response
[200] Success.
Example
{ "id": "618954615761465416", "stage_id": "618983668512789184", "group_id": "618985165765456465", "round_id": "618965146546456651", "number": 2, "type": "duel", "status": "pending", "settings": {}, "scheduled_datetime": "2015-12-31T00:00:00+00:00", "played_at": "2015-12-31T00:00:00+00:00", "public_note": "A note on\\ntwo lines\\n", "private_note": "A note on\\ntwo lines\\n", "report_closed": true, "report_status": "report", "opponents": [ { "properties": {}, "number": 1, "position": 1, "result": "win", "rank": 3, "forfeit": false, "score": 15, "participant": { "id": "375143143408309123", "name": "Northmen", "custom_user_identifier": "acme:account:1234", "custom_fields": {} } } ] }
Structure (object)
- idstring
The id of the match.
Example: "618954615761465416"
- stage_idstring
The id of the stage that contains this match.
Example: "618983668512789184"
- group_idstring
The id of the group that contains this match.
Example: "618985165765456465"
- round_idstring|null
The id of the round that contains this match.
Example: "618965146546456651"
- numberinteger
The match number (a relative identifier within a round).
Example: 2
- typestring
The match type.
Possible values: duel, ffa, bye
- statusstring
The status of the match.
Possible values: pending, running, completed
- settingsobject
Settings that describe the various options related to the match.
Example: {}
- scheduled_datetimestring|null
The scheduled date of the match in RFC 3339 format (combined date, time and utc offset).
Format: datetime
Example: "2015-12-31T00:00:00+00:00"
- played_atstring|null
The date and time when the match was completed (a result was provided).
Format: datetime
Example: "2015-12-31T00:00:00+00:00"
- public_notestring|null
Public note of a match, written by the organizer.
Example: "A note on\ntwo lines\n"
- private_notestring|null
Private note of a match, written by the organizer.
Example: "A note on\ntwo lines\n"
- report_closedboolean
Whether the match report is closed.
Example: true
- report_statusstring|null
The report status.
Possible values: report, dispute
- opponentsarray[object]
List of the opponents involved in this match.