/v1/players/{id}/rankings

A player's world ranking week by week, on every list they are in, newest first.

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

Parameters

NameInTypeRequiredWhat it doesExample
idpathidrequiredThe player id, as returned by any listpl_pa71g1zb
disciplinequerystringoptionalMS, WS, MD, WD or XDMS
doublesquerystringoptionalFor MD, WD and XD: pair or playerpair
fromquerydateoptionalWeeks published on or after this day (YYYY-MM-DD)2026-11-08
toquerydateoptionalWeeks published on or before this day (YYYY-MM-DD)2026-11-08

Run it live

GET /v1/players/{id}/rankingsA 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}/rankings
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": [
        {
            "week": "2026-49",
            "published": "2026-11-30",
            "discipline": "MD",
            "doubles": "pair",
            "list": "senior",
            "rank": 55,
            "previous_rank": 55,
            "movement": 0,
            "points": 285,
            "partner": {
                "id": "pl_ggxkjnzc",
                "name": "Duda Benedikt",
                "country": "GER"
            }
        },
        {
            "week": "2026-49",
            "published": "2026-11-30",
            "discipline": "MD",
            "doubles": "pair",
            "list": "senior",
            "rank": 82,
            "previous_rank": 83,
            "movement": 1,
            "points": 155,
            "partner": {
                "id": "pl_g3ghy1m9",
                "name": "Ovtcharov Dimitrij",
                "country": "GER"
            }
        }
    ],
    "meta": {
        "count": 2,
        "next_cursor": "eyJvIjoyLCJwIjoyfQ",
        "page": 1,
        "per_page": 2,
        "total": 54,
        "total_pages": 27,
        "next_page": 2,
        "prev_page": null
    }
}

Example

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