Get a match
const url = 'https://api.krkplaystennis.example/v1/matches/mat_4nc8xq2vbt';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.krkplaystennis.example/v1/matches/mat_4nc8xq2vbt \ --header 'X-API-Key: <X-API-Key>'Returns a match, its score, and its rating status.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”A match ID. Starts with mat_.
The match ID.
Responses
Section titled “Responses”The match.
object
A match ID. Starts with mat_.
A competition ID. Starts with cmp_.
A venue ID. Starts with ven_.
The court number at the venue. null if the organizer didn’t send it.
When the match started.
The two players. Every score pair uses this order.
How the match ended:
completed: the match was played to the end.retired: a player stopped during the match. The match is rated on the games completed.walkover: a player didn’t show up or withdrew before the match. The match isn’t rated.
The score, set by set. Every pair of numbers is in the same order as player_ids.
Valid set scores depend on the competition’s match_format.games_per_set. When match_format.final_set is match_tiebreak, a match tiebreak replaces the third set. In a retired match, the last set can be unfinished.
object
object
Two non-negative integers, in the same order as player_ids.
Tiebreak points, only for a set that ended 7-6.
Match tiebreak points, only when the competition’s match_format.final_set is match_tiebreak.
A player ID. Starts with plr_.
Whether the match has affected ratings:
pending: the result is recorded, and the rating update hasn’t run yet.rated: both players’ ratings are updated.not_rated: the match doesn’t affect ratings, for example a walkover.
When the result was submitted.
Examples
Completed match, decided in a match tiebreak
{ "id": "mat_4nc8xq2vbt", "competition_id": "cmp_6tw2hn8rxe", "venue_id": "ven_7hk2p9wq4m", "court_number": 2, "played_at": "2026-10-10T18:00:00+02:00", "player_ids": [ "plr_2b7xq9mhk4", "plr_9fz3tr6wn1" ], "status": "completed", "score": { "sets": [ { "games": [ 6, 4 ] }, { "games": [ 3, 6 ] } ], "match_tiebreak": [ 10, 7 ] }, "winner_id": "plr_2b7xq9mhk4", "retired_player_id": null, "rating_status": "rated", "created_at": "2026-10-10T20:41:00Z"}Retired match, rated on the games completed
{ "id": "mat_7rk3mw9zse", "competition_id": "cmp_6tw2hn8rxe", "venue_id": "ven_3xr8tn5cva", "court_number": 1, "played_at": "2026-10-08T19:00:00+02:00", "player_ids": [ "plr_5jd8vk2lc7", "plr_8mq4ws1yd6" ], "status": "retired", "score": { "sets": [ { "games": [ 6, 2 ] }, { "games": [ 2, 1 ] } ] }, "winner_id": "plr_5jd8vk2lc7", "retired_player_id": "plr_8mq4ws1yd6", "rating_status": "rated", "created_at": "2026-10-08T21:12:00Z"}Walkover, not rated
{ "id": "mat_2vb6np4ktf", "competition_id": "cmp_6tw2hn8rxe", "venue_id": "ven_7hk2p9wq4m", "court_number": null, "played_at": "2026-10-05T10:00:00+02:00", "player_ids": [ "plr_9fz3tr6wn1", "plr_5jd8vk2lc7" ], "status": "walkover", "score": null, "winner_id": "plr_9fz3tr6wn1", "retired_player_id": null, "rating_status": "not_rated", "created_at": "2026-10-05T10:20:00Z"}The credentials are missing, invalid, or expired.
An error, as RFC 9457 problem details.
object
A URL that identifies the error type and links to its documentation.
A short summary of the error type. It’s the same for every error of this type.
The HTTP status code.
An explanation of this occurrence of the error.
The request path that caused the error.
One item per invalid field or parameter. Only for invalid-request, invalid-score, and validation-failed.
object
A JSON Pointer to the invalid field in the request body, or #/ followed by the name of an invalid query parameter.
What’s wrong with the field and how to fix it.
Examples
Missing API key
{ "type": "https://saverio-cirillo.com/krk-plays-tennis-api/errors/#unauthenticated", "title": "Authentication required", "status": 401, "detail": "Send a valid API key in the X-API-Key header.", "instance": "/v1/players/plr_2b7xq9mhk4"}No resource exists with this ID.
An error, as RFC 9457 problem details.
object
A URL that identifies the error type and links to its documentation.
A short summary of the error type. It’s the same for every error of this type.
The HTTP status code.
An explanation of this occurrence of the error.
The request path that caused the error.
One item per invalid field or parameter. Only for invalid-request, invalid-score, and validation-failed.
object
A JSON Pointer to the invalid field in the request body, or #/ followed by the name of an invalid query parameter.
What’s wrong with the field and how to fix it.
Examples
Unknown player ID
{ "type": "https://saverio-cirillo.com/krk-plays-tennis-api/errors/#not-found", "title": "Not found", "status": 404, "detail": "No player exists with the ID plr_0000000000.", "instance": "/v1/players/plr_0000000000"}You sent too many requests. Wait for the number of seconds in Retry-After, then retry.
An error, as RFC 9457 problem details.
object
A URL that identifies the error type and links to its documentation.
A short summary of the error type. It’s the same for every error of this type.
The HTTP status code.
An explanation of this occurrence of the error.
The request path that caused the error.
One item per invalid field or parameter. Only for invalid-request, invalid-score, and validation-failed.
object
A JSON Pointer to the invalid field in the request body, or #/ followed by the name of an invalid query parameter.
What’s wrong with the field and how to fix it.
Examples
Rate limit reached
{ "type": "https://saverio-cirillo.com/krk-plays-tennis-api/errors/#rate-limited", "title": "Rate limit reached", "status": 429, "detail": "This API key is limited to 60 requests per minute. Retry after 30 seconds.", "instance": "/v1/matches"}Headers
Section titled “Headers”Number of seconds to wait before you retry.
Example
30© 2026 Saverio Cirillo · KRKplaysTennis is a fictional API · Built with Starlight