/v1/players/{id}/matches

A player's matches, newest first, singles and doubles.

GEThttps://api.tabletennisapi.com/v1/players/{id}/matches
Plans:LiveArchiveComplete

Parameters

NameInTypeRequiredWhat it doesExample
idpathidrequiredThe player id, as returned by any listpl_pa71g1zb
fromquerydateoptionalFirst day (YYYY-MM-DD)2026-11-08
toquerydateoptionalLast day (YYYY-MM-DD)2026-11-08
disciplinequerystringoptionalMS, WS, MD, WD, XD; teams MT, WT, XTMS

Run it live

GET /v1/players/{id}/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/players/{id}/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_s167nw41",
            "event": {
                "id": "ev_qm06xvdd",
                "name": "Champions Frankfurt 2026"
            },
            "date": "2026-11-08",
            "start_time": "2026-11-08T17:30:00Z",
            "discipline": "MS",
            "age_group": null,
            "para_class": null,
            "round": "final",
            "round_name": "Final",
            "rubber": null,
            "status": "finished",
            "best_of": 7,
            "points_per_game": 11,
            "win_by": 2,
            "utc_offset_min": 60,
            "sides": [
                {
                    "side": "a",
                    "name": "Franziska Patrick",
                    "country": "GER",
                    "players": [
                        {
                            "id": "pl_pa71g1zb",
                            "name": "Franziska Patrick",
                            "country": "GER"
                        }
                    ]
                },
                {
                    "side": "b",
                    "name": "Harimoto Tomokazu",
                    "country": "JPN",
                    "players": [
                        {
                            "id": "pl_mc5w19rn",
                            "name": "Harimoto Tomokazu",
                            "country": "JPN"
                        }
                    ]
                }
            ],
            "score": {
                "a": 2,
                "b": 4
            },
            "winner": "b",
            "result_note": null,
            "games": [
                {
                    "a": 11,
                    "b": 2
                },
                {
                    "a": 9,
                    "b": 11
                },
                {
                    "a": 13,
                    "b": 11
                },
                {
                    "a": 8,
                    "b": 11
                },
                {
                    "a": 4,
                    "b": 11
                },
                {
                    "a": 4,
                    "b": 11
                }
            ],
            "duration_s": 2917,
            "table": 1,
            "started_at": "2026-11-08T17:52:28Z",
            "timeouts": {
                "a": 1,
                "b": 1
            },
            "cards": {
                "a": [],
                "b": []
            },
            "video_review": false,
            "challenges_each": 99,
            "serving": null
        },
        {
            "id": "mt_0wayhqzy",
            "event": {
                "id": "ev_qm06xvdd",
                "name": "Champions Frankfurt 2026"
            },
            "date": "2026-11-08",
            "start_time": "2026-11-08T12:15:00Z",
            "discipline": "MS",
            "age_group": null,
            "para_class": null,
            "round": "semi_final",
            "round_name": "Semi-finals",
            "rubber": null,
            "status": "finished",
            "best_of": 7,
            "points_per_game": 11,
            "win_by": 2,
            "utc_offset_min": 60,
            "sides": [
                {
                    "side": "a",
                    "name": "Franziska Patrick",
                    "country": "GER",
                    "players": [
                        {
                            "id": "pl_pa71g1zb",
                            "name": "Franziska Patrick",
                            "country": "GER"
                        }
                    ]
                },
                {
                    "side": "b",
                    "name": "Togami Shunsuke",
                    "country": "JPN",
                    "players": [
                        {
                            "id": "pl_0ybe1qfr",
                            "name": "Togami Shunsuke",
                            "country": "JPN"
                        }
                    ]
                }
            ],
            "score": {
                "a": 4,
                "b": 2
            },
            "winner": "a",
            "result_note": null,
            "games": [
                {
                    "a": 11,
                    "b": 7
                },
                {
                    "a": 8,
                    "b": 11
                },
                {
                    "a": 11,
                    "b": 6
                },
                {
                    "a": 5,
                    "b": 11
                },
                {
                    "a": 11,
                    "b": 7
                },
                {
                    "a": 11,
                    "b": 9
                }
            ],
            "duration_s": 3040,
            "table": 1,
            "started_at": "2026-11-08T13:17:45Z",
            "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": 92,
        "total_pages": 46,
        "next_page": 2,
        "prev_page": null
    }
}

Example

curl
curl https://api.tabletennisapi.com/v1/players/pl_pa71g1zb/matches \
  -H "Authorization: Bearer $TT_KEY"
Python
import os, requests
res = requests.get("https://api.tabletennisapi.com/v1/players/pl_pa71g1zb/matches",
    headers={"Authorization": "Bearer " + os.environ["TT_KEY"]}).json()
JavaScript
const res = await fetch("https://api.tabletennisapi.com/v1/players/pl_pa71g1zb/matches", {
  headers: { Authorization: "Bearer " + process.env.TT_KEY },
});
const { data, meta } = await res.json();
PHP
$ch = curl_init("https://api.tabletennisapi.com/v1/players/pl_pa71g1zb/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/players/pl_pa71g1zb/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 player_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, swift5

Answers come back as data and meta; errors as error. See Errors and Pagination.