/v1/players/{id}

One player: name, country and their record by discipline.

GEThttps://api.tabletennisapi.com/v1/players/{id}
Plans:Free keyLiveArchiveComplete

Parameters

NameInTypeRequiredWhat it doesExample
idpathidrequiredThe player id, as returned by any listpl_pa71g1zb

Run it live

GET /v1/players/{id}A 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}
Not run yet
Press Run it to see the answer here.

Response

A real answer from the data. Every field is described in the manual.

200 OKapplication/json
{
    "data": {
        "id": "pl_pa71g1zb",
        "name": "Franziska Patrick",
        "country": "GER",
        "born": "1992-06-11",
        "hand": null,
        "height_cm": 190,
        "record": [
            {
                "discipline": "MS",
                "played": 64,
                "won": 38,
                "lost": 24,
                "first": "2025-01-09",
                "last": "2026-11-08"
            },
            {
                "discipline": "XD",
                "played": 13,
                "won": 5,
                "lost": 8,
                "first": "2025-02-12",
                "last": "2026-10-04"
            },
            {
                "discipline": "MD",
                "played": 13,
                "won": 6,
                "lost": 7,
                "first": "2025-02-04",
                "last": "2026-09-17"
            }
        ],
        "world_ranks": [
            {
                "discipline": "MS",
                "doubles": null,
                "list": "senior",
                "rank": 12,
                "points": 3260,
                "week": "2026-49"
            },
            {
                "discipline": "MD",
                "doubles": "pair",
                "list": "senior",
                "rank": 55,
                "points": 285,
                "week": "2026-49"
            },
            {
                "discipline": "MD",
                "doubles": "pair",
                "list": "senior",
                "rank": 82,
                "points": 155,
                "week": "2026-49"
            },
            {
                "discipline": "MD",
                "doubles": "player",
                "list": "senior",
                "rank": 80,
                "points": 440,
                "week": "2026-49"
            },
            {
                "discipline": "XD",
                "doubles": "pair",
                "list": "senior",
                "rank": 45,
                "points": 315,
                "week": "2026-49"
            },
            {
                "discipline": "XD",
                "doubles": "player",
                "list": "senior",
                "rank": 90,
                "points": 363,
                "week": "2026-49"
            }
        ]
    },
    "meta": []
}

Example

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