/v1/events

Events: past, running and scheduled, newest first.

GEThttps://api.tabletennisapi.com/v1/events
Plans:Free keyLiveArchiveComplete

Parameters

NameInTypeRequiredWhat it doesExample
fromquerydateoptionalEvents ending on or after this day (YYYY-MM-DD)2026-11-08
toquerydateoptionalEvents starting on or before this day (YYYY-MM-DD)2026-11-08
qquerystringoptionalWords in the event name, such as "Champions" or "Doha"Franziska
countryquerystringoptionalHost country, three letters (CHN, QAT)CHN
tierqueryintoptional1 the top senior events, 2 other senior events, 3 feeders, 4 youth, 5 other1

Run it live

GET /v1/eventsA 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/events
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": "ev_1y7qpwn1",
            "name": "Youth Star Contender Podgorica 2026",
            "start_date": "2026-11-07",
            "end_date": "2026-11-09",
            "venue": "Verde Complex",
            "city": "Podgorica",
            "country": "MNE",
            "tier": 4,
            "utc_offset_min": 60,
            "matches": 206
        },
        {
            "id": "ev_c9dqxh36",
            "name": "Feeder Vila Nova de Gaia 2026",
            "start_date": "2026-11-04",
            "end_date": "2026-11-08",
            "venue": "Pavilhao Municipal de Vila Nova de Gaia",
            "city": "Vila Nova de Gaia",
            "country": "POR",
            "tier": 3,
            "utc_offset_min": 0,
            "matches": 286
        }
    ],
    "meta": {
        "count": 2,
        "next_cursor": "eyJvIjoyLCJwIjoyfQ",
        "page": 1,
        "per_page": 2,
        "total": 3,
        "total_pages": 2,
        "next_page": 2,
        "prev_page": null
    }
}

Example

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