Documentation / Endpoints / Matches
/v1/matches
Matches on a day or across dates, every event.
GEThttps://api.tabletennisapi.com/v1/matches
Plans:Free keyLiveArchiveComplete On the free key, games, duration_s and table come back as null
Parameters
| Name | In | Type | Required | What it does | Example |
|---|---|---|---|---|---|
date | query | date | optional | One day (YYYY-MM-DD), the local day of play. Default: today | 2026-11-08 |
from | query | date | optional | First day, with to | 2026-11-08 |
to | query | date | optional | Last day, with from (at most 31 days) | 2026-11-08 |
discipline | query | string | optional | MS, WS, MD, WD, XD; teams MT, WT, XT | MS |
age_group | query | string | optional | Youth age group: U11 to U19. "senior" for seniors only | U19 |
tier | query | int | optional | Event tier, 1 to 5 | 1 |
status | query | string | optional | finished, live, scheduled or unconfirmed (played, no official result) | finished |
country | query | string | optional | Matches with a player from this country (three letters) | CHN |
Run it live
GET /v1/matchesA real call to the API, from your browser
Your key is kept in this browser only, so every docs page has it, and is sent only to api.tabletennisapi.com. Left empty, the call runs on a free key with its dates and fields, 20 calls a minute.
GEThttps://api.tabletennisapi.com/v1/matches
Not run yet
Press Run it to see the answer here.
Response
A real answer from the data, two rows shown. Every field is described in the manual.
200 OKapplication/json
{
"data": [
{
"id": "mt_22pg4p86",
"event": {
"id": "ev_1y7qpwn1",
"name": "Youth Star Contender Podgorica 2026"
},
"date": "2026-11-08",
"start_time": "2026-11-08T08:00:00Z",
"discipline": "WD",
"age_group": "U15",
"para_class": null,
"round": "quarter_final",
"round_name": "Quarter-finals",
"rubber": null,
"status": "finished",
"best_of": 5,
"points_per_game": 11,
"win_by": 2,
"utc_offset_min": 60,
"sides": [
{
"side": "a",
"name": "Shanbhag Anya/Guassardo Barbora",
"country": "USA/SVK",
"players": [
{
"id": "pl_a1yb65c2",
"name": "Shanbhag Anya",
"country": "USA"
},
{
"id": "pl_wy6gssqa",
"name": "Guassardo Barbora",
"country": "SVK"
}
]
},
{
"side": "b",
"name": "Lam Eva/Rochut Albane",
"country": "FRA",
"players": [
{
"id": "pl_660vv693",
"name": "Lam Eva",
"country": "FRA"
},
{
"id": "pl_c3hsh08s",
"name": "Rochut Albane",
"country": "FRA"
}
]
}
],
"score": {
"a": 0,
"b": 3
},
"winner": "b",
"result_note": null,
"games": [
{
"a": 6,
"b": 11
},
{
"a": 9,
"b": 11
},
{
"a": 2,
"b": 11
}
],
"duration_s": 1017,
"table": 1,
"started_at": "2026-11-08T08:18:51Z",
"timeouts": {
"a": 1,
"b": 0
},
"cards": {
"a": [],
"b": []
},
"video_review": false,
"challenges_each": 99,
"serving": null
},
{
"id": "mt_jamwgx5z",
"event": {
"id": "ev_1y7qpwn1",
"name": "Youth Star Contender Podgorica 2026"
},
"date": "2026-11-08",
"start_time": "2026-11-08T08:00:00Z",
"discipline": "WD",
"age_group": "U15",
"para_class": null,
"round": "quarter_final",
"round_name": "Quarter-finals",
"rubber": null,
"status": "finished",
"best_of": 5,
"points_per_game": 11,
"win_by": 2,
"utc_offset_min": 60,
"sides": [
{
"side": "a",
"name": "Fegyver Zsofia/Bae Jinah",
"country": "HUN/KOR",
"players": [
{
"id": "pl_hqx4dede",
"name": "Fegyver Zsofia",
"country": "HUN"
},
{
"id": "pl_93r068yd",
"name": "Bae Jinah",
"country": "KOR"
}
]
},
{
"side": "b",
"name": "Rothfuss Lotta/Chen Chenhao",
"country": "GER",
"players": [
{
"id": "pl_r3tqz96f",
"name": "Rothfuss Lotta",
"country": "GER"
},
{
"id": "pl_qq8m0pgr",
"name": "Chen Chenhao",
"country": "GER"
}
]
}
],
"score": {
"a": 3,
"b": 2
},
"winner": "a",
"result_note": null,
"games": [
{
"a": 8,
"b": 11
},
{
"a": 12,
"b": 10
},
{
"a": 11,
"b": 9
},
{
"a": 7,
"b": 11
},
{
"a": 11,
"b": 9
}
],
"duration_s": 2078,
"table": 2,
"started_at": "2026-11-08T08:35:51Z",
"timeouts": {
"a": 1,
"b": 1
},
"cards": {
"a": [],
"b": []
},
"video_review": false,
"challenges_each": 99,
"serving": null
}
],
"meta": {
"count": 2,
"next_cursor": "eyJvIjoyLCJwIjoyfQ",
"page": 1,
"per_page": 2,
"total": 111,
"total_pages": 56,
"next_page": 2,
"prev_page": null
}
}Example
curl
curl https://api.tabletennisapi.com/v1/matches \
-H "Authorization: Bearer $TT_KEY"Python
import os, requests res = requests.get("https://api.tabletennisapi.com/v1/matches", headers={"Authorization": "Bearer " + os.environ["TT_KEY"]}).json()
JavaScript
const res = await fetch("https://api.tabletennisapi.com/v1/matches", { headers: { Authorization: "Bearer " + process.env.TT_KEY }, }); const { data, meta } = await res.json();
PHP
$ch = curl_init("https://api.tabletennisapi.com/v1/matches"); curl_setopt_array($ch, [CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => ["Authorization: Bearer " . getenv("TT_KEY")]]); $res = json_decode(curl_exec($ch), true);
Go
req, _ := http.NewRequest("GET", "https://api.tabletennisapi.com/v1/matches", nil) req.Header.Set("Authorization", "Bearer "+os.Getenv("TT_KEY")) res, err := http.DefaultClient.Do(req)
Generate a client
Prefer a typed client? Every endpoint, parameter and field is in openapi.json (OpenAPI 3.1), so any OpenAPI generator builds one in your language; this call is matches in it. Or import the Postman collection and run every call with no code.
Generate a client
npx @openapitools/openapi-generator-cli generate \
-i https://tabletennisapi.com/openapi.json \
-g python -o tabletennis-client
# or -g typescript-fetch, php, go, java, csharp, ruby, kotlin, swift5Answers come back as data and meta; errors as error. See Errors and Pagination.