Real-time tennis scores, player data, match-winner market prices, and
model-driven match analysis. Read-only. Coverage spans ATP, WTA,
Challenger, ITF and the junior Grand Slam draws — depth differs by tour
and surface; GET /history/coverage states the measured numbers.
Access is tiered (FREE / BASIC / PRO / ULTRA). Each tier includes everything in the tiers below it; the concrete deltas are:
FREE — self-serve, no card (https://livetennisapi.com/subscribe/free).
Live and upcoming matches, current scores, players, fixtures, the
tournament catalogue (/tournaments), and your own usage stats.
30 requests/minute, 100/day. No historical results, no market prices,
no model fields, no WebSocket.
BASIC — adds historical data: the completed-match listing
(/history/matches, and status=completed on /matches), the
per-match point-by-point tape with the model win-probability on the
rows where the model ran
(/history/matches/{matchId}), the measured completeness rollup
(/history/coverage), and the results archive (1968–2022) —
deep results (/history/archive/matches), archive player bios
(/history/archive/players), career aggregates
(/history/archive/career) and head-to-head (/h2h).
60 requests/minute, 1,000/day.
PRO — adds match events (/matches/{matchId}/events), market prices
(/markets, /markets/{matchId}/prices, /matches/{matchId}/prices),
the pre-built monthly bulk history packages (/history/packages) and the
rank-ordered rankings listing (/rankings?system=).
300 requests/minute, 10,000/day.
ULTRA — adds model analysis (/matches/{matchId}/analysis), the live
model fields (win_probability_p1, danger) on every score object,
in-play match statistics (/matches/{matchId}/statistics), per-player
as-of ranking records (/rankings?player=), the as-of Elo tape
(/rankings?system=elo — both modes, plus kind=elo bulk packages),
rally construction
(/rally/matches, shot-by-shot charted data), career and per-match
charting stats (/charting/players, /charting/matches/{chartingMatchId}),
the WebSocket live feed at /ws and the high-fan-out push feed
(/ws-token), and outbound webhooks (direct keys). 600 requests/minute,
500,000/day.
History runs in two continuous halves, deliberately non-overlapping: the point-by-point tape (2023→now) covers January 2023 to now, match by match, point by point; the results archive (1968–2022) covers 1968 through 2022 as winner/loser-shaped RESULTS (final score, seeds, ranks at the time — no point-by-point). The archive ends exactly where the tape begins, so no match is ever served from two datasets.
A call above your tier returns 403 {"error":"upgrade_required"} — never
a silent empty result.
CORS is enabled across the REST surface: every response carries
Access-Control-Allow-Origin: * (GET/OPTIONS, no credentials mode — there
is no cookie or session, and a wildcard origin is incompatible with
credentials by design). Putting a FREE key in browser code is acceptable —
it is capped and revocable; a paid key belongs server-side only.
The /history/* endpoints are also sold standalone as the **Historical
Data API** (no live-API subscription required): **Starter** — single-match
point-by-point tape reads via the API (tape plus the model win-probability
per point), all tours (ATP/WTA/Challenger/ITF/juniors), one match per
request, no bulk downloads; **Pro** — everything in Starter plus bulk
monthly package
downloads and higher rate limits; **Business** — everything in Pro plus
year-scale archive exports, top rate limits and priority support. One-off
1-month and 1-year access passes are available without a subscription.
The results archive (1968–2022) endpoints (/history/archive/*, /h2h)
ride with the same entitlement — any active History plan, Starter
included, opens them alongside the tape endpoints.
Plans and prices: https://livetennisapi.com/historical-tennis-data-api
All timestamps are UTC ISO 8601 with a Z suffix. List endpoints return
{data, meta}; single resources return the object directly. Ignore
unknown fields — additive changes land within v1.
A native WebSocket live feed (ULTRA) exists at /ws under the same base
URL. Subscribe with one JSON frame whose keys are topics and
(optionally) signals: {"topics":["live-scores"]} — topics may also
name "match:<id>". The server acks with a subscribed frame, then
pushes score frames on every change plus a ping heartbeat roughly
every 15s. Score frames carry the ULTRA model fields
(win_probability_p1, danger) live; a null there means the model had
no output for that point, not that the field is REST-only. Opt into extra
signals with {"topics":["live-scores"],"signals":["break_point"]} to
also receive break_point and break_point_result frames (schemas
BreakPoint / BreakPointResult). Without signals, score frames only.
signals may also name points — the live per-point event stream: one
point frame (schema PointFrame) per persisted point of your
subscribed matches, ordered per match by seq. The signal is
config-gated and ships OFF by default; the subscribed ack echoes the
signals actually active, so points present in the ack means point
frames will flow and missing means they will not. Frames arrive only for
matches with pbp_coverage: "point" — a game-coverage match sends
none, honestly. Best-effort with NO replay: on reconnect (or to join
mid-match) catch up via GET /matches/{matchId}/points?after_seq= and
dedup by seq.
Max 2 concurrent connections per key. For high fan-out, GET /ws-token
mints a token for the separate push feed.
Getting a match id: it is the id field on any match object returned by
GET /matches, GET /fixtures or GET /history/matches, and the same value
works on every route that takes matchId.
Quickstart — no code required
Paste this into a browser, with your key on the end. That's the whole setup: no install, no headers, works on a phone.
https://api.livetennisapi.com/api/public/v1/matches?status=live&token=YOUR_KEY
You'll get every live match. Here is one, and how to read it:
- "players": { "p1": { "name": "Chase Ferguson" }, "p2": { "name": "Scott Jones" } }
- who is playing
- "sets": [1, 0]
- p1 leads one set to nil
- "games": [[6, 3], [4, 4]]
- first list is p1, second is p2 — so 6-4 in the first set, 3-4 in the second
- "points": ["0", "0"]
- the game in progress
- "server": 1
- p1 is serving (2 = p2)
Every score array is player-major: the first list belongs to player 1, the second to player 2. Once that clicks, the rest of the API reads the same way.
Two more you can click, swapping 21131 for any id from the list above:
https://api.livetennisapi.com/api/public/v1/matches/21131?token=YOUR_KEY
https://api.livetennisapi.com/api/public/v1/matches/21131/score?token=YOUR_KEY
Base URL
https://api.livetennisapi.com/api/public/v1
Authentication
Three ways to present your key — all equivalent. Use the header in code; use
?token= when you just want to click a link or test from a browser or phone.
The /health endpoint needs no key.
Authorization: Bearer twjp_...
X-API-Key: twjp_...
?token=twjp_... in the URL — browser-friendly
Plans
Every plan includes everything in the plans below it. The table shows the delta — exactly what each upgrade adds, and the request budget you get.
| Plan | Adds | Rate limit | Price |
|---|---|---|---|
| FREE | The current state of the game: live & upcoming matches, current scores, players, fixtures, your usage stats. No history, no market prices, no model fields, no WebSocket. | 30/min · 100/day | $0 — no card |
| BASIC | Historical data, in two continuous halves: the point-by-point tape (2023→now) — the completed-match listing (/history/matches, status=completed) and the full per-match tape with the model win-probability on the rows where the model ran (/history/matches/{matchId}) and the measured completeness rollup per tour × draw bucket (/history/coverage) — and the results archive (1968–2022): deep results (/history/archive/matches), archive player bios, career aggregates and head-to-head (/h2h). | 60/min · 1,000/day | $9.99/mo |
| PRO | Match events, market prices (/markets), the pre-built bulk history packages (/history/packages, JSONL/CSV), and the rank-ordered rankings listing (/rankings?system=). | 300/min · 10,000/day | $29.99/mo |
| ULTRA | Model analysis, live win_probability_p1 + danger on every score, in-play match statistics, live per-point events (/matches/{matchId}/points + the WebSocket point frames, where a point-level feed covers the match), per-player as-of ranking records, the as-of Elo tape (/rankings?system=elo), rally construction (shot-by-shot charted data), the WebSocket push feed, outbound webhooks. | 600/min · 500,000/day | $99.99/mo |
The table above scrolls sideways.
Calling an endpoint above your plan returns 403 {"error":"upgrade_required"} —
never a silent empty result. See pricing.
Historical Data API — standalone plans
The /history endpoints are also sold on their own, without a live-API
subscription:
| Plan | Adds |
|---|---|
| Starter | Single-match point-by-point tape reads via the API — the tape plus the model win-probability where computed — for all tours (ATP, WTA, Challenger, ITF), one match per request. No bulk downloads. |
| Pro | Everything in Starter, plus bulk monthly package downloads and higher rate limits. |
| Business | Everything in Pro, plus year-scale archive exports, top rate limits and priority support. |
| One-off passes | 1-month and 1-year access passes, no subscription. |
The table above scrolls sideways.
Plans and prices: https://livetennisapi.com/historical-tennis-data-api.
Break-point Alerts — hosted alerts, no code
A hosted companion product that pushes break-point alerts to your channels
(the same signal the ULTRA WebSocket break_point frame carries, without
running a client). Free: high-swing break points only (probability swing
≥ 0.15), one delivery channel. Pro ($9.99/mo): every break point — no
swing floor — to unlimited channels: Telegram, Discord, email, SMS, WhatsApp.
Details: livetennisapi.com.
Official client libraries
| Language | Install | Source |
|---|---|---|
| Python | pip install livetennisapi | livetennisapi-python |
| JavaScript / TypeScript | npm install livetennisapi | livetennisapi-js |
| MCP server (LLM agents) | npx livetennisapi-mcp | livetennisapi-mcp |
Conventions
- Timestamps are UTC ISO 8601 with a
Zsuffix. - List endpoints return
{data, meta}; single resources return the object directly. limitdefaults to 50; the API rejects anything above 200. Paginate withoffset.- Ignore unknown fields. Additive changes ship within
v1, so a client that rejects unrecognised fields will break. Every official SDK parses permissively. - Score shape:
setsis[sets_p1, sets_p2].gamesis[games_p1, games_p2]where each side is a per-set list — so[[6,3,2],[4,6,1]]reads 6-4, 3-6, 2-1. It is player-major, not set-major.
Endpoints
GET /health— Liveness probe (no auth)GET /matches— List matches by lifecycle status (FREE)GET /matches/{matchId}— Full match detail (FREE; +market PRO, +analysis ULTRA)GET /matches/{matchId}/score— Current score only — lowest-latency REST read (FREE)GET /matches/{matchId}/events— Match events, newest first (PRO)GET /matches/{matchId}/analysis— Model analysis for a match (ULTRA)GET /matches/{matchId}/statistics— In-play statistics — aces, double faults, serve split, hold/break %, break points, service & return points (ULTRA)GET /matches/{matchId}/points— Live per-point events in seq order — the REST catch-up for the WebSocket point stream (ULTRA)GET /players— Search players by name (FREE)GET /players/{playerId}— One player's bio + ranking + cached stats (FREE)GET /tournaments— Tournament catalogue — the id space `Match.tournament_id` joins (FREE)GET /tournaments/{tournamentId}— One tournament by its stable id (FREE)GET /markets— Match-winner market(s) for a match (PRO)GET /markets/{matchId}/prices— Market + recent price ticks per side, newest first (PRO)GET /matches/{matchId}/prices— Bare price ticks of the mapped match-winner market, newest first (PRO)GET /history/matches— Completed matches, newest first, with derived winner and tape coverage (BASIC)GET /history/coverage— Measured completeness rollup per tour × draw bucket (BASIC)GET /history/matches/{matchId}— Per-match tape — point-by-point score + per-point model probabilities (BASIC)GET /history/archive/matches— Results archive (1968–2022) — deep historical results (BASIC)GET /history/archive/matches/{archiveId}— One archive result, with serve statistics where recorded (BASIC)GET /history/archive/players— Archive player bios — hand, DOB, country, height, career-high (BASIC)GET /history/archive/career— Career aggregates over the results archive, 1968–2022 (BASIC)GET /h2h— Head-to-head across the results archive (1968–2022) and our own completed matches (2023→now) (BASIC)GET /history/packages— List the pre-built monthly bulk history packages (PRO)GET /history/packages/{period}— One monthly package — manifest, or the bulk file itself (PRO)GET /fixtures— Upcoming scheduled fixtures, earliest first (FREE)GET /usage— Your own usage vs quota (FREE — any tier)GET /rankings— Rankings and Elo — rank-ordered listing (PRO) or per-player as-of records (ULTRA); the as-of Elo tape is ULTRA in both modesGET /rally/matches— Charted matches with shot-by-shot data (ULTRA)GET /rally/matches/{rallyMatchId}— Rally construction for one charted match (ULTRA)GET /history/matches/{matchId}/rally— Rally construction by OUR match id (ULTRA)GET /charting/players— Career shot-level charting aggregate for one player (ULTRA)GET /charting/matches/{chartingMatchId}— One charted match, every stat family for both players (ULTRA)POST /webhooks— Register an outbound webhook (ULTRA, direct keys only)GET /webhooks— List your webhooks (ULTRA, direct keys only; never includes the secret)DELETE /webhooks/{webhookId}— Remove one of your webhooks (ULTRA, direct keys only)GET /ws-token— Mint a connection token for the high-fan-out push feed (ULTRA)
GET /health
Liveness probe (no auth)
Responses
| Status | Meaning |
|---|---|
200 | OK |
Response fields
| Field | Type | Description |
|---|---|---|
status | string | |
version | string |
Example
curl https://api.livetennisapi.com/api/public/v1/health
GET /matches
List matches by lifecycle status (FREE)
status=live and status=upcoming are the FREE current-state picture. status=completed pages historical results and is part of the paid History product — it requires BASIC (the same rule as /history/matches) and returns 403 upgrade_required on a FREE key. The player, country, from/to, tour and draw filters are optional, AND-composed, applied inside the query (before pagination), and work on every status — omitting them returns exactly what the endpoint returned before they existed.
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
status | query | string (live, upcoming, completed) | no | live (default) and upcoming are FREE; completed requires BASIC — paging completed results is the history surface. Default live. |
tour | query | string (atp, wta, challenger, itf, juniors) | no | Restrict results to one tour. Each value covers its singles and doubles draws, so atp includes ATP doubles and juniors covers the boys' and girls' Grand Slam draws. Omit for all tours. An unrecognised value is a 400 rather than a silent pass-through, so a caller never receives a tour it did not ask for. Applied before pagination, so meta.count reflects the filtered set. |
draw | query | string (singles, doubles) | no | Draw filter (added 2026-08-18) — the axis the tour filter deliberately collapses; the two compose (?tour=itf&draw=doubles is the ITF doubles slice). Same vocabulary as the draw field on Match, decided by the same shared definition, so filter and field cannot disagree. A row whose draw is null — a team tie, or no stated event type and no doubles-team participant — matches NEITHER value: null is an answer, not a wildcard. Two honesty notes: on /tournaments the answer comes from the event type alone (a tournament row has no participants to supply the doubles-team evidence matches have), and draw=doubles alone also returns mixed and exhibition doubles that no tour value reaches. An unknown value is a 400 bad_draw with the allowed values. |
player | query | array of integer | no | Filter to matches where this player id is EITHER participant. Repeatable (max 50 ids); multiple values return the deduplicated union. An unknown id returns an honest empty list, not an error; a non-integer value is a 400 bad_request. Before 2026-08-03 this parameter was accepted and silently ignored — treat any integration written against that behaviour as unfiltered. |
country | query | string | no | Filter to matches where EITHER participant's player.country equals this lowercase 3-letter code — the same vocabulary the Player object returns (IOC-style codes, e.g. ned, sui, gre; NOT ISO-3166). Players with no recorded country never match, so a country filter excludes unknown-nationality matches rather than guessing. A value that is not 3 letters is a 400 bad_country. |
from | query | string | no | Earliest play date, YYYY-MM-DD or an ISO-8601 UTC datetime. A bare date covers that whole day. An unparseable value is a 400, never a silently unfiltered 200. |
to | query | string | no | Latest play date, same formats as from (a bare date includes everything played that day). from after to is a 400. |
limit | query | integer | no | Default 50. |
offset | query | integer | no | Default 0. |
Responses
| Status | Meaning |
|---|---|
200 | Matches with latest score |
400 | Bad query parameter |
401 | Missing, unknown, or disabled credentials |
403 | Your tier doesn't unlock this endpoint |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
data | array of object | |
meta | object |
Example
curl https://api.livetennisapi.com/api/public/v1/matches \
-H "Authorization: Bearer twjp_..."
GET /matches/{matchId}
Full match detail (FREE; +market PRO, +analysis ULTRA)
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
matchId | path | integer | yes | The match id. Every match route shares ONE id space, so the same value works everywhere matchId appears.
Get it from any match list, where it is the id field of each match object:
GET /matches?status=live (in progress), GET /matches?status=upcoming or GET /fixtures (scheduled), GET /matches?status=completed or GET /history/matches (finished).
Ids are stable for the life of a match, so one captured before it starts still resolves after it finishes.
|
Responses
| Status | Meaning |
|---|---|
200 | Match with score; market embed at PRO+, analysis embed at ULTRA |
401 | Missing, unknown, or disabled credentials |
403 | Your tier doesn't unlock this endpoint |
404 | No such resource, or no data yet |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
id | integer | |
tournament | string | |
tour | string or null (atp, wta, challenger, itf, juniors, null) | The tour, in the SAME vocabulary the tour query filter accepts — both are derived from one registry, so a match selected by ?tour=X always carries that value in tour. Null when the feed never stated a tour or the event type has no public tour name (exhibitions, team and mixed events) — never guessed. Safe to group and filter on; never parse the tournament name for this. |
tournament_id | string or null | Stable tournament identity — one id per tournament × event type, stable across seasons. Joins GET /tournaments/{tournamentId}. Null on matches ingested before the catalogue covered their tournament. (Edge case — a match mislabelled as qualifying by the feed has its id re-pointed to the main-draw tournament when detected, so the id can change once, early, in that direction only.) |
surface | string or null (hard, clay, grass, null) | |
indoor | boolean | |
format | string or null (BO3, BO5, null) | |
round | string or null | |
round_code | string or null (F, SF, QF, R16, R32, R64, R128, RR, BR, Q, Q1, Q2, Q3, Q4, ER, null) | The round in the archive's controlled vocabulary, normalized from the free-text label above (Q = qualifying round the feed does not number). This is the field to branch on; it matches /history/archive/matches?round= exactly. Null when the label is unrecognised — never guessed. |
status | string (upcoming, live, completed, cancelled) | |
event_status | string or null (Retired, Cancelled, Walk Over, Postponed, Interrupted, null) | How the match ended (or paused) when it did not run its course: retirement, cancellation, walkover, postponement, or an in-play suspension (Interrupted — rain/darkness/medical; the match is paused, not over). NULL means the match completed normally OR the outcome was never resolved — the feed does not distinguish those. Two honest caveats: the value is cleared if a suspended match resumes (no record of the pause survives), and for Retired/Walk Over the withdrawing player is reported in withdrew, where derivable. |
event_status_updated_at | string or null | When event_status last CHANGED, UTC (ISO-8601, Z) — added 2026-08-19. The instant WE recorded the walkover / retirement / cancellation / postponement / suspension (or its clearing), not when the tournament desk or the feed did: this is the field to measure our admin-status latency with. Bumps only on a change of value (a re-read of the same status never moves it; a clear back to null does). Null while event_status has never changed since the field was introduced (2026-08-19) — never backfilled, never guessed. |
is_doubles | boolean | Doubles match — kept for compatibility, and LOSSY. Evidence order: a doubles-team participant proves true regardless of the event type; otherwise the feed's event type decides. The loss: false also covers "unknown" — a match with no stated event type and no team participant reads false here, which is not a claim of singles. Prefer draw, whose null says so honestly. |
draw | string or null (singles, doubles, null) | The honest THREE-VALUED draw (added 2026-08-18) — same vocabulary as the ?draw= filter, decided by the same shared definition, so filter and field cannot disagree. Evidence order as is_doubles: a doubles-team participant proves doubles over any event type; otherwise the feed's event type decides. Null means neither says anything — the feed stated no event type, or the match is part of a team tie (Davis Cup / BJK Cup / United Cup class), where one event type covers both singles and doubles rubbers and we will not guess which this is. Null is NOT singles. |
scheduled_time | string or null | |
players | object | |
score | object or null | |
winner | integer or null | Completed matches only — derived from final sets. Served for the full archive age: a match older than the live-table window reads its final state from the same store the tape serves, so old completed matches carry a winner too. |
withdrew | integer or null | Completed matches only — which player retired or conceded the walkover (1|2). Present only when event_status is Retired/Walk Over and the winner is derivable; the withdrawer is the loser by the rules of the sport. Absent means "not a withdrawal, or no evidence" — never a guess. |
analysis | object | ULTRA only (absent below) |
market | object or null | PRO+ only (absent below) |
Example
curl https://api.livetennisapi.com/api/public/v1/matches/18953 \
-H "Authorization: Bearer twjp_..."
GET /matches/{matchId}/score
Current score only — lowest-latency REST read (FREE)
This is a POINT-IN-TIME SNAPSHOT: the single current state, overwritten on every score commit. It carries no history and no accumulated statistics. For the SEQUENCE of states — who served each game, hold/break, every score state in forward order — use /history/matches/{matchId}?sequence=clean, which works on a LIVE match, not only a completed one. For in-play statistics use /matches/{matchId}/statistics (ULTRA); they are deliberately not on this object, because they can be further behind the match than the score and must carry their own as_of.
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
matchId | path | integer | yes | The match id. Every match route shares ONE id space, so the same value works everywhere matchId appears.
Get it from any match list, where it is the id field of each match object:
GET /matches?status=live (in progress), GET /matches?status=upcoming or GET /fixtures (scheduled), GET /matches?status=completed or GET /history/matches (finished).
Ids are stable for the life of a match, so one captured before it starts still resolves after it finishes.
|
Responses
| Status | Meaning |
|---|---|
200 | Current score (ULTRA adds win_probability_p1 + danger) |
401 | Missing, unknown, or disabled credentials |
404 | No such resource, or no data yet |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
sets | array of integer | |
games | array of array of integer | [games_p1, games_p2]; each a per-set list |
points | array of string or null | In-game points as tennis strings ("0", "15", "40", "AD"). Entries can be NULL — observed live on completed matches, which also carry empty games arrays. Do not decode into non-nullable strings. |
server | integer or null (1, 2, null) | |
is_tiebreak | boolean | |
win_probability_p1 | number or null | |
danger | number or null | |
timestamp | string or null |
Example
curl https://api.livetennisapi.com/api/public/v1/matches/18953/score \
-H "Authorization: Bearer twjp_..."
GET /matches/{matchId}/events
Match events, newest first (PRO)
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
matchId | path | integer | yes | The match id. Every match route shares ONE id space, so the same value works everywhere matchId appears.
Get it from any match list, where it is the id field of each match object:
GET /matches?status=live (in progress), GET /matches?status=upcoming or GET /fixtures (scheduled), GET /matches?status=completed or GET /history/matches (finished).
Ids are stable for the life of a match, so one captured before it starts still resolves after it finishes.
|
limit | query | integer | no | Default 50. |
offset | query | integer | no | Default 0. |
Responses
| Status | Meaning |
|---|---|
200 | Events |
401 | Missing, unknown, or disabled credentials |
403 | Your tier doesn't unlock this endpoint |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
data | array of object | |
meta | object |
Example
curl https://api.livetennisapi.com/api/public/v1/matches/18953/events \
-H "Authorization: Bearer twjp_..."
GET /matches/{matchId}/analysis
Model analysis for a match (ULTRA)
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
matchId | path | integer | yes | The match id. Every match route shares ONE id space, so the same value works everywhere matchId appears.
Get it from any match list, where it is the id field of each match object:
GET /matches?status=live (in progress), GET /matches?status=upcoming or GET /fixtures (scheduled), GET /matches?status=completed or GET /history/matches (finished).
Ids are stable for the life of a match, so one captured before it starts still resolves after it finishes.
|
Responses
| Status | Meaning |
|---|---|
200 | Thesis + profile (either may be null) |
401 | Missing, unknown, or disabled credentials |
403 | Your tier doesn't unlock this endpoint |
404 | No such resource, or no data yet |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
thesis | object or null | |
profile | object or null |
Example
curl https://api.livetennisapi.com/api/public/v1/matches/18953/analysis \
-H "Authorization: Bearer twjp_..."
GET /matches/{matchId}/statistics
In-play statistics — aces, double faults, serve split, hold/break %, break points, service & return points (ULTRA)
In-play statistics for one match, in TWO families that are deliberately not merged.
DERIVED (the top level of players.pN) are rebuilt from the point-by-point record: service and return games played and won, hold and break percentage, break points faced, saved and converted, service and return points.
MEASURED (players.pN.measured) are counted upstream, so they include what no point record can yield — ACES AND DOUBLE FAULTS, the first- and second-serve split, winners and unforced errors. Both families name some of the same quantities, computed two entirely different ways; that is a cross-check, not a duplication to collapse.
Measured coverage is not uniform and every measured field is optional — an absent field is OMITTED, never zero-filled, so read the keys you are given. Aces and double faults are present across every tour. The serve split and break points saved are present on the main tours and absent on ITF singles. Winners and unforced errors historically appeared on a minority of main-tour matches and have not been delivered upstream since 2026-07-12 (measured 2026-08-17).
freshness.derived and freshness.measured each carry their own coverage (live | final | stale | none | diverged; final = the closing figures of a completed match — a finished match cannot be "stale", so its age_seconds is null), as_of, age_seconds and describes — the match state the numbers describe. On diverged the measured VALUES are withheld and freshness.measured_divergence says why; the top-level coverage only summarises the response. none on both returns 200 with null players, not 404 — the match exists and holding nothing for it is the honest answer.
THE TWO AGES USE DIFFERENT CLOCKS AND MUST NOT BE COMPARED. The derived age is measured against the newest SCORE row, because between points there is no new score either and wall-clock age would report staleness that does not exist. The measured age is wall clock, because those are fetched on a fixed cadence.
Tiebreak games are excluded from the DERIVED family and counted separately; the live record collapses a whole tiebreak onto one entry, so most of its points are lost.
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
matchId | path | integer | yes | The match id. Every match route shares ONE id space, so the same value works everywhere matchId appears.
Get it from any match list, where it is the id field of each match object:
GET /matches?status=live (in progress), GET /matches?status=upcoming or GET /fixtures (scheduled), GET /matches?status=completed or GET /history/matches (finished).
Ids are stable for the life of a match, so one captured before it starts still resolves after it finishes.
|
Responses
| Status | Meaning |
|---|---|
200 | Statistics with their own coverage and as_of |
401 | Missing, unknown, or disabled credentials |
403 | Your tier doesn't unlock this endpoint |
404 | No such resource, or no data yet |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
match_id | integer | |
coverage | string (live, final, stale, none, diverged) | |
as_of | string or null | When the underlying record was last updated (UTC) |
age_seconds | integer or null | Behind the newest SCORE row, not the wall clock |
games_counted | integer | |
tiebreak_games_excluded | integer | Tiebreaks are excluded — the live record collapses a whole tiebreak onto one entry |
inconsistent_games_excluded | integer | Games whose recorded outcome is neither a legal hold nor a legal break |
sets_covered | array of integer | |
freshness | object | Per-family coverage and age. Branch on this rather than on the top-level coverage, which only summarises the response. The two ages use DIFFERENT clocks and must not be compared: derived.age_seconds is relative to the newest score row (between points there is no new score either, so wall-clock age would report staleness that does not exist), while measured.age_seconds is wall clock, because those are fetched on a fixed cadence. |
detail | string | Present only when coverage is none |
players | object or null |
Example
curl https://api.livetennisapi.com/api/public/v1/matches/18953/statistics \
-H "Authorization: Bearer twjp_..."
GET /matches/{matchId}/points
Live per-point events in seq order — the REST catch-up for the WebSocket point stream (ULTRA)
The live per-point event stream of one match, in seq order. The WebSocket point frames are best-effort with NO replay, so this endpoint is how you join mid-match and how you recover a dropped connection: subscribe the WS first, then GET with after_seq set to the last seq you hold, then dedup everything by seq — it is per-match, monotonic and never skips a value, so it is the whole reconciliation key.
READ THE COVERAGE HONESTLY BEFORE YOU BUILD ON IT. A match's stream is per-point ONLY where a point-level feed covers it: pbp_coverage: "point" means this match has a true per-point stream; "game" means only the snapshot score path covers it — points is empty and that is an answer, not an error. Per-point coverage is never promised slate-wide; ITF and qualifying coverage in particular is partial. quality: "revised" means the upstream feed rewrote an already-served prefix at least once during this match; served rows are never edited (append-only).
Each row is the state AFTER a played point: score/sets/games (tiebreaks carry the running count in score with games frozen at the pre-breaker score), its position (set/game/number), server (of the next point), the derived winner (null when not attributable to a single point — never guessed), and ts — CAPTURE time, when our pipeline committed the state, because no feed asserts a per-point clock and we fabricate none.
Up to 500 rows per page; after_seq=last_seq fetches the next page while has_more is true. 404 unknown match; 400 points_disabled while the surface is switched off server-side.
COMPLETED MATCHES: live capture is inherently partial — the stream serves what arrived while the match ran, and the match-closing point never streams live. Where a measured-complete recorded point sequence of the finished match exists, this endpoint serves THAT instead — the complete sequence projected into the same point-frame shape, love-love opener through the match-closing point, seq contiguous 1..N. The response field basis says which base served the page: live (the persisted live stream rows — every live match, and any completed match without a measured-complete recorded sequence) or reconstruction (the projected complete sequence; quality is clean, every transition measured legal). Completeness beats the partial live capture wholesale — the two sequences are never interleaved (they share no key, so any merge would fabricate an order). On projected frames ts is null on every row: the recorded sequence carries no per-point clock and we fabricate none. after_seq pagination and seq dedup work identically on either basis, but the two bases are different sequences: after a match completes and flips to reconstruction, re-read from after_seq=0 rather than resuming a live cursor into it.
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
matchId | path | integer | yes | The match id. Every match route shares ONE id space, so the same value works everywhere matchId appears.
Get it from any match list, where it is the id field of each match object:
GET /matches?status=live (in progress), GET /matches?status=upcoming or GET /fixtures (scheduled), GET /matches?status=completed or GET /history/matches (finished).
Ids are stable for the life of a match, so one captured before it starts still resolves after it finishes.
|
after_seq | query | integer | no | Return only points with seq greater than this — the resume cursor. Pass the last_seq of the previous page (or the last seq your WS stream delivered) to continue; 0 or absent reads from the start of the match. A non-integer or negative value is a 400 bad_after_seq. Default 0. |
Responses
| Status | Meaning |
|---|---|
200 | The point events page, seq order |
400 | Bad query parameter |
401 | Missing, unknown, or disabled credentials |
403 | Your tier doesn't unlock this endpoint |
404 | No such resource, or no data yet |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
match_id | integer | |
pbp_coverage | string (point, game) | point = this match has a true per-point stream; game = only the snapshot score path covers it (points is empty — an answer, not an error). |
quality | string (clean, revised) | revised = the upstream feed rewrote an already-served prefix at least once during this match; served rows are never edited. |
covers_from_start | boolean or null | Whether the persisted stream OPENS at the match's 0-0 opener — seq 1 exists and is the love-love state — i.e. whether replaying from after_seq=0 yields the whole match or joins it mid-play. Null when the match has no rows at all (nothing to judge — null means not measured, never "no"). |
points | array of object | |
last_seq | integer | The resume cursor — pass as after_seq to continue. |
has_more | boolean | |
basis | string (live, reconstruction) | Which base served this page. live = the persisted live stream rows (every live match, and any completed match without a measured-complete recorded sequence); reconstruction = the complete recorded point sequence of a finished match, projected into point frames at read time — includes the match-closing point, seq contiguous 1..N, ts null on every frame. Completeness beats the partial live capture wholesale; the two bases are never interleaved. |
Example
curl https://api.livetennisapi.com/api/public/v1/matches/18953/points \
-H "Authorization: Bearer twjp_..."
GET /players
Search players by name (FREE)
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
search | query | string | no | |
limit | query | integer | no | Default 50. |
offset | query | integer | no | Default 0. |
Responses
| Status | Meaning |
|---|---|
200 | Players (ranked first; no stats object on the list) |
401 | Missing, unknown, or disabled credentials |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
data | array of object | |
meta | object |
Example
curl https://api.livetennisapi.com/api/public/v1/players \
-H "Authorization: Bearer twjp_..."
GET /players/{playerId}
One player's bio + ranking + cached stats (FREE)
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
playerId | path | integer | yes |
Responses
| Status | Meaning |
|---|---|
200 | Player with stats ({ratings, season}) |
401 | Missing, unknown, or disabled credentials |
404 | No such resource, or no data yet |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
id | integer | |
name | string | |
tour | string or null | The record's OWN tour, which is NOT the tour filter vocabulary. It is granular (juniors_boys, juniors_girls, challenger_men) where the filter is grouped (juniors, challenger), and a doubles team reports it UPPERCASE (ATP) where an individual reports lowercase (atp). Treat it as an opaque string; do not parse it into the filter enum. |
country | string or null | |
ranking | integer or null | |
ranking_points | integer or null | |
ranking_movement | string or null (up, down, same, null) | |
hand | string or null (R, L, null) | |
backhand | integer or null (1, 2, null) | |
birthday | string or null | |
is_doubles_team | boolean | |
data_completeness | object | How much biographical detail is known for this player, so a consumer can distinguish "not in the feed" from "not yet fetched" without probing. Present on every player in a match payload. Lower tours carry far less of it than main tour. |
stats | object | Single-player endpoint only |
Example
curl https://api.livetennisapi.com/api/public/v1/players/1104 \
-H "Authorization: Bearer twjp_..."
GET /tournaments
Tournament catalogue — the id space Match.tournament_id joins (FREE)
Stable tournament identity, one row per tournament × event type, stable across seasons. city/country come from a curated table and category only where our catalogues agree unambiguously on an exact-name join — each is null otherwise, never derived from the tournament name.
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
search | query | string | no | Case-insensitive substring match on the tournament name. |
tour | query | string (atp, wta, challenger, itf, juniors) | no | Restrict results to one tour. Each value covers its singles and doubles draws, so atp includes ATP doubles and juniors covers the boys' and girls' Grand Slam draws. Omit for all tours. An unrecognised value is a 400 rather than a silent pass-through, so a caller never receives a tour it did not ask for. Applied before pagination, so meta.count reflects the filtered set. |
draw | query | string (singles, doubles) | no | Draw filter (added 2026-08-18) — the axis the tour filter deliberately collapses; the two compose (?tour=itf&draw=doubles is the ITF doubles slice). Same vocabulary as the draw field on Match, decided by the same shared definition, so filter and field cannot disagree. A row whose draw is null — a team tie, or no stated event type and no doubles-team participant — matches NEITHER value: null is an answer, not a wildcard. Two honesty notes: on /tournaments the answer comes from the event type alone (a tournament row has no participants to supply the doubles-team evidence matches have), and draw=doubles alone also returns mixed and exhibition doubles that no tour value reaches. An unknown value is a 400 bad_draw with the allowed values. |
limit | query | integer | no | Default 50. |
offset | query | integer | no | Default 0. |
Responses
| Status | Meaning |
|---|---|
200 | Tournaments, name order |
400 | Bad query parameter |
401 | Missing, unknown, or disabled credentials |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
data | array of object | |
meta | object |
Example
curl https://api.livetennisapi.com/api/public/v1/tournaments \
-H "Authorization: Bearer twjp_..."
GET /tournaments/{tournamentId}
One tournament by its stable id (FREE)
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
tournamentId | path | string | yes | The tournament_id carried on match objects. |
Responses
| Status | Meaning |
|---|---|
200 | The tournament |
401 | Missing, unknown, or disabled credentials |
404 | No such resource, or no data yet |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
id | string | The stable id Match.tournament_id joins. |
name | string or null | |
tour | string or null (atp, wta, challenger, itf, juniors, null) | |
surface | string or null (hard, clay, grass, null) | |
indoor | boolean | |
city | string or null | Host city, from a curated table — null where not curated. |
country | string or null | Host country, ISO-3166 alpha-2 — null where not curated. (NOTE this differs from player.country and the ?country= filter, which use IOC-style lowercase 3-letter codes.) |
category | string or null (grand_slam, masters_1000, tour_finals, atp_500, atp_250, wta_1000, wta_500, wta_250, wta_125, challenger, itf, juniors, null) | Tournament category where our catalogues agree unambiguously on an exact-name join — null otherwise, never derived from the name. |
Example
curl https://api.livetennisapi.com/api/public/v1/tournaments/{tournamentId} \
-H "Authorization: Bearer twjp_..."
GET /markets
Match-winner market(s) for a match (PRO)
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
match_id | query | integer | yes |
Responses
| Status | Meaning |
|---|---|
200 | Markets |
400 | Bad query parameter |
401 | Missing, unknown, or disabled credentials |
403 | Your tier doesn't unlock this endpoint |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
data | array of object | |
meta | object |
Example
curl https://api.livetennisapi.com/api/public/v1/markets \
-H "Authorization: Bearer twjp_..."
GET /markets/{matchId}/prices
Market + recent price ticks per side, newest first (PRO)
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
matchId | path | integer | yes | The match id. Every match route shares ONE id space, so the same value works everywhere matchId appears.
Get it from any match list, where it is the id field of each match object:
GET /matches?status=live (in progress), GET /matches?status=upcoming or GET /fixtures (scheduled), GET /matches?status=completed or GET /history/matches (finished).
Ids are stable for the life of a match, so one captured before it starts still resolves after it finishes.
|
limit | query | integer | no | Default 50. |
Responses
| Status | Meaning |
|---|---|
200 | Market with prices |
401 | Missing, unknown, or disabled credentials |
403 | Your tier doesn't unlock this endpoint |
404 | No such resource, or no data yet |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
id | integer | |
question | string or null | |
status | string or null (active, resolved, closed, null) | |
volume | number or null | |
liquidity | number or null | |
end_date | string or null | |
prices | array of object | Prices endpoint / match detail only; newest first |
Example
curl https://api.livetennisapi.com/api/public/v1/markets/18953/prices \
-H "Authorization: Bearer twjp_..."
GET /matches/{matchId}/prices
Bare price ticks of the mapped match-winner market, newest first (PRO)
Recent ticks only (no market wrapper). limit caps at 500; minutes bounds the lookback window. 404 when the match has no mapped market.
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
matchId | path | integer | yes | The match id. Every match route shares ONE id space, so the same value works everywhere matchId appears.
Get it from any match list, where it is the id field of each match object:
GET /matches?status=live (in progress), GET /matches?status=upcoming or GET /fixtures (scheduled), GET /matches?status=completed or GET /history/matches (finished).
Ids are stable for the life of a match, so one captured before it starts still resolves after it finishes.
|
limit | query | integer | no | Default 100. |
minutes | query | integer | no |
Responses
| Status | Meaning |
|---|---|
200 | Price ticks |
400 | Bad query parameter |
401 | Missing, unknown, or disabled credentials |
403 | Your tier doesn't unlock this endpoint |
404 | No such resource, or no data yet |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
data | array of object | |
meta | object |
Example
curl https://api.livetennisapi.com/api/public/v1/matches/18953/prices \
-H "Authorization: Bearer twjp_..."
GET /history/matches
Completed matches, newest first, with derived winner and tape coverage (BASIC)
Requires BASIC on the live API, or any Historical Data API plan (Starter and up — see https://livetennisapi.com/historical-tennis-data-api). All tours, January 2023 → now (deeper results live in the results archive, 1968–2022, at /history/archive/matches). Filter to a date range with from/to, and by tour, draw (singles/doubles), player (either participant) and country — same vocabulary as /matches. Each item carries a tape object saying what point-by-point data we hold for that match, so a whole page can be qualified in one call instead of one request per match. NOTE ?coverage= is applied AFTER the page is cut, so a filtered page is routinely shorter than limit (and may be empty) while later pages still hold matching matches — a short filtered page is not an end-of-data signal; ?points_complete= filters the same way.
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
limit | query | integer | no | Default 50. |
offset | query | integer | no | Default 0. |
from | query | string | no | Earliest play date, YYYY-MM-DD or an ISO-8601 UTC datetime. A bare date covers that whole day. An unparseable value is a 400, never a silently unfiltered 200. |
to | query | string | no | Latest play date, same formats as from (a bare date includes everything played that day). from after to is a 400. |
tour | query | string (atp, wta, challenger, itf, juniors) | no | Restrict results to one tour. Each value covers its singles and doubles draws, so atp includes ATP doubles and juniors covers the boys' and girls' Grand Slam draws. Omit for all tours. An unrecognised value is a 400 rather than a silent pass-through, so a caller never receives a tour it did not ask for. Applied before pagination, so meta.count reflects the filtered set. |
draw | query | string (singles, doubles) | no | Draw filter (added 2026-08-18) — the axis the tour filter deliberately collapses; the two compose (?tour=itf&draw=doubles is the ITF doubles slice). Same vocabulary as the draw field on Match, decided by the same shared definition, so filter and field cannot disagree. A row whose draw is null — a team tie, or no stated event type and no doubles-team participant — matches NEITHER value: null is an answer, not a wildcard. Two honesty notes: on /tournaments the answer comes from the event type alone (a tournament row has no participants to supply the doubles-team evidence matches have), and draw=doubles alone also returns mixed and exhibition doubles that no tour value reaches. An unknown value is a 400 bad_draw with the allowed values. |
player | query | array of integer | no | Filter to matches where this player id is EITHER participant. Repeatable (max 50 ids); multiple values return the deduplicated union. An unknown id returns an honest empty list, not an error; a non-integer value is a 400 bad_request. Before 2026-08-03 this parameter was accepted and silently ignored — treat any integration written against that behaviour as unfiltered. |
country | query | string | no | Filter to matches where EITHER participant's player.country equals this lowercase 3-letter code — the same vocabulary the Player object returns (IOC-style codes, e.g. ned, sui, gre; NOT ISO-3166). Players with no recorded country never match, so a country filter excludes unknown-nationality matches rather than guessing. A value that is not 3 letters is a 400 bad_country. |
coverage | query | string (from_start, partial, reconstructed, reconstructed_partial, none) | no | Keep only matches whose tape has this coverage. An unknown value is a 400 bad_coverage listing the accepted values in allowed. |
points_complete | query | string (true, false) | no | Keep only matches whose measured point-completeness ledger verdict is this value — best-basis (the served tape OR an on-disk reconstruction measured point-complete; fetch the latter with ?points=complete on the per-match tape). The ledger is a per-match cache reconverged nightly. A match not yet measured matches NEITHER value; anything but true/false is a 400 bad_points_complete. Applied AFTER the page is cut, exactly like ?coverage=. |
Responses
| Status | Meaning |
|---|---|
200 | Completed matches (winner = 1|2|null, from final sets), each with its tape coverage |
400 | Bad query parameter |
401 | Missing, unknown, or disabled credentials |
403 | Your tier doesn't unlock this endpoint |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
data | array of object | |
meta | object |
Example
curl https://api.livetennisapi.com/api/public/v1/history/matches \
-H "Authorization: Bearer twjp_..."
GET /history/coverage
Measured completeness rollup per tour × draw bucket (BASIC)
Requires BASIC on the live API, or any Historical Data API plan (Starter and up — see https://livetennisapi.com/historical-tennis-data-api). The numbers to read BEFORE choosing what to backtest, in one call instead of paging the archive. A PREBUILT snapshot rebuilt nightly right after the completeness ledger reconverges — never computed at read time — so as_of (= built_at) dates every number, and ledger_max_computed_at is the newest underlying per-match measurement. Buckets are atp/wta/challenger/itf/juniors × singles/doubles plus other (team ties, mixed, exhibitions, and matches with no stated event type — counted, never dropped, so the totals cannot lie), derived from the same registries as the tour and draw fields. method states the full measurement rule in one paragraph, so every number carries its own definition. As of 2026-08-18 the headline spread it exposes: 51.1% of ITF singles matches are point-complete on the best basis against 3.5% of ITF doubles — do not extrapolate a completeness rate across a tour group.
Responses
| Status | Meaning |
|---|---|
200 | The rollup artifact, dated by its own as_of |
401 | Missing, unknown, or disabled credentials |
403 | Your tier doesn't unlock this endpoint |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
503 | coverage_unavailable — the artifact has not been built yet (or is unreadable). Honest and temporary; retry after the nightly build. The rollup is never computed inline. |
Response fields
| Field | Type | Description |
|---|---|---|
as_of | string | Equal to built_at, verbatim — the artifact's own clock, and the date to quote with every number in this response. |
built_at | string | When the rollup was built (UTC). |
ledger_max_computed_at | string or null | The newest underlying per-match measurement in the completeness ledger. |
method | string | The full measurement rule for point_complete, in one paragraph — every number carries its own definition. |
buckets | object | One CoverageBucket per tour × draw bucket (atp_singles … juniors_doubles, plus other). A bucket with zero completed matches is OMITTED rather than emitted as zeros — read a missing key as "nothing to count", not an error. |
totals | object | The five verifiable numbers for one bucket. |
Example
curl https://api.livetennisapi.com/api/public/v1/history/coverage \
-H "Authorization: Bearer twjp_..."
GET /history/matches/{matchId}
Per-match tape — point-by-point score + per-point model probabilities (BASIC)
The tape is the point-by-point score sequence we hold for this match — every recorded score row including the model fields win_probability_p1 and danger at that point — plus match metadata and the model profiles produced during the match. The model fields here are part of the paid History product by design, distinct from the ULTRA-gated LIVE model fields. One match per request. Requires BASIC on the live API, or the Historical Data API Starter plan and up.
The tape is NOT guaranteed to cover the whole match — check meta.coverage and meta.point_source before backtesting. Rows expanded after the fact from a finished-match point-by-point record carry a null timestamp and null model fields; nothing is ever synthesised.
WORKS ON A LIVE MATCH, not only a completed one. The tape is assembled from whatever has been committed so far, so it is how you read the point-by-point history of a match in progress — including games played before you started watching, where we were already watching them. The LIST endpoint is completed-only; get live ids from /matches?status=live. /matches/{matchId}/score is one state; this is the sequence of states.
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
matchId | path | integer | yes | The match id. Every match route shares ONE id space, so the same value works everywhere matchId appears.
Get it from any match list, where it is the id field of each match object:
GET /matches?status=live (in progress), GET /matches?status=upcoming or GET /fixtures (scheduled), GET /matches?status=completed or GET /history/matches (finished).
Ids are stable for the life of a match, so one captured before it starts still resolves after it finishes.
|
sequence | query | string (raw, clean) | no | raw (default) is every row we committed — deliberately non-monotonic, since independent sources race and a higher-trust one may correct a lower-trust one backwards. clean returns one row per distinct score state, keeping the last assertion of each. An unknown value is a 400 bad_sequence. Default raw. |
points | query | string (default, complete) | no | default serves observed rows first — what our own pipeline committed, a SAMPLED record of the match. complete is the explicit opt-out of that precedence for consumers who want every point: where a whole-match reconstruction exists it is served WHOLE, in its own point order, with point_winner on every row and null timestamps/model fields per the reconstruction contract. Where none exists, the response is exactly the default read plus meta.points (whose available_complete tells the cases apart) — no error. Cannot combine with sequence=clean (400 bad_combination — the state-key collapse would delete the repeated deuce states a complete point sequence contains). An unknown value is a 400 bad_points; where not yet enabled, complete answers 400 points_read_disabled rather than silently serving the default. coverage and meta.points are orthogonal axes: coverage says how the rows were OBTAINED, points says how COMPLETE the sequence is — completeness is only ever claimed per match, as measured. Default default. |
Responses
| Status | Meaning |
|---|---|
200 | The full tape (match + tape + profiles + coverage meta) |
400 | Bad query parameter |
401 | Missing, unknown, or disabled credentials |
403 | Your tier doesn't unlock this endpoint |
404 | No such resource, or no data yet |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
match | object | Match metadata with the final score embedded. |
tape | array of object | Chronological score sequence — see HistoryTapeRow. |
tiebreaks | array or null | Per-set tiebreak final scores from OBSERVED states only, aligned to the sets of the final scoreline: {"p1", "p2"} for a 7-6 set whose observed maximum tiebreak state is a valid terminal shape (max >= 7, margin >= 2), null per set otherwise — a breaker whose closing point the feed skipped reads null rather than an under-report. Null when the match has no 7-6 set. Present on raw and clean alike. |
profiles | array of object | Model profiles produced during the match, oldest first. |
meta | object |
Example
curl https://api.livetennisapi.com/api/public/v1/history/matches/18953 \
-H "Authorization: Bearer twjp_..."
GET /history/archive/matches
Results archive (1968–2022) — deep historical results (BASIC)
Completed-match RESULTS from a licensed historical corpus — ATP and WTA main draws, qualifying/challengers and futures tiers, 1968 through 2022. Winner/loser-shaped records with final score, round, seeds, the players' ranks AT THE TIME, and per-match serve statistics where the era recorded them. Requires BASIC on the live API, or any Historical Data API plan (Starter and up).
A SEPARATE id space from /matches — archive people are identified by the corpus person id and by name, never by roster player ids — and the archive ends where our own point-by-point coverage begins (2023-01), so no match is ever served from two datasets. event_date is the TOURNAMENT START date, the only date records of this era carry.
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
tour | query | string (atp, wta) | no | The archive covers the ATP and WTA corpora only. |
name | query | string | no | Case-insensitive substring match on EITHER player's name (min 3 chars). |
from | query | string | no | Earliest tournament start date (YYYY-MM-DD). |
to | query | string | no | Latest tournament start date (YYYY-MM-DD). |
round | query | string (F, SF, QF, R16, R32, R64, R128, RR, BR, Q1, Q2, Q3, Q4, ER) | no | The archive's controlled round vocabulary. |
level | query | string | no | Source tier code: G=grand slam, M=masters, A=tour, F=finals, D=davis cup, C=challenger, O=olympics; the futures tiers carry their category codes (e.g. 15, 25) as published. |
limit | query | integer | no | Default 50. |
offset | query | integer | no | Default 0. |
Responses
| Status | Meaning |
|---|---|
200 | Archive results, newest tournament first |
400 | Bad query parameter |
401 | Missing, unknown, or disabled credentials |
403 | Your tier doesn't unlock this endpoint |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
data | array of object | |
meta | object |
Example
curl https://api.livetennisapi.com/api/public/v1/history/archive/matches \
-H "Authorization: Bearer twjp_..."
GET /history/archive/matches/{archiveId}
One archive result, with serve statistics where recorded (BASIC)
Same entitlement as the archive listing. stats is null for the (mostly pre-1991) rows the source never recorded statistics for — never synthesised.
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
archiveId | path | integer | yes |
Responses
| Status | Meaning |
|---|---|
200 | The archive record, stats included where the era recorded them |
401 | Missing, unknown, or disabled credentials |
403 | Your tier doesn't unlock this endpoint |
404 | No such resource, or no data yet |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
id | integer | |
source_id | string | |
tour | string (atp, wta) | |
level | string or null | Source tier code (G/M/A/F/D/C/O, or a futures category code as published). |
tournament | string or null | |
surface | string or null | |
draw_size | integer or null | |
event_date | string or null | Tournament START date — per-match dates do not exist in this era's records, and we do not invent them. |
round | string or null | |
best_of | integer or null | |
minutes | integer or null | |
winner | object | One participant of an archive result, as the corpus records them. |
loser | object | One participant of an archive result, as the corpus records them. |
score | string or null | The final score as published, e.g. "6-4 7-6(5)", "6-3 RET", "W/O". |
outcome | string or null (completed, retired, walkover, default, abandoned, null) | Parsed from the score's own vocabulary; null when unparseable — never guessed. |
stats | object or null | Detail endpoint only. {"winner":{...}, "loser":{...}} with aces, double_faults, serve_points, first_in, first_won, second_won, serve_games, bp_saved, bp_faced where the source recorded them; null otherwise (most rows before 1991) — never synthesised. |
Example
curl https://api.livetennisapi.com/api/public/v1/history/archive/matches/{archiveId} \
-H "Authorization: Bearer twjp_..."
GET /history/archive/players
Archive player bios — hand, DOB, country, height, career-high (BASIC)
People of the results archive (1968–2022), in their own id space — id is the corpus person id that archive match rows carry as winner.player_id / loser.player_id, scoped per tour; never a roster id. Career-high rank and the earliest week it was reached are computed offline from the corpus's own weekly ranking tables. Null fields are the era's silence, never guessed. Requires BASIC, or any Historical Data API plan.
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
name | query | string | no | Case-insensitive substring filter (min 3 chars). |
tour | query | string (atp, wta) | no | |
limit | query | integer | no | Default 50. |
offset | query | integer | no | Default 0. |
Responses
| Status | Meaning |
|---|---|
200 | Archive people, ordered by name |
400 | Bad query parameter |
401 | Missing, unknown, or disabled credentials |
403 | Your tier doesn't unlock this endpoint |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
data | array of object | |
meta | object |
Example
curl https://api.livetennisapi.com/api/public/v1/history/archive/players \
-H "Authorization: Bearer twjp_..."
GET /history/archive/career
Career aggregates over the results archive, 1968–2022 (BASIC)
One player's whole archive career in one response: W-L record (overall, by surface, by level, by year), titles, and the summed serve-stat block with derived ratios. Everything is a sum or a ratio of sums over rows you can fetch individually from /history/archive/matches — nothing is modelled. serve.matches_with_stats states the coverage honestly: the corpus records per-match serve statistics from 1991 only, so a 1970s career has a full W-L record and an empty serve block. Ambiguous name fragments are refused with candidates (same rule as /h2h); an unknown name is a 404. Requires BASIC, or any Historical Data API plan.
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
name | query | string | yes | Player name (fragment, min 3 chars — must resolve to one person). |
Responses
| Status | Meaning |
|---|---|
200 | The career aggregate body |
400 | Bad query parameter |
401 | Missing, unknown, or disabled credentials |
403 | Your tier doesn't unlock this endpoint |
404 | No such resource, or no data yet |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
player | object | |
span | object | |
record | object | |
by_year | array of object | |
serve | object | Summed serve statistics + derived ratios; null ratios where the denominator is zero. |
Example
curl https://api.livetennisapi.com/api/public/v1/history/archive/career \
-H "Authorization: Bearer twjp_..."
GET /h2h
Head-to-head across the results archive (1968–2022) and our own completed matches (2023→now) (BASIC)
The record between two players, assembled from BOTH halves of the product: the results archive, where the winner is a stored column, and our own completed matches, where the winner is derived from the final recorded state. Names are the keys — archive people have no roster ids. A fragment matching more than one player is refused with the candidate list (400 ambiguous_name), because two people summed into one record is a wrong answer, not a convenience. Totals count meetings with a KNOWN winner; undecided counts the rest. Walkovers and retirements are part of the record, and each meeting carries outcome so you can exclude them. Requires BASIC, or any Historical Data API plan. On ULTRA, a per-player stats block adds serve/return/break-point aggregates over the pairing: archive_serve (serve-side, from 1991) and current (2023+, adding return and break-point conversion, aces and winners), each with meetings_with_stats.
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
p1 | query | string | yes | First player name (fragment, min 3 chars). |
p2 | query | string | yes | Second player name (fragment, min 3 chars). |
Responses
| Status | Meaning |
|---|---|
200 | The head-to-head record; empty totals when no player matches the names |
400 | Bad query parameter |
401 | Missing, unknown, or disabled credentials |
403 | Your tier doesn't unlock this endpoint |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
players | object or null | The resolved names ({"p1":{"name"}, "p2":{"name"}}); null when no player matches the fragments. |
totals | object | |
by_surface | object | Per-surface win split of the decided meetings; keys are surface names plus 'unknown'. |
meetings | array of object | Newest first, capped at 200. era says which half served the row — 'archive' rows carry archive_match_id/level/score; 'current' rows carry match_id/round_code and read their score from the match endpoints. winner is 1|2 OF THIS H2H (p1/p2 as requested), null when underivable. |
stats | object or null | ULTRA only — per-player serve/return/break-point aggregates over the pairing, keyed p1/p2. Each side carries archive_serve (serve-side figures, meetings from 1991) and current (2023+, adding return and break-point conversion, aces and winners), each with its own meetings_with_stats sample size. Absent below ULTRA. |
Example
curl https://api.livetennisapi.com/api/public/v1/h2h \
-H "Authorization: Bearer twjp_..."
GET /history/packages
List the pre-built monthly bulk history packages (PRO)
Bulk downloads are a heavier product than single-match tape reads. Requires PRO on the live API, or the Historical Data API Pro plan and up, or a one-off package access pass. A key that can read the tape but is not package-entitled receives 403 upgrade_required.
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
kind | query | string (tape, rankings, rally, archive, elo) | no | Package family. tape (default) = monthly point-by-point match tapes; rankings = as-of ranking records (ULTRA); rally = the charted rally corpus (shot-by-shot) as YEARLY exports (ULTRA); archive = the results archive (1968–2022) as YEARLY exports, same entitlement as the tape packages; elo = the as-of Elo tape as YEARLY exports (ULTRA). The yearly kinds' period is YYYY, one file per year, because a fixed historical corpus is not an accruing monthly stream. The default means a tape-only client never sees a new kind of row appear. Default tape. |
year | query | string | no | Year archive listing — every published month of the year (History Business, a 1-year package, or ULTRA). |
Responses
| Status | Meaning |
|---|---|
200 | Ready packages, newest period first |
400 | Bad query parameter |
401 | Missing, unknown, or disabled credentials |
403 | Your tier doesn't unlock this endpoint |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
data | array of object | |
meta | object |
Example
curl https://api.livetennisapi.com/api/public/v1/history/packages \
-H "Authorization: Bearer twjp_..."
GET /history/packages/{period}
One monthly package — manifest, or the bulk file itself (PRO)
Without format returns the package manifest (file set, counts, sha256). With format=jsonl or format=csv streams that file as an attachment. Same entitlement as /history/packages. 404 when the month has not been built yet — list available months first.
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
period | path | string | yes | Calendar month, YYYY-MM — except for the yearly kinds (rally, archive, elo), where it is the bare year YYYY (400 bad_period otherwise). |
kind | query | string (tape, rankings, rally, archive, elo) | no | Package family; rankings, rally and elo require ULTRA or a History Pro/Business subscription (changed 2026-08-19). rally = the yearly charted rally corpus exports; archive = the yearly results archive (1968–2022) exports, same entitlement as the tape packages; elo = the yearly as-of Elo tape exports. Default tape. |
format | query | string (jsonl, csv) | no | Omit for the JSON manifest; set to download the file. |
Responses
| Status | Meaning |
|---|---|
200 | The manifest (no format), or the bulk file as an attachment (format=jsonl streams NDJSON, format=csv streams CSV). A gzipped file (see the manifest's compression) is served as application/gzip, never with Content-Encoding: gzip — the manifest's sha256 covers the exact bytes you receive. |
400 | Bad query parameter |
401 | Missing, unknown, or disabled credentials |
403 | Your tier doesn't unlock this endpoint |
404 | No such resource, or no data yet |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
period | string | Calendar month, YYYY-MM — or the bare year YYYY on the yearly rally/archive/elo kinds. |
status | string (ready) | Only built months are listed or served. |
match_count | integer or null | |
row_count | integer or null | |
files | array of object | One entry per downloadable format. |
built_at | string or null | |
kind | string (tape, rankings, rally, archive, elo) | Present only on non-tape packages, so the shape a tape client already parses is unchanged. On a rankings package match_count is the number of players covered and row_count the number of ranking records; on a rally package the counts are charted matches and points; on an archive package the counts are archive results; on an elo package row_count is the number of rating records. |
Example
curl https://api.livetennisapi.com/api/public/v1/history/packages/{period} \
-H "Authorization: Bearer twjp_..."
GET /fixtures
Upcoming scheduled fixtures, earliest first (FREE)
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
tour | query | string (atp, wta, challenger, itf, juniors) | no | Restrict results to one tour. Each value covers its singles and doubles draws, so atp includes ATP doubles and juniors covers the boys' and girls' Grand Slam draws. Omit for all tours. An unrecognised value is a 400 rather than a silent pass-through, so a caller never receives a tour it did not ask for. Applied before pagination, so meta.count reflects the filtered set. |
draw | query | string (singles, doubles) | no | Draw filter (added 2026-08-18) — the axis the tour filter deliberately collapses; the two compose (?tour=itf&draw=doubles is the ITF doubles slice). Same vocabulary as the draw field on Match, decided by the same shared definition, so filter and field cannot disagree. A row whose draw is null — a team tie, or no stated event type and no doubles-team participant — matches NEITHER value: null is an answer, not a wildcard. Two honesty notes: on /tournaments the answer comes from the event type alone (a tournament row has no participants to supply the doubles-team evidence matches have), and draw=doubles alone also returns mixed and exhibition doubles that no tour value reaches. An unknown value is a 400 bad_draw with the allowed values. |
limit | query | integer | no | Default 50. |
offset | query | integer | no | Default 0. |
Responses
| Status | Meaning |
|---|---|
200 | Fixtures with start time and player ids where resolved — the nulls are real states, not gaps (names are always present) |
401 | Missing, unknown, or disabled credentials |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
data | array of object | |
meta | object |
Example
curl https://api.livetennisapi.com/api/public/v1/fixtures \
-H "Authorization: Bearer twjp_..."
GET /usage
Your own usage vs quota (FREE — any tier)
Durable daily usage for the calling key: tier, limits, today's calls (current to the second) and a 30-day history. The per-minute window is on the X-RateLimit-* headers of every response, not here. Calls to this endpoint are quota-exempt — checking your usage never consumes it.
Responses
| Status | Meaning |
|---|---|
200 | Usage summary |
401 | Missing, unknown, or disabled credentials |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
principal | string | Opaque ref to your own key |
tier | string (free, basic, pro, ultra) | |
base_tier | string | Subscription tier; equals tier unless a temporary grant is active |
tier_expires_at | string or null | When a temporary tier grant reverts, else null |
channel | string | |
limits | object | |
today | object | |
history | array of object | Last 30 days, oldest first |
as_of | string |
Example
curl https://api.livetennisapi.com/api/public/v1/usage \
-H "Authorization: Bearer twjp_..."
GET /rankings
Rankings and Elo — rank-ordered listing (PRO) or per-player as-of records (ULTRA); the as-of Elo tape is ULTRA in both modes
Returns, per ranking system, the newest record effective ON OR BEFORE as_of — never one dated after it. Every other ranking field in this API is the player's CURRENT value joined at read time, so replaying an old match elsewhere shows today's ranks; this endpoint is the point-in-time answer. Systems are never collapsed into a single "rank": ATP/WTA and the ITF circuits carry rank+points, UTR carries a rating with null rank and points because it has neither. meta.coverage.oldest_available gives the earliest date each system can answer for — ITF and UTR observations reach back to 2026-06-01 (append-only per-player history accumulates from 2026-07-29) and nothing earlier can be reconstructed.
TWO MODES — with player ids (ULTRA) — the per-player point-in-time records described above. WITHOUT player (PRO) — the FULL published table in rank order for exactly one system, the newest week at or before as_of; rows carry player_name as published and a null player_id for players outside our roster, so the table has no silent holes. utr has no listing (a rating, not a ranking).
SYSTEM=UTR — observed ratings, honestly bounded. UTR records are observed from UTR's public search: a rating UTR withholds appears as ABSENT, never as 0, and rating is the only populated value — rank and points are always null. Per-player as-of ONLY — there is deliberately no UTR listing, because a table of only the players we happen to track would be a fake leaderboard. Per-player history accumulates from 2026-07-29; scattered earlier single-snapshot observations reach back to 2026-06-01. Coverage is a deliberate bias, not a roster mirror: the 24-hour sweep targets players with no official rank and no Elo rating (so it skews ITF), and among players active in the last 60 days it holds 931 of 5,606 ITF players (16.6%), 197 of 1,903 Challenger (10.4%), 43 of 573 WTA (7.5%) and 15 of 525 ATP (2.9%) — measured 2026-08-17.
SYSTEM=ELO — THE AS-OF ELO TAPE (ULTRA in BOTH modes). Our own computed Elo for 65,622 players on four independent ladders (overall, hard, clay, grass), back to 1877 (ATP) and 1968 (WTA), covering the main tours plus challengers plus the futures tier. It answers what a player was rated BEFORE a given match, which is the only shape a backtest can consume. It is a HISTORICAL TAPE rather than a live leaderboard — the corpus behind it is fixed and no longer receives new results, so meta.coverage.newest_available states the tape's head date on every response (2026-06-15 at publication), and you should read it before treating the table as current. A week's results become effective 14 days after that week begins — strictly after the longest event in tennis — so the failure direction is staleness, never look-ahead. rating is the Elo. rank is LISTING MODE ONLY and is null in per-player mode, because an Elo has no global rank at a past instant until you say which field and which activity window you mean. points is always null. matches is the count on THAT ladder, published so that a rating still near its 1500 cold start is visible rather than inferred. A ladder a player has never played is omitted, never substituted. Ratings are on our own scale, are not comparable with Elo published elsewhere, and do not decay — a surface played only a few weeks a year (grass in particular) moves slowly, so a rising player can sit below an established one for several seasons while beating them. A CURRENT per-player Elo remains free on GET /players/{id}; this is the point-in-time series, the leaderboard and the bulk export. That free rating is sourced differently and sits on a DIFFERENT scale — the two differ by roughly 150 Elo of per-player standard deviation — so never present a rating from one scale against a rating from the other. The Elo listing REQUIRES tour — the ATP and WTA walks are disjoint, so a combined leaderboard would not be comparable — and takes exactly one surface (default overall). elo is never implicit — omitting system returns the official systems only.
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
player | query | array of integer | no | Player id — repeatable, max 50 (ULTRA per-player mode). OMIT it for the rank-ordered listing mode (PRO), which then requires exactly one system. |
archive_player | query | array of integer | no | Historical-corpus person id — repeatable, max 50, system=elo only, and REQUIRES tour because that id is only unique within one tour. It is the same id GET /history/archive/players returns as its id. Use it to reach the ~62,000 rated people who have no row in our player roster; player reaches the rest. |
tour | query | string (atp, wta) | no | REQUIRED for an elo listing and for archive_player. The ATP and WTA Elo walks are disjoint universes whose players never meet, so a combined leaderboard would not be comparable. |
surface | query | array of string (overall, hard, clay, grass) | no | system=elo only. Listing mode takes exactly one (default overall); per-player mode is repeatable and defaults to all four ladders. A ladder the player has never played is omitted, never substituted. |
min_matches | query | integer | no | system=elo listing only. Minimum matches on that ladder. Every ladder starts at 1500, so without a floor the top of the table is players who won a handful of matches from the starting rating. Echoed back in meta.coverage.qualified. Default 20. |
activity_weeks | query | integer | no | system=elo listing only. The ladder must have moved within this many weeks of as_of. Elo does not decay, so without an activity window every leaderboard is topped permanently by players who have stopped playing. Echoed back in meta.coverage.qualified. Default 52. |
as_of | query | string | no | YYYY-MM-DD. Omit for the latest known record. |
system | query | array of string (atp, wta, itf_jt, itf_mt, itf_wt, utr, elo) | no | Restrict to one or more systems. Omit for all of the official systems — elo is NEVER included implicitly and must be named, so an existing request's response is unchanged. Naming a system your plan does not cover refuses the whole call with 403 rather than silently returning the part you are entitled to. |
limit | query | integer | no | Default 50. |
offset | query | integer | no | Default 0. |
Responses
| Status | Meaning |
|---|---|
200 | Ranking records in force at as_of |
400 | Bad query parameter |
401 | Missing, unknown, or disabled credentials |
403 | Your tier doesn't unlock this endpoint |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
data | array of object | |
meta | object |
Example
curl https://api.livetennisapi.com/api/public/v1/rankings \
-H "Authorization: Bearer twjp_..."
GET /rally/matches
Charted matches with shot-by-shot data (ULTRA)
Charted matches, newest first. RALLY CONSTRUCTION IS THE LAYER BELOW THE TAPE: the tape says what the score became after each point, this says how the point was played. It has its OWN id space. The charted corpus and our own match table are different populations — the corpus reaches back decades and concentrates on the biggest events, while our matches begin when our own collection did. Keying this on our match ids would hide most of it. Ask this endpoint for the authoritative coverage list rather than assuming a match is charted: charting is human work, so coverage is deep, not universal.
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
player | query | string | no | Substring match on either player name. |
from | query | string | no | YYYY-MM-DD. |
to | query | string | no | YYYY-MM-DD. |
surface | query | string | no | |
gender | query | string (M, W) | no | |
limit | query | integer | no | Default 50. |
offset | query | integer | no | Default 0. |
Responses
| Status | Meaning |
|---|---|
200 | Charted matches, with per-match parse-quality counts |
400 | Bad query parameter |
401 | Missing, unknown, or disabled credentials |
403 | Your tier doesn't unlock this endpoint |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
data | array of object | |
meta | object |
Example
curl https://api.livetennisapi.com/api/public/v1/rally/matches \
-H "Authorization: Bearer twjp_..."
GET /rally/matches/{rallyMatchId}
Rally construction for one charted match (ULTRA)
One charted match with its points, in play order. Paged with limit/offset; meta.total is the match's full point count.
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
rallyMatchId | path | integer | yes | |
limit | query | integer | no | Default 50. |
offset | query | integer | no | Default 0. |
Responses
| Status | Meaning |
|---|---|
200 | The charted match with its rally points |
401 | Missing, unknown, or disabled credentials |
403 | Your tier doesn't unlock this endpoint |
404 | No such resource, or no data yet |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
rally_match_id | integer | The id this product is keyed on. |
source_id | string | |
match_id | integer or null | OUR match id, when the charted match is also one we hold. Null otherwise — most charted matches predate our own collection. |
date | string or null | |
tournament | string or null | |
round | string or null | |
surface | string or null | |
gender | string or null (M, W, null) | |
best_of | integer or null | |
players | array of object | |
points | integer | Charted points in this match. |
points_parsed | integer | How many of them our parser read cleanly — the per-match quality number. |
meta | object | |
rally | array of object |
Example
curl https://api.livetennisapi.com/api/public/v1/rally/matches/{rallyMatchId} \
-H "Authorization: Bearer twjp_..."
GET /history/matches/{matchId}/rally
Rally construction by OUR match id (ULTRA)
Rally construction addressed by OUR match id, resolved through the optional link. Answers 404 {"error":"not_charted"} when we hold the match but nobody charted it — deliberately distinct from "no such match", because most of our matches are not charted and a consumer walking the archive must tell them apart.
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
matchId | path | integer | yes | The match id. Every match route shares ONE id space, so the same value works everywhere matchId appears.
Get it from any match list, where it is the id field of each match object:
GET /matches?status=live (in progress), GET /matches?status=upcoming or GET /fixtures (scheduled), GET /matches?status=completed or GET /history/matches (finished).
Ids are stable for the life of a match, so one captured before it starts still resolves after it finishes.
|
limit | query | integer | no | Default 50. |
offset | query | integer | no | Default 0. |
Responses
| Status | Meaning |
|---|---|
200 | The charted match with its rally points |
401 | Missing, unknown, or disabled credentials |
403 | Your tier doesn't unlock this endpoint |
404 | No such resource, or no data yet |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
rally_match_id | integer | The id this product is keyed on. |
source_id | string | |
match_id | integer or null | OUR match id, when the charted match is also one we hold. Null otherwise — most charted matches predate our own collection. |
date | string or null | |
tournament | string or null | |
round | string or null | |
surface | string or null | |
gender | string or null (M, W, null) | |
best_of | integer or null | |
players | array of object | |
points | integer | Charted points in this match. |
points_parsed | integer | How many of them our parser read cleanly — the per-match quality number. |
meta | object | |
rally | array of object |
Example
curl https://api.livetennisapi.com/api/public/v1/history/matches/18953/rally \
-H "Authorization: Bearer twjp_..."
GET /charting/players
Career shot-level charting aggregate for one player (ULTRA)
The deepest serve/return profile we hold, from the Match Charting Project: serve placement (deuce/ad × wide/body/T), return depth and outcomes, net and serve-and-volley conversion, clutch break/game/set-point serving and returning, winners and unforced errors by wing, and rally-length and shot-direction tendencies — summed over the player's charted matches. name (min 3 chars) is the key; a fragment matching more than one charted person is refused with the candidate list, and gender=men|women disambiguates. Every field is a raw SUM over the player's Total rows and matches_charted states the sample. COVERAGE IS CURATED — 11,646 charted matches across both tours back to the 1960s, concentrated on the majors, NOT full-slate coverage.
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
name | query | string | yes | Player name (fragment, min 3 chars). |
gender | query | string (men, women) | no | Disambiguates a fragment that matches one charted person per tour side. |
Responses
| Status | Meaning |
|---|---|
200 | The player's summed charting families with the sample size |
400 | Bad query parameter |
401 | Missing, unknown, or disabled credentials |
403 | Your tier doesn't unlock this endpoint |
404 | No such resource, or no data yet |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
player | object | |
matches_charted | integer | |
coverage | string | |
families | object | Per-family summed numeric columns. |
Example
curl https://api.livetennisapi.com/api/public/v1/charting/players \
-H "Authorization: Bearer twjp_..."
GET /charting/matches/{chartingMatchId}
One charted match, every stat family for both players (ULTRA)
Every Match Charting Project stat family for one charted match, both players, with the per-set split (row/set 1, 2, Total) exactly as charted. chartingMatchId is this product's own id space (1960–2026, mostly matches with no counterpart in the live table).
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
chartingMatchId | path | integer | yes |
Responses
| Status | Meaning |
|---|---|
200 | The charted match's stat families, both players, per set |
401 | Missing, unknown, or disabled credentials |
403 | Your tier doesn't unlock this endpoint |
404 | No such resource, or no data yet |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
charting_match_id | integer | |
mcp_id | string | |
gender | string | |
players | object | |
families | object |
Example
curl https://api.livetennisapi.com/api/public/v1/charting/matches/{chartingMatchId} \
-H "Authorization: Bearer twjp_..."
POST /webhooks
Register an outbound webhook (ULTRA, direct keys only)
We POST the same frames the WebSocket sends to your HTTPS endpoint on every live score commit. Up to 3 webhooks per key (409 webhook_limit past that). The response is the ONLY time the signing secret is shown — store it.
Each delivery carries X-LTAPI-Signature (sha256=<hex> — HMAC-SHA256 of the RAW request body with your webhook secret; verify with a constant-time compare), X-LTAPI-Timestamp (Unix seconds at send time — reject stale replays at your edge) and X-LTAPI-Event (the frame type: score, break_point, break_point_result or point).
Delivery is best-effort, at-most-once, no replay: one attempt per frame with a ~3s timeout and redirects disabled. Every score frame is the complete current score, so a missed delivery self-corrects on the next commit. A point frame is an EVENT, not a state — a missed one does NOT self-correct; recover it with GET /matches/{matchId}/points?after_seq= and dedup by seq. After 25 consecutive failures the webhook is disabled automatically (enabled:false, last_error set — visible in GET /webhooks); delete and re-register to resume.
Responses
| Status | Meaning |
|---|---|
201 | Created — includes secret (shown exactly once) |
400 | Bad query parameter |
401 | Missing, unknown, or disabled credentials |
403 | Your tier doesn't unlock this endpoint |
409 | Webhook limit reached (3 per key) — delete an existing webhook first |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Example
curl https://api.livetennisapi.com/api/public/v1/webhooks \
-H "Authorization: Bearer twjp_..."
GET /webhooks
List your webhooks (ULTRA, direct keys only; never includes the secret)
Responses
| Status | Meaning |
|---|---|
200 | Your webhooks |
401 | Missing, unknown, or disabled credentials |
403 | Your tier doesn't unlock this endpoint |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
data | array of object | |
meta | object |
Example
curl https://api.livetennisapi.com/api/public/v1/webhooks \
-H "Authorization: Bearer twjp_..."
DELETE /webhooks/{webhookId}
Remove one of your webhooks (ULTRA, direct keys only)
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
webhookId | path | integer | yes |
Responses
| Status | Meaning |
|---|---|
200 | Deleted |
401 | Missing, unknown, or disabled credentials |
403 | Your tier doesn't unlock this endpoint |
404 | No such resource, or no data yet |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
deleted | integer |
Example
curl https://api.livetennisapi.com/api/public/v1/webhooks/{webhookId} \
-H "Authorization: Bearer twjp_..."
GET /ws-token
Mint a connection token for the high-fan-out push feed (ULTRA)
Returns a short-lived signed token plus the push WebSocket URL and the channel vocabulary: match:{match_id} per-match streams and slate:all for every live score frame. Frames are the same allowlist score objects the polling endpoints return. This is a separate surface from the native /ws feed described above — same ULTRA gate, built for high fan-out (no shared connection ceiling), and the recommended home for continuous/production streaming.
The endpoint speaks the **Centrifugo client protocol** (v2, JSON). Easiest path: the official Python (livetennisapi ≥ 1.4.0) and JS (≥ 1.5.0) SDKs ship a built-in PushStream client — no extra dependency. Raw protocol, if you prefer your own client: (1) open a WebSocket to ws_url; (2) send {"connect": {"token": "<token>"}, "id": 1} — the token goes INSIDE this JSON frame, never as a raw first message; (3) subscribe per channel with {"subscribe": {"channel": "slate:all"}, "id": 2}; (4) publications arrive as {"push": {"channel": ..., "pub": {"data": <frame>}}}; (5) the server's heartbeat is an empty JSON object {} — reply with {} promptly or you will be disconnected. Messages may batch several newline-delimited JSON objects. Tokens are short-lived and the connection closes around token expiry: mint a fresh token on EVERY reconnect and re-subscribe.
The channels object lists only channels that will actually deliver for your key right now (a channel name in this response is a promise). Where enabled server-side, additional channel families appear: point:match:{match_id} / point:slate (per-point events), listed — as point_match / point_slate in the vocabulary — only for keys whose plan carries the point surface, and signal:match:{match_id} / signal:slate (derived break_point, break_point_result and divergence events). A family absent from the response will not deliver for your key right now. Deliberately separate channels: a slate:all subscriber asked for score states and never starts receiving events unasked. Point and signal frames are events, not states — a missed point does NOT self-correct on the next frame; recover it via GET /matches/{matchId}/points?after_seq= and dedup by seq.
Responses
| Status | Meaning |
|---|---|
200 | Connection token, push URL and channel vocabulary |
401 | Missing, unknown, or disabled credentials |
403 | Your tier doesn't unlock this endpoint |
429 | Rate limit exceeded (Retry-After header present). Three body shapes, told apart by error and scope: the per-MINUTE limit (rate_limited, with upgrade_url, tier and price naming the next tier up); the per-DAY quota (rate_limited with scope: "day", limit_per_day, and resets_at — the absolute ISO instant the daily window resets); and abuse_throttled with retry_at_epoch — a 24-hour block applied to clients that keep hammering far past their cap, which a well-behaved retry loop never sees. Fix the loop rather than retrying through it. |
Response fields
| Field | Type | Description |
|---|---|---|
token | string | |
expires_in | integer | |
ws_url | string | The push WebSocket URL to connect to with the token. |
channels | object | Channel vocabulary — match is the per-match pattern (match:{id}), slate is the every-live-score channel (slate:all). A channel listed here will actually deliver for your key; one missing will not. |
Example
curl https://api.livetennisapi.com/api/public/v1/ws-token \
-H "Authorization: Bearer twjp_..."
WebSocket feed (ULTRA)
A native WebSocket live feed is available at https://api.livetennisapi.com/api/public/v1/ws. Subscribe with
{"topics":["live-scores"]} or
{"topics":["match:<id>"]}. The server acknowledges with a
subscribed frame, then pushes score frames on every change plus a
ping heartbeat roughly every 15 seconds.
Opt into extra signals by adding a signals array to the subscribe frame —
{"topics":["live-scores"],"signals":["break_point"]} — to also receive a
break_point frame the instant a break point arises and a
break_point_result frame when it resolves. Their shapes are the
BreakPoint and BreakPointResult schemas below. Without
signals the feed pushes score frames only, exactly as before.
signals may also name points — the live per-point event
stream: one point frame per persisted point of your subscribed matches
(shape PointFrame below), ordered per match by seq. The signal
is config-gated and ships off by default; the subscribed ack echoes the
signals actually active, so points missing from the ack means no point
frames will flow. Frames arrive only for matches with
pbp_coverage: "point" — a game-coverage match sends none,
honestly. Point frames are events, not states, and there is no WS replay: a missed
one does not self-correct on the next frame — on reconnect, or to join mid-match,
catch up via GET /matches/{matchId}/points?after_seq= and dedup by
seq. The push feed carries the same frames on their own channel family
(point:match:{matchId} and point:slate), deliberately separate
from the score channels.
FAQ — plans and data depth
How much data can I access on each plan?
FREE sees the current state of the game only — live and upcoming matches, scores, players and fixtures — at 100 requests/day. BASIC adds every completed match and its full point-by-point tape (with the model win-probability where computed), one match per request, at 1,000/day. PRO adds whole months of history in a single bulk file (JSONL or CSV), plus match events and market prices, at 10,000/day. ULTRA adds model analysis, the live model fields and the WebSocket push feed, at 500,000/day. Coverage is identical on every plan: all tours, ATP through ITF — the plans differ in which data products and volumes they unlock, never in which tournaments you see.
How far back does history go?
1968. History runs in two continuous, non-overlapping halves. The
point-by-point tape (2023→now): /history/matches pages every completed
match from January 2023 on, all tours, newest first — filter a window with
from/to — with the per-match point-by-point tape at
/history/matches/{matchId}. The results archive (1968–2022):
/history/archive/matches serves winner/loser-shaped RESULTS — ATP and WTA,
main draws, qualifying and the ITF/futures tiers, 1968 through 2022 — with
final score, seeds, ranks at the time, and per-match serve statistics where
the era recorded them (from 1991). The archive ends exactly where the tape
begins, so no match is ever served from two datasets. Bulk: tape packages are
built per calendar month, archive packages per year
(?kind=archive); GET /history/packages lists exactly which periods
exist and is always the authoritative answer. Year-scale exports are part of
the Historical Data API Business plan.
What's in the point-by-point tape?
One row per recorded point state, chronological: sets, per-set games,
in-game points, the server, the tiebreak flag, and the model's
win_probability_p1 and danger on the rows where the model ran (null
elsewhere — check meta.model_rows); rows we watched live carry a real
timestamp, reconstructed rows a null one.
GET /history/matches/{matchId} returns it per match (shape
HistoryTape: match metadata + tape + the model profiles produced during the
match). Add ?points=complete to opt into a whole-match reconstruction
where one exists — the response's meta.points block reports the measured
point-completeness of exactly the sequence you were served, per match, never as
a blanket claim. Filter the listing by that measured verdict with
?points_complete=true on /history/matches. The monthly bulk
packages' base files carry each match's default read — the same tape the API
serves — and a month may also list the complete-basis addendum files
(tennis_history_points_complete_<period>.jsonl.gz/.csv.gz): the same
tape ?points=complete serves, for exactly the matches whose complete point
sequence exists only as the on-disk reconstruction. Existing base files are
never rewritten by the addendum; their sha256 values do not move.
Measured completeness also differs sharply by draw on some circuits — as of
2026-08-18, 51.1% of ITF singles matches are point-complete on the best basis
against 3.5% of ITF doubles — which is exactly the split the ?draw= filter
and GET /history/coverage (the per-bucket rollup, rebuilt nightly, dated by
its own as_of) exist to expose. Do not extrapolate a completeness rate
across a ?tour= group.
Schemas
Error
| Field | Type | Description |
|---|---|---|
error | string | Stable machine-readable code, e.g. bad_date, bad_coverage, bad_sequence, bad_points, bad_points_complete, bad_combination, points_read_disabled, bad_after_seq, points_disabled, bad_period, bad_year, bad_format, bad_tour, bad_country, ambiguous_name, not_charted, not_found, upgrade_required, rate_limited, abuse_throttled. |
detail | string | Human-readable explanation, when one adds anything. |
allowed | array of string | On a rejected enumerated parameter, the values that would have been accepted (e.g. the coverage vocabulary for bad_coverage). |
ListMeta
| Field | Type | Description |
|---|---|---|
limit | integer | |
offset | integer | |
count | integer | |
total | integer or null | Size of the whole filtered set. Null when it cannot be counted cheaply. |
has_more | boolean | More results exist beyond this page. Read this rather than comparing count to limit. |
Score
ULTRA adds win_probability_p1 + danger.
| Field | Type | Description |
|---|---|---|
sets | array of integer | |
games | array of array of integer | [games_p1, games_p2]; each a per-set list |
points | array of string or null | In-game points as tennis strings ("0", "15", "40", "AD"). Entries can be NULL — observed live on completed matches, which also carry empty games arrays. Do not decode into non-nullable strings. |
server | integer or null (1, 2, null) | |
is_tiebreak | boolean | |
win_probability_p1 | number or null | |
danger | number or null | |
timestamp | string or null |
Player
| Field | Type | Description |
|---|---|---|
id | integer | |
name | string | |
tour | string or null | The record's OWN tour, which is NOT the tour filter vocabulary. It is granular (juniors_boys, juniors_girls, challenger_men) where the filter is grouped (juniors, challenger), and a doubles team reports it UPPERCASE (ATP) where an individual reports lowercase (atp). Treat it as an opaque string; do not parse it into the filter enum. |
country | string or null | |
ranking | integer or null | |
ranking_points | integer or null | |
ranking_movement | string or null (up, down, same, null) | |
hand | string or null (R, L, null) | |
backhand | integer or null (1, 2, null) | |
birthday | string or null | |
is_doubles_team | boolean | |
data_completeness | object | How much biographical detail is known for this player, so a consumer can distinguish "not in the feed" from "not yet fetched" without probing. Present on every player in a match payload. Lower tours carry far less of it than main tour. |
stats | object | Single-player endpoint only |
Match
| Field | Type | Description |
|---|---|---|
id | integer | |
tournament | string | |
tour | string or null (atp, wta, challenger, itf, juniors, null) | The tour, in the SAME vocabulary the tour query filter accepts — both are derived from one registry, so a match selected by ?tour=X always carries that value in tour. Null when the feed never stated a tour or the event type has no public tour name (exhibitions, team and mixed events) — never guessed. Safe to group and filter on; never parse the tournament name for this. |
tournament_id | string or null | Stable tournament identity — one id per tournament × event type, stable across seasons. Joins GET /tournaments/{tournamentId}. Null on matches ingested before the catalogue covered their tournament. (Edge case — a match mislabelled as qualifying by the feed has its id re-pointed to the main-draw tournament when detected, so the id can change once, early, in that direction only.) |
surface | string or null (hard, clay, grass, null) | |
indoor | boolean | |
format | string or null (BO3, BO5, null) | |
round | string or null | |
round_code | string or null (F, SF, QF, R16, R32, R64, R128, RR, BR, Q, Q1, Q2, Q3, Q4, ER, null) | The round in the archive's controlled vocabulary, normalized from the free-text label above (Q = qualifying round the feed does not number). This is the field to branch on; it matches /history/archive/matches?round= exactly. Null when the label is unrecognised — never guessed. |
status | string (upcoming, live, completed, cancelled) | |
event_status | string or null (Retired, Cancelled, Walk Over, Postponed, Interrupted, null) | How the match ended (or paused) when it did not run its course: retirement, cancellation, walkover, postponement, or an in-play suspension (Interrupted — rain/darkness/medical; the match is paused, not over). NULL means the match completed normally OR the outcome was never resolved — the feed does not distinguish those. Two honest caveats: the value is cleared if a suspended match resumes (no record of the pause survives), and for Retired/Walk Over the withdrawing player is reported in withdrew, where derivable. |
event_status_updated_at | string or null | When event_status last CHANGED, UTC (ISO-8601, Z) — added 2026-08-19. The instant WE recorded the walkover / retirement / cancellation / postponement / suspension (or its clearing), not when the tournament desk or the feed did: this is the field to measure our admin-status latency with. Bumps only on a change of value (a re-read of the same status never moves it; a clear back to null does). Null while event_status has never changed since the field was introduced (2026-08-19) — never backfilled, never guessed. |
is_doubles | boolean | Doubles match — kept for compatibility, and LOSSY. Evidence order: a doubles-team participant proves true regardless of the event type; otherwise the feed's event type decides. The loss: false also covers "unknown" — a match with no stated event type and no team participant reads false here, which is not a claim of singles. Prefer draw, whose null says so honestly. |
draw | string or null (singles, doubles, null) | The honest THREE-VALUED draw (added 2026-08-18) — same vocabulary as the ?draw= filter, decided by the same shared definition, so filter and field cannot disagree. Evidence order as is_doubles: a doubles-team participant proves doubles over any event type; otherwise the feed's event type decides. Null means neither says anything — the feed stated no event type, or the match is part of a team tie (Davis Cup / BJK Cup / United Cup class), where one event type covers both singles and doubles rubbers and we will not guess which this is. Null is NOT singles. |
scheduled_time | string or null | |
players | object | |
score | object or null | |
winner | integer or null | Completed matches only — derived from final sets. Served for the full archive age: a match older than the live-table window reads its final state from the same store the tape serves, so old completed matches carry a winner too. |
withdrew | integer or null | Completed matches only — which player retired or conceded the walkover (1|2). Present only when event_status is Retired/Walk Over and the winner is derivable; the withdrawer is the loser by the rules of the sport. Absent means "not a withdrawal, or no evidence" — never a guess. |
MatchDetail
| Field | Type | Description |
|---|---|---|
id | integer | |
tournament | string | |
tour | string or null (atp, wta, challenger, itf, juniors, null) | The tour, in the SAME vocabulary the tour query filter accepts — both are derived from one registry, so a match selected by ?tour=X always carries that value in tour. Null when the feed never stated a tour or the event type has no public tour name (exhibitions, team and mixed events) — never guessed. Safe to group and filter on; never parse the tournament name for this. |
tournament_id | string or null | Stable tournament identity — one id per tournament × event type, stable across seasons. Joins GET /tournaments/{tournamentId}. Null on matches ingested before the catalogue covered their tournament. (Edge case — a match mislabelled as qualifying by the feed has its id re-pointed to the main-draw tournament when detected, so the id can change once, early, in that direction only.) |
surface | string or null (hard, clay, grass, null) | |
indoor | boolean | |
format | string or null (BO3, BO5, null) | |
round | string or null | |
round_code | string or null (F, SF, QF, R16, R32, R64, R128, RR, BR, Q, Q1, Q2, Q3, Q4, ER, null) | The round in the archive's controlled vocabulary, normalized from the free-text label above (Q = qualifying round the feed does not number). This is the field to branch on; it matches /history/archive/matches?round= exactly. Null when the label is unrecognised — never guessed. |
status | string (upcoming, live, completed, cancelled) | |
event_status | string or null (Retired, Cancelled, Walk Over, Postponed, Interrupted, null) | How the match ended (or paused) when it did not run its course: retirement, cancellation, walkover, postponement, or an in-play suspension (Interrupted — rain/darkness/medical; the match is paused, not over). NULL means the match completed normally OR the outcome was never resolved — the feed does not distinguish those. Two honest caveats: the value is cleared if a suspended match resumes (no record of the pause survives), and for Retired/Walk Over the withdrawing player is reported in withdrew, where derivable. |
event_status_updated_at | string or null | When event_status last CHANGED, UTC (ISO-8601, Z) — added 2026-08-19. The instant WE recorded the walkover / retirement / cancellation / postponement / suspension (or its clearing), not when the tournament desk or the feed did: this is the field to measure our admin-status latency with. Bumps only on a change of value (a re-read of the same status never moves it; a clear back to null does). Null while event_status has never changed since the field was introduced (2026-08-19) — never backfilled, never guessed. |
is_doubles | boolean | Doubles match — kept for compatibility, and LOSSY. Evidence order: a doubles-team participant proves true regardless of the event type; otherwise the feed's event type decides. The loss: false also covers "unknown" — a match with no stated event type and no team participant reads false here, which is not a claim of singles. Prefer draw, whose null says so honestly. |
draw | string or null (singles, doubles, null) | The honest THREE-VALUED draw (added 2026-08-18) — same vocabulary as the ?draw= filter, decided by the same shared definition, so filter and field cannot disagree. Evidence order as is_doubles: a doubles-team participant proves doubles over any event type; otherwise the feed's event type decides. Null means neither says anything — the feed stated no event type, or the match is part of a team tie (Davis Cup / BJK Cup / United Cup class), where one event type covers both singles and doubles rubbers and we will not guess which this is. Null is NOT singles. |
scheduled_time | string or null | |
players | object | |
score | object or null | |
winner | integer or null | Completed matches only — derived from final sets. Served for the full archive age: a match older than the live-table window reads its final state from the same store the tape serves, so old completed matches carry a winner too. |
withdrew | integer or null | Completed matches only — which player retired or conceded the walkover (1|2). Present only when event_status is Retired/Walk Over and the winner is derivable; the withdrawer is the loser by the rules of the sport. Absent means "not a withdrawal, or no evidence" — never a guess. |
analysis | object | ULTRA only (absent below) |
market | object or null | PRO+ only (absent below) |
Analysis
| Field | Type | Description |
|---|---|---|
thesis | object or null | |
profile | object or null |
Market
| Field | Type | Description |
|---|---|---|
id | integer | |
question | string or null | |
status | string or null (active, resolved, closed, null) | |
volume | number or null | |
liquidity | number or null | |
end_date | string or null | |
prices | array of object | Prices endpoint / match detail only; newest first |
Price
Prediction-market top-of-book quote (probability-like, [0,1]); reflects market trading, not an official line, and can lag live scores. Tagged so a synthesised quote is never mistaken for a live book.
| Field | Type | Description |
|---|---|---|
side | integer or null | 1 = p1's outcome, 2 = p2's |
bid | number or null | |
ask | number or null | |
mid | number or null | |
spread | number or null | |
price_source | string or null | Feed category, e.g. prediction_market |
synthetic | boolean or null | true = bid/ask estimated from mid (not a live order book); false = real top-of-book; null = unknown (older ticks) |
timestamp | string or null |
Event
| Field | Type | Description |
|---|---|---|
type | string (break, set_won, game_won, momentum_run) | |
player | integer or null (1, 2, null) | |
timestamp | string or null |
Fixture
| Field | Type | Description |
|---|---|---|
id | integer | |
event_date | string or null | |
start_time | string or null | Scheduled start (UTC). Null until the order of play assigns a time — a date-only fixture is a real state, and rows written before 2026-08-03 stay null. |
player1_id | integer or null | Our player id, when the participant is in our roster (exact-key resolution, never a name match). Null otherwise — names are always present regardless. |
player2_id | integer or null | As player1_id, for the second participant. |
tour | string or null | The record's OWN tour, which is NOT the tour filter vocabulary. It is granular (juniors_boys, juniors_girls, challenger_men) where the filter is grouped (juniors, challenger), and a doubles team reports it UPPERCASE (ATP) where an individual reports lowercase (atp). Treat it as an opaque string; do not parse it into the filter enum. |
tournament | string or null | |
round | string or null | |
round_code | string or null (F, SF, QF, R16, R32, R64, R128, RR, BR, Q, Q1, Q2, Q3, Q4, ER, null) | Normalized round — same vocabulary as Match.round_code. Null when the label is unrecognised, never guessed. |
surface | string or null | |
player1_name | string or null | |
player2_name | string or null | |
status | string or null |
ModelProfile
One model win-probability profile. On the history tape these are the profiles produced during the match, oldest first.
| Field | Type | Description |
|---|---|---|
win_probability_p1 | number or null | |
expected_closeness | number or null | |
volatility_rating | string or null (low, med, high, null) | |
stage | string or null (pregame, live, null) | Did this forecast already see the match? null = UNKNOWN, never pregame. |
model_version | string or null | The prompt-scaffold version this forecast was produced under. Null on profiles written before the stamp existed. |
key_factors | array or null | |
created_at | string or null |
HistoryTapeRow
One row of the score sequence. Rows we watched live carry a real timestamp. Rows expanded after the fact from a finished-match point-by-point record carry a null timestamp AND null model fields, because neither a wall clock nor a model output ever existed for them — nothing is synthesised. A null timestamp is the reliable row-level marker of a reconstructed row; the model fields alone are not, since they are stamped best-effort and an observed row may lack them. meta.point_source / meta.coverage say which kind of tape you are holding.
| Field | Type | Description |
|---|---|---|
sets | array of integer | |
games | array of array of integer | |
points | array of string | |
server | integer or null (1, 2, null) | |
is_tiebreak | boolean | |
win_probability_p1 | number or null | |
danger | number or null | |
timestamp | string or null | |
point_winner | integer or null (1, 2, null) | Who won the point this row records — PRESENT ONLY on ?sequence=clean and ?points=complete rows, and only where the transition from the previous row of the served sequence is a single attributable point; null on gaps, torn rows and the first row. Never on the plain raw sequence (raw is deliberately non-monotonic: consecutive raw rows are corrections, not points — a points=complete read is the exception, because there the served order IS point order). Derived at read time, never stored or guessed. |
HistoryTape
The full per-match history tape (BASIC, or Historical Data API Starter+). tape rows INCLUDE the model fields win_probability_p1 and danger per point — on this product they are part of the tape itself, not an ULTRA upsell.
| Field | Type | Description |
|---|---|---|
match | object | Match metadata with the final score embedded. |
tape | array of object | Chronological score sequence — see HistoryTapeRow. |
tiebreaks | array or null | Per-set tiebreak final scores from OBSERVED states only, aligned to the sets of the final scoreline: {"p1", "p2"} for a 7-6 set whose observed maximum tiebreak state is a valid terminal shape (max >= 7, margin >= 2), null per set otherwise — a breaker whose closing point the feed skipped reads null rather than an under-report. Null when the match has no 7-6 set. Present on raw and clean alike. |
profiles | array of object | Model profiles produced during the match, oldest first. |
meta | object |
PointsMeta
Measured point-completeness of the sequence ACTUALLY RETURNED, computed at read time — never a stored blanket claim, and only ever a per-match measurement. Always present on ?points=complete responses (with available_complete); on default reads it appears where enabled. Orthogonal to coverage: coverage says how the rows were OBTAINED, this says how COMPLETE the sequence is.
| Field | Type | Description |
|---|---|---|
complete | boolean | The contract bit: the sequence opens at 0-0, EVERY transition is a legal single-point step, it carries at least as many point transitions as the final scoreline implies the match contained, it reaches a finished legal final scoreline (or the match ended early — retirement/walkover), and it is not known-truncated. |
completeness | number or null | Legal single-point transitions over a LOWER-BOUND expected point count derived from the final scoreline. 1.0 for any complete tape, low for a sampled one. Descriptive only — the denominator is a floor, not the true point count — and null when the final scoreline is unreadable. |
rows | integer | Rows measured — always equals meta.rows. |
transitions_legal | integer | Transitions attributable to exactly one side winning one point. |
transitions_total | integer | All row-to-row transitions (rows − 1). |
server_rows | integer | Rows carrying a server. |
starts_at_love | boolean | The first row is the 0-0 opening state. |
ends_at_final | boolean | The last row is a complete, legal final scoreline. |
basis | string (raw, clean, recon) | Which serve was measured: raw | clean (the default read, as returned) or recon (the whole reconstruction, ?points=complete). |
available_complete | boolean or null | ?points=complete responses only. The nightly ledger's verdict on whether a point-complete reconstruction exists for this match: true/false when measured, null when not yet measured — never guessed. |
HistoryPackage
Manifest of one pre-built bulk package (PRO, Historical Data API Pro+, or a one-off package pass). Tape coverage is not a contiguous run of months and is still being extended backwards, so treat the packages listing as the authoritative set of periods that exist. For kind=tape the JSONL file holds ONE LINE PER MATCH (a whole HistoryTape object per line, coverage meta included), not one line per point; the CSV is flattened to one row per point and carries no coverage columns. A month may also list the complete-basis ADDENDUM files (tennis_history_points_complete_<period>.jsonl.gz / .csv.gz, gzipped and marked by compression, added 2026-08-18). The two bases, plainly: the BASE files carry every match's DEFAULT read — already the complete tape for most point-complete matches — and the ADDENDUM carries, for exactly the matches whose complete point sequence exists only as the on-disk reconstruction, the same tape ?points=complete serves (reconstruction contract: null timestamps and null model fields). Base files are never rewritten by the addendum; their sha256 values do not move. For kind=rally (the charted rally corpus, ULTRA) the JSONL holds one line per charted match with its full point list and the CSV one row per point, one file per YEAR. For kind=archive (the results archive, 1968–2022) the JSONL holds one line per archive result (the ArchiveMatch shape) and the CSV one row per result, one file per YEAR. For kind=elo (the as-of Elo tape; ULTRA or History Pro/Business) the JSONL holds one rating record per line — the endpoint's field set plus archive_player_id, the stable person key a bulk join needs — and the CSV one row per record, one file per YEAR; the files are written in primary-key order, so a rebuild of the same data is byte-identical and the published sha256 is a real checksum.
| Field | Type | Description |
|---|---|---|
period | string | Calendar month, YYYY-MM — or the bare year YYYY on the yearly rally/archive/elo kinds. |
status | string (ready) | Only built months are listed or served. |
match_count | integer or null | |
row_count | integer or null | |
files | array of object | One entry per downloadable format. |
built_at | string or null | |
kind | string (tape, rankings, rally, archive, elo) | Present only on non-tape packages, so the shape a tape client already parses is unchanged. On a rankings package match_count is the number of players covered and row_count the number of ranking records; on a rally package the counts are charted matches and points; on an archive package the counts are archive results; on an elo package row_count is the number of rating records. |
CoverageRollup
The measured completeness rollup — what the archive HOLDS, per tour × draw bucket, as of the artifact's own build clock.
| Field | Type | Description |
|---|---|---|
as_of | string | Equal to built_at, verbatim — the artifact's own clock, and the date to quote with every number in this response. |
built_at | string | When the rollup was built (UTC). |
ledger_max_computed_at | string or null | The newest underlying per-match measurement in the completeness ledger. |
method | string | The full measurement rule for point_complete, in one paragraph — every number carries its own definition. |
buckets | object | One CoverageBucket per tour × draw bucket (atp_singles … juniors_doubles, plus other). A bucket with zero completed matches is OMITTED rather than emitted as zeros — read a missing key as "nothing to count", not an error. |
totals | object | The five verifiable numbers for one bucket. |
CoverageBucket
The five verifiable numbers for one bucket.
| Field | Type | Description |
|---|---|---|
completed | integer | Completed matches in the bucket. |
any_tape | integer | Matches with at least one tape row on any basis. |
point_complete | integer | Measured point-complete on the BEST basis — what ?points=complete can serve. |
complete_on_default_read | integer | Point-complete on the default read alone. The difference against point_complete is the set of matches where ?points=complete is load-bearing. |
share | number or null | point_complete / completed. Null on an empty bucket. |
HistoryMatch
| Field | Type | Description |
|---|---|---|
id | integer | |
tournament | string | |
tour | string or null (atp, wta, challenger, itf, juniors, null) | The tour, in the SAME vocabulary the tour query filter accepts — both are derived from one registry, so a match selected by ?tour=X always carries that value in tour. Null when the feed never stated a tour or the event type has no public tour name (exhibitions, team and mixed events) — never guessed. Safe to group and filter on; never parse the tournament name for this. |
tournament_id | string or null | Stable tournament identity — one id per tournament × event type, stable across seasons. Joins GET /tournaments/{tournamentId}. Null on matches ingested before the catalogue covered their tournament. (Edge case — a match mislabelled as qualifying by the feed has its id re-pointed to the main-draw tournament when detected, so the id can change once, early, in that direction only.) |
surface | string or null (hard, clay, grass, null) | |
indoor | boolean | |
format | string or null (BO3, BO5, null) | |
round | string or null | |
round_code | string or null (F, SF, QF, R16, R32, R64, R128, RR, BR, Q, Q1, Q2, Q3, Q4, ER, null) | The round in the archive's controlled vocabulary, normalized from the free-text label above (Q = qualifying round the feed does not number). This is the field to branch on; it matches /history/archive/matches?round= exactly. Null when the label is unrecognised — never guessed. |
status | string (upcoming, live, completed, cancelled) | |
event_status | string or null (Retired, Cancelled, Walk Over, Postponed, Interrupted, null) | How the match ended (or paused) when it did not run its course: retirement, cancellation, walkover, postponement, or an in-play suspension (Interrupted — rain/darkness/medical; the match is paused, not over). NULL means the match completed normally OR the outcome was never resolved — the feed does not distinguish those. Two honest caveats: the value is cleared if a suspended match resumes (no record of the pause survives), and for Retired/Walk Over the withdrawing player is reported in withdrew, where derivable. |
event_status_updated_at | string or null | When event_status last CHANGED, UTC (ISO-8601, Z) — added 2026-08-19. The instant WE recorded the walkover / retirement / cancellation / postponement / suspension (or its clearing), not when the tournament desk or the feed did: this is the field to measure our admin-status latency with. Bumps only on a change of value (a re-read of the same status never moves it; a clear back to null does). Null while event_status has never changed since the field was introduced (2026-08-19) — never backfilled, never guessed. |
is_doubles | boolean | Doubles match — kept for compatibility, and LOSSY. Evidence order: a doubles-team participant proves true regardless of the event type; otherwise the feed's event type decides. The loss: false also covers "unknown" — a match with no stated event type and no team participant reads false here, which is not a claim of singles. Prefer draw, whose null says so honestly. |
draw | string or null (singles, doubles, null) | The honest THREE-VALUED draw (added 2026-08-18) — same vocabulary as the ?draw= filter, decided by the same shared definition, so filter and field cannot disagree. Evidence order as is_doubles: a doubles-team participant proves doubles over any event type; otherwise the feed's event type decides. Null means neither says anything — the feed stated no event type, or the match is part of a team tie (Davis Cup / BJK Cup / United Cup class), where one event type covers both singles and doubles rubbers and we will not guess which this is. Null is NOT singles. |
scheduled_time | string or null | |
players | object | |
score | object or null | |
winner | integer or null | Completed matches only — derived from final sets. Served for the full archive age: a match older than the live-table window reads its final state from the same store the tape serves, so old completed matches carry a winner too. |
withdrew | integer or null | Completed matches only — which player retired or conceded the walkover (1|2). Present only when event_status is Retired/Walk Over and the winner is derivable; the withdrawer is the loser by the rules of the sport. Absent means "not a withdrawal, or no evidence" — never a guess. |
tape | object | What point-by-point data we hold for this match. |
Usage
| Field | Type | Description |
|---|---|---|
principal | string | Opaque ref to your own key |
tier | string (free, basic, pro, ultra) | |
base_tier | string | Subscription tier; equals tier unless a temporary grant is active |
tier_expires_at | string or null | When a temporary tier grant reverts, else null |
channel | string | |
limits | object | |
today | object | |
history | array of object | Last 30 days, oldest first |
as_of | string |
MatchStatisticsSide
One player's in-play statistics, in TWO families that are deliberately not merged. The fields at this level are DERIVED from the point-by-point record. measured holds counts taken upstream, including the ones no point record can yield: aces, double faults, the serve split, winners and unforced errors. Both families name some of the same quantities, computed two entirely different ways — that is a cross-check, not a duplication to be collapsed.
| Field | Type | Description |
|---|---|---|
measured | object | Measured counting statistics for one player. These are COUNTED upstream, not derived from the point record — which is why they can include aces and double faults, and the derived fields above cannot. They are MATCH TOTALS only — one whole-match rollup per player; there are no per-set measured statistics.
EVERY FIELD IS OPTIONAL AND AN ABSENT FIELD IS OMITTED, never zero-filled — absent means NOT MEASURED, and a present 0 is a real measured zero. Do not assume a fixed shape; read the keys you are given. Measured over 24,552 stored payloads (2026-07-31), coverage falls into three tiers:
TIER 1 — present on 98.6-100% of payloads, on every tour including ITF: aces, double faults, points won, service and return points won, break points won, service games won, longest point and game runs, return points.
TIER 2 — present on essentially all ATP, WTA and Challenger matches and on NO ITF singles match: the first and second serve split, break points saved, tiebreaks won, games won, service games played.
TIER 3 — the winners / unforced-errors / forced-errors family, in total and by shot type. Historically delivered on ~43% of ATP singles, ~24% of WTA singles and ~47% of tour doubles, and on NONE of Challenger, ITF or juniors — those zeros are hard, not sampling noise. The upstream feed has NOT DELIVERED this group at all since 2026-07-12 (measured 2026-08-17: 0 of 4,513 August payloads carry it, live ATP Masters included), so expect it absent on current matches until the upstream feed resumes it.
A _of suffix is the denominator of its base field and a _pct suffix is the percentage, recomputed from the two counts rather than read from the upstream rounding. |
service_games_played | integer | |
service_games_won | integer | |
hold_pct | integer or null | null when no service game was played — never 0, so a present 0 is a real measured zero |
return_games_played | integer | |
return_games_won | integer | |
break_pct | integer or null | |
break_points_faced | integer | |
break_points_saved | integer | |
break_points_saved_pct | integer or null | |
break_points_played | integer | |
break_points_converted | integer | |
break_points_converted_pct | integer or null | |
service_points_played | integer | |
service_points_won | integer | |
service_points_won_pct | integer or null | |
return_points_played | integer | |
return_points_won | integer | |
return_points_won_pct | integer or null | |
points_played | integer | |
points_won | integer |
MatchStatisticsMeasured
Measured counting statistics for one player. These are COUNTED upstream, not derived from the point record — which is why they can include aces and double faults, and the derived fields above cannot. They are MATCH TOTALS only — one whole-match rollup per player; there are no per-set measured statistics.
EVERY FIELD IS OPTIONAL AND AN ABSENT FIELD IS OMITTED, never zero-filled — absent means NOT MEASURED, and a present 0 is a real measured zero. Do not assume a fixed shape; read the keys you are given. Measured over 24,552 stored payloads (2026-07-31), coverage falls into three tiers:
TIER 1 — present on 98.6-100% of payloads, on every tour including ITF: aces, double faults, points won, service and return points won, break points won, service games won, longest point and game runs, return points.
TIER 2 — present on essentially all ATP, WTA and Challenger matches and on NO ITF singles match: the first and second serve split, break points saved, tiebreaks won, games won, service games played.
TIER 3 — the winners / unforced-errors / forced-errors family, in total and by shot type. Historically delivered on ~43% of ATP singles, ~24% of WTA singles and ~47% of tour doubles, and on NONE of Challenger, ITF or juniors — those zeros are hard, not sampling noise. The upstream feed has NOT DELIVERED this group at all since 2026-07-12 (measured 2026-08-17: 0 of 4,513 August payloads carry it, live ATP Masters included), so expect it absent on current matches until the upstream feed resumes it.
A _of suffix is the denominator of its base field and a _pct suffix is the percentage, recomputed from the two counts rather than read from the upstream rounding.
| Field | Type | Description |
|---|---|---|
aces | integer or null | |
break_points_won | integer or null | |
double_faults | integer or null | |
first_return_points_won | integer or null | |
first_return_points_won_of | integer or null | |
first_return_points_won_pct | integer or null | |
max_games_in_row | integer or null | |
max_points_in_row | integer or null | |
points_won | integer or null | |
return_points_won | integer or null | |
second_return_points_won | integer or null | |
second_return_points_won_of | integer or null | |
second_return_points_won_pct | integer or null | |
service_games_won | integer or null | |
service_points_won | integer or null | |
break_points_saved | integer or null | |
break_points_saved_of | integer or null | |
break_points_saved_pct | integer or null | |
first_serve_points_won | integer or null | |
first_serve_points_won_of | integer or null | |
first_serve_points_won_pct | integer or null | |
first_serves_in | integer or null | |
first_serves_in_of | integer or null | |
first_serves_in_pct | integer or null | |
games_won | integer or null | |
second_serve_points_won | integer or null | |
second_serve_points_won_of | integer or null | |
second_serve_points_won_pct | integer or null | |
second_serves_in | integer or null | |
second_serves_in_of | integer or null | |
second_serves_in_pct | integer or null | |
service_games_played | integer or null | |
tiebreaks_won | integer or null | |
backhand_errors | integer or null | Forced errors off the backhand. |
backhand_unforced_errors | integer or null | Unforced errors off the backhand. |
backhand_winners | integer or null | Winners off the backhand. |
drop_shot_unforced_errors | integer or null | Unforced errors on the drop shot. |
drop_shot_winners | integer or null | Winners on the drop shot. |
errors_total | integer or null | The total of FORCED errors, not of all errors. Verified over 3,766 stored payload sides (June-July 2026): it equals the forehand + backhand + return + overhead error sum in 96.2% of sides, it is SMALLER than unforced_errors_total in 11.7% of sides (impossible for a superset), and per-match points accounting — points won = own winners + opponent forced errors + opponent unforced errors — closes with median residual 0 over 367 matches only under the forced reading. Total errors = errors_total + unforced_errors_total; there is no separate forced-errors field to wait for, because these fields ARE the forced counts. |
forehand_errors | integer or null | Forced errors off the forehand. |
forehand_unforced_errors | integer or null | Unforced errors off the forehand. |
forehand_winners | integer or null | Winners off the forehand. |
groundstroke_errors | integer or null | forehand_errors + backhand_errors — a rollup of the two, not an additive extra. |
groundstroke_unforced_errors | integer or null | Unforced errors off the ground strokes. |
groundstroke_winners | integer or null | Winners off the ground strokes. |
lob_unforced_errors | integer or null | Unforced errors on the lob. |
lob_winners | integer or null | Winners on the lob. |
overhead_errors | integer or null | Forced errors on the overhead — the upstream's overhead-stroke count. |
overhead_winners | integer or null | Winners on the overhead. |
return_errors | integer or null | Forced errors on the return. |
return_winners | integer or null | Winners on the return. |
unforced_errors_total | integer or null | The total of unforced errors. Total errors = errors_total + unforced_errors_total. |
volley_unforced_errors | integer or null | Unforced errors on the volley. |
volley_winners | integer or null | Winners on the volley. |
winners_total | integer or null | Total winners. |
MatchStatisticsFreshness
Per-family coverage and age. Branch on this rather than on the top-level coverage, which only summarises the response. The two ages use DIFFERENT clocks and must not be compared: derived.age_seconds is relative to the newest score row (between points there is no new score either, so wall-clock age would report staleness that does not exist), while measured.age_seconds is wall clock, because those are fetched on a fixed cadence.
| Field | Type | Description |
|---|---|---|
measured_divergence | object or null | Null when the families agree. Otherwise why the measured values were withheld, with both match states. |
derived | object | |
measured | object |
MatchStatisticsFamily
| Field | Type | Description |
|---|---|---|
coverage | string (live, final, stale, none, diverged) | final = the closing figures of a completed match. A finished match cannot be "stale", so on final the family's age_seconds is null; as_of still says when the last point/fetch was recorded. |
as_of | string or null | |
age_seconds | integer or null | |
describes | object or null | The match state these statistics describe, per upstream. age_seconds says when we fetched; this says WHAT we fetched. Null when unavailable. |
MatchStatistics
| Field | Type | Description |
|---|---|---|
match_id | integer | |
coverage | string (live, final, stale, none, diverged) | |
as_of | string or null | When the underlying record was last updated (UTC) |
age_seconds | integer or null | Behind the newest SCORE row, not the wall clock |
games_counted | integer | |
tiebreak_games_excluded | integer | Tiebreaks are excluded — the live record collapses a whole tiebreak onto one entry |
inconsistent_games_excluded | integer | Games whose recorded outcome is neither a legal hold nor a legal break |
sets_covered | array of integer | |
freshness | object | Per-family coverage and age. Branch on this rather than on the top-level coverage, which only summarises the response. The two ages use DIFFERENT clocks and must not be compared: derived.age_seconds is relative to the newest score row (between points there is no new score either, so wall-clock age would report staleness that does not exist), while measured.age_seconds is wall clock, because those are fetched on a fixed cadence. |
detail | string | Present only when coverage is none |
players | object or null |
RankingRecord
One ranking record in force at the requested instant. system is always explicit and the systems are never collapsed into a single "rank" — they are not comparable. ATP/WTA and the ITF circuits populate rank+points; UTR populates rating and leaves rank/points null, because UTR is a rating and has no rank.
| Field | Type | Description |
|---|---|---|
player_id | integer or null | Null only on listing rows for players outside our roster — the listing is kept independent of the roster precisely so a top-N has no silent holes. Always present on per-player records for the official systems and UTR. For elo it is also null on rows for the ~62,000 rated people with no roster row — normal, not an error; player_name is always populated, and archive_player fetches that person directly. |
player_name | string or null | The name as the ranking publisher printed it — present on listing rows (where player_id may be null), absent on per-player records. |
system | string (atp, wta, itf_jt, itf_mt, itf_wt, utr, elo) | |
tour | string or null | |
rank | integer or null | Null for UTR. Null for elo in per-player mode too — an Elo has no global rank at a past instant until you say which field and which activity window you mean, and the per-player read is given neither. In elo listing mode it is the position in the qualified field of THAT call. |
points | integer or null | Null for UTR and for elo — both are ratings, and neither has points. |
surface | string (overall, hard, clay, grass) | elo only, and absent on every other system. Which of the four independent ladders this rating is. A ladder the player has never played is omitted from the response rather than substituted with another. |
matches | integer or null | elo only, and absent on every other system. Cumulative matches on THAT ladder at that date — not the player's career total. Every ladder starts at 1500, so this is what tells you whether a rating is an assessment or a cold start, and it is the number min_matches filters on. |
previous_rank | integer or null | The rank at the immediately preceding snapshot week (ATP/WTA only; null when no prior week is held, and always null for ITF/UTR). |
rank_movement | integer or null | The circuit's own signed weekly movement (ITF systems only; null elsewhere). |
rating | number or null | UTR and elo only; null elsewhere. For elo this is the Elo itself, on our own scale, which is not comparable with Elo published anywhere else. |
effective_date | string or null | The publication week this record took effect. For records ingested live rather than from the official weekly publication this is bucketed to the observed week, so it can sit up to six days later than the moment the value actually took effect; where both exist for one week the official publication is served. |
observed_at | string or null |
RankingListMeta
| Field | Type | Description |
|---|---|---|
limit | integer | |
offset | integer | |
count | integer | |
total | integer or null | Size of the whole filtered set. Null when it cannot be counted cheaply. |
has_more | boolean | More results exist beyond this page. Read this rather than comparing count to limit. |
coverage | object | What resolved against what was asked. Read it before trusting an empty result — ITF and UTR observations reach back to 2026-06-01 (append-only per-player history accumulates from 2026-07-29); nothing earlier can be reconstructed, so a request before oldest_available correctly returns nothing for those systems. |
Webhook
| Field | Type | Description |
|---|---|---|
id | integer | |
url | string | |
events | array of string (score, break_point) | |
enabled | boolean | Set to false automatically after 25 consecutive delivery failures — delete and re-register to resume. |
created_at | string or null | |
last_delivery_at | string or null | |
consecutive_failures | integer | |
last_error | string or null | |
secret | string | Present ONLY on the 201 registration response — shown exactly once |
secret_note | string |
BreakPoint
WebSocket break_point frame (ULTRA). Pushed the instant a break point arises, but only when the subscription named break_point in its signals. Fields sit inline (no nested score object); prob_swing mirrors the REST score's danger. server is the player serving, returner the one holding the break point(s).
| Field | Type | Description |
|---|---|---|
type | string | |
match_id | integer | |
server | integer or null (1, 2, null) | |
returner | integer or null (1, 2, null) | |
break_points | integer or null | How many break points are live at once (1-3). |
set | integer or null | |
game | integer or null | |
point | string or null | |
win_probability_p1 | number or null | |
prob_swing | number or null | |
server_side_favoured | boolean or null | |
ts | string or null |
BreakPointResult
WebSocket break_point_result frame (ULTRA): a break point just resolved. outcome is held (server saved it) or broken (returner converted); win_probability_p1_after is p1's win probability once the game closed.
| Field | Type | Description |
|---|---|---|
type | string | |
match_id | integer | |
server | integer or null (1, 2, null) | |
outcome | string (held, broken) | |
win_probability_p1_after | number or null | |
ts | string or null |
LivePoint
One PLAYED point of a live match — the expanded score state AFTER the point. seq is per-match, monotonic and never skips a value: the ordering, dedup and resume key across the WS frames, the webhook deliveries and the REST catch-up read. ts is CAPTURE time (when our pipeline committed the state), never a per-point clock — no feed asserts one and we fabricate none.
| Field | Type | Description |
|---|---|---|
seq | integer | Per-match monotonic position 1..N — dedup and resume on this. |
set | integer or null | |
game | integer or null | Game within the current set — 13 for a 6-6 tiebreak. |
number | integer or null | Points already recorded in this game at this state — 0 for a game's opening state. |
tiebreak | boolean | |
server | integer or null (1, 2, null) | Server of the point played FROM this state; null when the feed omits it. |
winner | integer or null (1, 2, null) | Who won the point that produced this state — null when not attributable to a single point, never guessed. |
score | object | In-game score AFTER the point ('0'/'15'/'30'/'40'/'AD'; the running tiebreak count as integer strings when tiebreak is true). |
sets | array of integer or null | |
games | array of array of integer | [games_p1, games_p2]; each a per-set list, frozen at the pre-breaker score during a tiebreak. |
ts | string or null | Capture time (UTC) — when our pipeline committed this state. Null on every frame of a reconstruction-basis page — the recorded sequence carries no per-point clock and none is fabricated. |
MatchPoints
One page of a match's per-point stream, seq order. basis says which base served it: the persisted live stream rows, or — for a completed match where a measured-complete recorded sequence exists — that complete sequence projected into point frames.
| Field | Type | Description |
|---|---|---|
match_id | integer | |
pbp_coverage | string (point, game) | point = this match has a true per-point stream; game = only the snapshot score path covers it (points is empty — an answer, not an error). |
quality | string (clean, revised) | revised = the upstream feed rewrote an already-served prefix at least once during this match; served rows are never edited. |
covers_from_start | boolean or null | Whether the persisted stream OPENS at the match's 0-0 opener — seq 1 exists and is the love-love state — i.e. whether replaying from after_seq=0 yields the whole match or joins it mid-play. Null when the match has no rows at all (nothing to judge — null means not measured, never "no"). |
points | array of object | |
last_seq | integer | The resume cursor — pass as after_seq to continue. |
has_more | boolean | |
basis | string (live, reconstruction) | Which base served this page. live = the persisted live stream rows (every live match, and any completed match without a measured-complete recorded sequence); reconstruction = the complete recorded point sequence of a finished match, projected into point frames at read time — includes the match-closing point, seq contiguous 1..N, ts null on every frame. Completeness beats the partial live capture wholesale; the two bases are never interleaved. |
PointFrame
WebSocket point frame (ULTRA, opt-in via signals: ["points"]; also the webhook point event body): one PLAYED point of a subscribed match. Ordered per match by seq; dedup/resume on seq. Best-effort, NO replay — catch up via GET /matches/{matchId}/points?after_seq=.
| Field | Type | Description |
|---|---|---|
type | string | |
match_id | integer | |
point | object | One PLAYED point of a live match — the expanded score state AFTER the point. seq is per-match, monotonic and never skips a value: the ordering, dedup and resume key across the WS frames, the webhook deliveries and the REST catch-up read. ts is CAPTURE time (when our pipeline committed the state), never a per-point clock — no feed asserts one and we fabricate none. |
pbp_coverage | string (point, game) | |
quality | string (clean, revised) |
Tournament
One tournament of the catalogue — the stable id space Match.tournament_id joins, one row per tournament × event type, stable across seasons.
| Field | Type | Description |
|---|---|---|
id | string | The stable id Match.tournament_id joins. |
name | string or null | |
tour | string or null (atp, wta, challenger, itf, juniors, null) | |
surface | string or null (hard, clay, grass, null) | |
indoor | boolean | |
city | string or null | Host city, from a curated table — null where not curated. |
country | string or null | Host country, ISO-3166 alpha-2 — null where not curated. (NOTE this differs from player.country and the ?country= filter, which use IOC-style lowercase 3-letter codes.) |
category | string or null (grand_slam, masters_1000, tour_finals, atp_500, atp_250, wta_1000, wta_500, wta_250, wta_125, challenger, itf, juniors, null) | Tournament category where our catalogues agree unambiguously on an exact-name join — null otherwise, never derived from the name. |
ArchiveMatch
One result of the results archive (1968–2022). Winner/loser-shaped — results data is recorded that way at the source, so the winner is a field, never an inference. Its own id space; source_id is the stable corpus key.
| Field | Type | Description |
|---|---|---|
id | integer | |
source_id | string | |
tour | string (atp, wta) | |
level | string or null | Source tier code (G/M/A/F/D/C/O, or a futures category code as published). |
tournament | string or null | |
surface | string or null | |
draw_size | integer or null | |
event_date | string or null | Tournament START date — per-match dates do not exist in this era's records, and we do not invent them. |
round | string or null | |
best_of | integer or null | |
minutes | integer or null | |
winner | object | One participant of an archive result, as the corpus records them. |
loser | object | One participant of an archive result, as the corpus records them. |
score | string or null | The final score as published, e.g. "6-4 7-6(5)", "6-3 RET", "W/O". |
outcome | string or null (completed, retired, walkover, default, abandoned, null) | Parsed from the score's own vocabulary; null when unparseable — never guessed. |
stats | object or null | Detail endpoint only. {"winner":{...}, "loser":{...}} with aces, double_faults, serve_points, first_in, first_won, second_won, serve_games, bp_saved, bp_faced where the source recorded them; null otherwise (most rows before 1991) — never synthesised. |
ArchivePlayer
One participant of an archive result, as the corpus records them.
| Field | Type | Description |
|---|---|---|
name | string or null | |
hand | string or null | |
country | string or null | 3-letter code, same vocabulary as player.country. |
rank | integer or null | The player's rank AT THE TIME of the match, as published. |
seed | integer or null | |
player_id | integer or null | The corpus person id — joins /history/archive/players within the same tour. NOT a roster player id. |
height_cm | integer or null | |
age | number or null | Age at the time of the match, as the corpus records it. |
entry | string or null | Draw entry where recorded (WC, Q, LL, PR, SE, ...) — null for direct acceptances. |
ArchivePlayerBio
One archive person — own id space (the corpus person id that archive match rows carry as winner.player_id / loser.player_id, scoped per tour), never a roster id. Career-high is computed offline from the corpus's own weekly ranking tables at ingest, never modelled. Null fields are the era's silence.
| Field | Type | Description |
|---|---|---|
id | integer | |
tour | string (atp, wta) | |
name | string or null | |
hand | string or null | |
dob | string or null | |
country | string or null | |
height_cm | integer or null | |
career_high_rank | integer or null | |
career_high_date | string or null | The earliest week the career-high rank was reached. |
ArchiveCareer
Career aggregates over the results archive (1968–2022) — sums and ratios of sums only, nothing modelled. Serve stats exist in the corpus from 1991; serve.matches_with_stats states the coverage.
| Field | Type | Description |
|---|---|---|
player | object | |
span | object | |
record | object | |
by_year | array of object | |
serve | object | Summed serve statistics + derived ratios; null ratios where the denominator is zero. |
HeadToHead
The record between two players across both halves of the product — the results archive (1968–2022) and our own completed matches (2023→now). Totals count meetings with a KNOWN winner; undecided counts the rest.
| Field | Type | Description |
|---|---|---|
players | object or null | The resolved names ({"p1":{"name"}, "p2":{"name"}}); null when no player matches the fragments. |
totals | object | |
by_surface | object | Per-surface win split of the decided meetings; keys are surface names plus 'unknown'. |
meetings | array of object | Newest first, capped at 200. era says which half served the row — 'archive' rows carry archive_match_id/level/score; 'current' rows carry match_id/round_code and read their score from the match endpoints. winner is 1|2 OF THIS H2H (p1/p2 as requested), null when underivable. |
stats | object or null | ULTRA only — per-player serve/return/break-point aggregates over the pairing, keyed p1/p2. Each side carries archive_serve (serve-side figures, meetings from 1991) and current (2023+, adding return and break-point conversion, aces and winners), each with its own meetings_with_stats sample size. Absent below ULTRA. |
RallyMatch
One charted match of the rally-construction corpus — its own id space, keyed on rally_match_id.
| Field | Type | Description |
|---|---|---|
rally_match_id | integer | The id this product is keyed on. |
source_id | string | |
match_id | integer or null | OUR match id, when the charted match is also one we hold. Null otherwise — most charted matches predate our own collection. |
date | string or null | |
tournament | string or null | |
round | string or null | |
surface | string or null | |
gender | string or null (M, W, null) | |
best_of | integer or null | |
players | array of object | |
points | integer | Charted points in this match. |
points_parsed | integer | How many of them our parser read cleanly — the per-match quality number. |
RallyPoint
One charted point. raw is the charter's own string, verbatim, and is ALWAYS present; the parsed fields are our reading of it. parsed is false when the notation contained something we could not read cleanly — the recognised part is still returned. A consumer who wants only unambiguous rows filters on parsed.
| Field | Type | Description |
|---|---|---|
point | integer | |
set | array of integer or null | |
games | array of integer or null | |
score | string or null | e.g. '30-40'. |
game | integer or null | |
is_tiebreak | boolean | |
server | integer or null (1, 2, null) | |
point_winner | integer or null (1, 2, null) | |
raw | string or null | The charter's shot string; both serves joined by ';' when the first was a fault. |
parsed | boolean | |
serve_number | integer or null (1, 2, null) | |
serve_direction | string or null (wide, body, down_the_t, null) | |
rally_length | integer or null | Strokes including the serve. An ace is 1, a double fault 0. |
outcome | string or null (winner, forced_error, unforced_error, error, other, null) | error = the charter recorded a miss without saying whether it was forced. Never guessed. |
error_location | string or null (net, wide, deep, wide_and_deep, null) | |
ending_stroke | string or null | |
ending_wing | string or null | |
is_ace | boolean | |
is_double_fault | boolean | |
is_serve_and_volley | boolean | |
shots | array of object |
RallyShot
One stroke. Shots are numbered from the serve: serve 1, return 2, the server's next ball 3.
| Field | Type | Description |
|---|---|---|
number | integer | |
code | string | The charter's raw code, e.g. 'f'. |
stroke | string or null (serve, groundstroke, slice, volley, half_volley, swinging_volley, overhead, drop_shot, lob, trick, unknown, null) | |
wing | string or null (forehand, backhand, null) | The side it was struck FROM. |
direction | string or null (forehand_side, middle, backhand_side, null) | Where the ball was sent. |
depth | string or null (shallow, mid, deep, null) | |
position | string or null (approaching, at_net, baseline, null) |