From d9ad9afe3664088ccd95a6255a856b3dc221e9c5 Mon Sep 17 00:00:00 2001 From: bensynapse <118375461+bensynapse@users.noreply.github.com> Date: Mon, 30 Nov 2026 16:43:54 +0200 Subject: [PATCH 1/2] Add round_label and correct six passages (1.13.95) A qualifying draw uses the main draw's round labels. They count back from the round whose winners qualify. So a qualifying row whose round ends in "Final" is the last qualifying round, not the final. The new round_label field says that in words on every qualifying row. It is null on every other row. It is on Match, Fixture, PlayerRecentMatch, the current h2h meetings and the broadcast object. On the broadcast object it is the last field. Recent matches and h2h meetings also gain is_qualifying. Corrections to existing text: - event_status gains Defaulted and Awarded, with the count of every value on 2026-11-30. - A null is_qualifying no longer reads as a row written before the flag existed. - round_code no longer calls an SF qualifying row a qualifying semi-final. - tiebreak_games_excluded counts excluded entries, not tiebreaks. - The results archive summary and the archive package kind say 1967 to 2022. - The ITF serve split note carries its dated count. The spec version moves to 1.13.95 with a changelog entry. The vocabulary page describes the two new event_status codes. The docs pages and feeds are regenerated. --- CHANGELOG.md | 14 +++ docs/auth-quota-and-health.html | 2 +- docs/broadcast-graphics.html | 4 +- docs/changelog.atom | 26 +++++- docs/changelog.html | 21 ++++- docs/changelog.json | 40 ++++++++ docs/historical-results-archive.html | 6 +- docs/live-scores.html | 12 ++- docs/llms.txt | 2 +- docs/openapi.json | 69 ++++++++++++-- docs/players-and-tournaments.html | 2 +- docs/point-by-point-history.html | 4 +- docs/push-feed-and-webhooks.html | 2 +- docs/reference.html | 77 ++++++++++------ docs/shot-level-rally-data.html | 2 +- docs/sitemap.xml | 4 +- docs/tennis-data-vocabulary.html | 8 +- docs/tennis-data-vocabulary.json | 14 ++- docs/tennis-odds.html | 2 +- openapi.yaml | 132 ++++++++++++++++++++++----- scripts/build_reference.py | 9 +- 21 files changed, 364 insertions(+), 88 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 661bd7c..2faa859 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,20 @@ All notable changes to the specification are recorded here. The API surface is versioned as `v1`. Changes within `v1` are **additive only**; removing a field or changing its type would require `v2`. +## [1.13.95] - 2026-11-30 + +### Added +- **`round_label` names a qualifying round in words.** A qualifying draw uses the main draw's round labels. They count back from the round whose winners qualify. So `round: "US Open - Final"` with `is_qualifying: true` is the last qualifying round, not the final. There the new field reads "Qualifying: round 3 of 3 (final round)". Only Grand Slam singles qualifying is numbered. Other qualifying rows read "Qualifying: " or a bare "Qualifying". The field is null on every row whose `is_qualifying` is not true. It is on the Match object, on `Fixture` (always unnumbered), on `PlayerRecentMatch` and on the current `meetings` of `GET /h2h`. It is also the last field of the broadcast object, so every earlier field keeps its position. `round` and `round_code` are unchanged. +- **`is_qualifying` on recent matches and head-to-head meetings.** `recent` on `GET /players/{playerId}/stats` and the current `meetings` of `GET /h2h` now carry it. It has the same three values as on the Match object. + +### Fixed +- **`event_status` lists `Defaulted` and `Awarded`.** Both values are served, 4 rows each on 2026-11-30, and a strictly-validating client rejected those rows. The description now gives the count of every value served on that date. The vocabulary page describes both codes. +- **What a null `is_qualifying` means.** The description said null marked rows written before the flag existed. That was wrong for 2023-2025, where the flag is stated on every row except 262 ATP matches. It now gives the measured state of each period as of 2026-11-30. +- **An `SF` qualifying row is not a qualifying semi-final.** It is the round before the last qualifying round. The `round_code` description and the vocabulary page now say so. The description gives the count of each code over the 39,348 qualifying matches held on 2026-11-30. +- **`tiebreak_games_excluded` counts entries, not tiebreaks.** The field description said the live record collapses a whole tiebreak onto one entry. The field counts one entry per tiebreak point the record holds, plus the set's closing 7-6 entry. +- **The results archive spans 1967 to 2022.** The `GET /history/archive/matches` summary and the `archive` kind of `GET /history/packages` now say so. That kind holds 56 yearly files with 1,485,752 results, measured 2026-11-30. +- **The ITF serve split note is dated.** Over the 30 days to 2026-11-30, 0 of 4,328 ITF singles payloads carried a first-serve-in figure. None carried first-serve or second-serve points won. + ## [1.13.94] - 2026-11-29 ### Changed diff --git a/docs/auth-quota-and-health.html b/docs/auth-quota-and-health.html index e138c43..8fb63e0 100644 --- a/docs/auth-quota-and-health.html +++ b/docs/auth-quota-and-health.html @@ -202,7 +202,7 @@
Live Tennis API DocsGet a free key
Explore the documentation
-

Live Tennis API · docs · version 1.13.94

+

Live Tennis API · docs · version 1.13.95

Tennis API authentication, quota and status

How do you authenticate, and how do you see what quota is left? Send your key as X-API-Key on every request. GET /usage returns your own consumption against your plan's quota and works on every tier including FREE, so a client can check its own headroom before a burst. GET /health is the unauthenticated liveness probe.

2 endpoints on this page. Base URL diff --git a/docs/broadcast-graphics.html b/docs/broadcast-graphics.html index 9610187..40c0ffc 100644 --- a/docs/broadcast-graphics.html +++ b/docs/broadcast-graphics.html @@ -202,7 +202,7 @@

Live Tennis API DocsGet a free key
Explore the documentation
-

Live Tennis API · docs · version 1.13.94

+

Live Tennis API · docs · version 1.13.95

Tennis scores for on-air graphics

How do you put live tennis scores into a broadcast graphics template? GET /broadcast/match/{matchId} returns ONE flat object for one match and GET /broadcast/live the same object for every live match in a single call. Both are ULTRA. A graphics template binds each field to a fixed path, so three things are contractual: the object is flat, every key is present on every read (null, never missing), and the score is already in display form — p1_points reads "40" or "AD" and set_line is one string. Built for 1 Hz: every response carries a strong ETag, so If-None-Match makes an unchanged state a 304 with no body. Detect a new state on sequence, never on served_at, which changes on every read.

2 endpoints on this page. Base URL @@ -243,7 +243,7 @@

Parameters

GET /broadcast/match/{matchId} — responses
StatusMeaning
200The broadcast object for this match
304Unchanged since the ETag you sent
401Missing, unknown, or disabled credentials
403Your tier doesn't unlock this endpoint
404No such resource, or no data yet
429Rate 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

GET /broadcast/match/{matchId} — response fields
FieldTypeDescription
match_idinteger
statusstringlive, completed, upcoming
event_statusstring or nullThe terminal badge where one is stated (Finished, Retired, Walk Over, Interrupted); null on a normal live row.
outcomestring or null
winnerinteger or null1 or 2, null until a result is established.
tourstring or null
tournamentstring or null
roundstring or null
surfacestring or null
best_ofinteger or null
is_doublesboolean
p1_idinteger or null
p1_namestring or null
p1_shortstring or nullDisplay short form, "J. Sinner". A doubles team keeps each side's last token.
p1_countrystring or nullThree-letter code.
p1_rankinginteger or null
p2_idinteger or null
p2_namestring or null
p2_shortstring or null
p2_countrystring or null
p2_rankinginteger or null
p1_setsinteger or null
p2_setsinteger or null
p1_gamesinteger or nullGames in the set in play.
p2_gamesinteger or null
p1_pointsstring or nullAs printed: "0", "15", "30", "40", "AD", or the tiebreak count.
p2_pointsstring or null
p1_set1integer or nullPer-set columns. A set not yet played is null on both sides.
p2_set1integer or null
p1_set2integer or null
p2_set2integer or null
p1_set3integer or null
p2_set3integer or null
p1_set4integer or null
p2_set4integer or null
p1_set5integer or null
p2_set5integer or null
set_linestring or nullThe completed and in-play sets as one string, "5-7 2-0".
current_setinteger or null
is_tiebreakboolean
match_tiebreakbooleanTrue while a deciding match tiebreak is in play.
serverinteger or null1 or 2.
p1_servingboolean or null
p2_servingboolean or null
break_point_forinteger or null1, 2 or null. Cue an animation on the transition to non-null.
set_point_forinteger or null
match_point_forinteger or null
p1_win_pctinteger or nullThe model probability as a whole percent. Null where no model figure was computed for this state — never guessed.
p2_win_pctinteger or null
sequenceinteger or nullThe per-match accept counter. THIS is how a poller detects a new state.
updated_atstring or null
age_secondsinteger or nullSeconds since the score CONTENT last changed.
staleboolean or nullA live match whose content has frozen past the threshold.
served_atstringWhen this response was built. Changes on every read — do not use it to detect a new state.
+

Response fields

GET /broadcast/match/{matchId} — response fields
FieldTypeDescription
match_idinteger
statusstringlive, completed, upcoming
event_statusstring or nullThe terminal badge where one is stated (Finished, Retired, Walk Over, Interrupted); null on a normal live row.
outcomestring or null
winnerinteger or null1 or 2, null until a result is established.
tourstring or null
tournamentstring or null
roundstring or null
surfacestring or null
best_ofinteger or null
is_doublesboolean
p1_idinteger or null
p1_namestring or null
p1_shortstring or nullDisplay short form, "J. Sinner". A doubles team keeps each side's last token.
p1_countrystring or nullThree-letter code.
p1_rankinginteger or null
p2_idinteger or null
p2_namestring or null
p2_shortstring or null
p2_countrystring or null
p2_rankinginteger or null
p1_setsinteger or null
p2_setsinteger or null
p1_gamesinteger or nullGames in the set in play.
p2_gamesinteger or null
p1_pointsstring or nullAs printed: "0", "15", "30", "40", "AD", or the tiebreak count.
p2_pointsstring or null
p1_set1integer or nullPer-set columns. A set not yet played is null on both sides.
p2_set1integer or null
p1_set2integer or null
p2_set2integer or null
p1_set3integer or null
p2_set3integer or null
p1_set4integer or null
p2_set4integer or null
p1_set5integer or null
p2_set5integer or null
set_linestring or nullThe completed and in-play sets as one string, "5-7 2-0".
current_setinteger or null
is_tiebreakboolean
match_tiebreakbooleanTrue while a deciding match tiebreak is in play.
serverinteger or null1 or 2.
p1_servingboolean or null
p2_servingboolean or null
break_point_forinteger or null1, 2 or null. Cue an animation on the transition to non-null.
set_point_forinteger or null
match_point_forinteger or null
p1_win_pctinteger or nullThe model probability as a whole percent. Null where no model figure was computed for this state — never guessed.
p2_win_pctinteger or null
sequenceinteger or nullThe per-match accept counter. THIS is how a poller detects a new state.
updated_atstring or null
age_secondsinteger or nullSeconds since the score CONTENT last changed.
staleboolean or nullA live match whose content has frozen past the threshold.
served_atstringWhen this response was built. Changes on every read — do not use it to detect a new state.
round_labelstring or nullAdded 2026-11-30. Match.round_label. On a qualifying match it is the round in words, and it is null on a main-draw match. Examples are Qualifying: final round, and Qualifying: round 3 of 3 (final round) at a Grand Slam. Bind this, not round, where a qualifying Final must not read as a final. It is the last field, so every earlier field keeps its position.

Example

curl https://api.livetennisapi.com/api/public/v1/broadcast/match/18953 \
   -H "Authorization: Bearer twjp_..."
diff --git a/docs/changelog.atom b/docs/changelog.atom index 470372d..fda659b 100644 --- a/docs/changelog.atom +++ b/docs/changelog.atom @@ -3,7 +3,7 @@ https://docs.livetennisapi.com/changelog.html Live Tennis API changelog Every change to the Live Tennis API specification, dated and versioned, newest first. -2026-11-29T00:00:00Z +2026-11-30T00:00:00Z @@ -11,6 +11,30 @@ https://docs.livetennisapi.com/icon-256.png MIT licence, https://github.com/livetennisapi/openapi/blob/main/LICENSE +https://docs.livetennisapi.com/changelog.html#v1.13.95 +1.13.95: round_label names a qualifying round in words, and 7 more changes +2026-11-30T00:00:00Z +2026-11-30T00:00:00Z + + + +Added: round_label names a qualifying round in words. is_qualifying on recent matches and head-to-head meetings. Plus 6 more changes. +<h3>Added</h3> +<ul> +<li><strong><code>round_label</code> names a qualifying round in words.</strong> A qualifying draw uses the main draw&#x27;s round labels. They count back from the round whose winners qualify. So <code>round: &quot;US Open - Final&quot;</code> with <code>is_qualifying: true</code> is the last qualifying round, not the final. There the new field reads &quot;Qualifying: round 3 of 3 (final round)&quot;. Only Grand Slam singles qualifying is numbered. Other qualifying rows read &quot;Qualifying: &lt;round&gt;&quot; or a bare &quot;Qualifying&quot;. The field is null on every row whose <code>is_qualifying</code> is not true. It is on the Match object, on <code>Fixture</code> (always unnumbered), on <code>PlayerRecentMatch</code> and on the current <code>meetings</code> of <code>GET /h2h</code>. It is also the last field of the broadcast object, so every earlier field keeps its position. <code>round</code> and <code>round_code</code> are unchanged.</li> +<li><strong><code>is_qualifying</code> on recent matches and head-to-head meetings.</strong> <code>recent</code> on <code>GET /players/{playerId}/stats</code> and the current <code>meetings</code> of <code>GET /h2h</code> now carry it. It has the same three values as on the Match object.</li> +</ul> +<h3>Fixed</h3> +<ul> +<li><strong><code>event_status</code> lists <code>Defaulted</code> and <code>Awarded</code>.</strong> Both values are served, 4 rows each on 2026-11-30, and a strictly-validating client rejected those rows. The description now gives the count of every value served on that date. The vocabulary page describes both codes.</li> +<li><strong>What a null <code>is_qualifying</code> means.</strong> The description said null marked rows written before the flag existed. That was wrong for 2023-2025, where the flag is stated on every row except 262 ATP matches. It now gives the measured state of each period as of 2026-11-30.</li> +<li><strong>An <code>SF</code> qualifying row is not a qualifying semi-final.</strong> It is the round before the last qualifying round. The <code>round_code</code> description and the vocabulary page now say so. The description gives the count of each code over the 39,348 qualifying matches held on 2026-11-30.</li> +<li><strong><code>tiebreak_games_excluded</code> counts entries, not tiebreaks.</strong> The field description said the live record collapses a whole tiebreak onto one entry. The field counts one entry per tiebreak point the record holds, plus the set&#x27;s closing 7-6 entry.</li> +<li><strong>The results archive spans 1967 to 2022.</strong> The <code>GET /history/archive/matches</code> summary and the <code>archive</code> kind of <code>GET /history/packages</code> now say so. That kind holds 56 yearly files with 1,485,752 results, measured 2026-11-30.</li> +<li><strong>The ITF serve split note is dated.</strong> Over the 30 days to 2026-11-30, 0 of 4,328 ITF singles payloads carried a first-serve-in figure. None carried first-serve or second-serve points won.</li> +</ul> + + https://docs.livetennisapi.com/changelog.html#v1.13.94 1.13.94: A Grand Slam deciding-set tiebreak reads its final at 10 2026-11-29T00:00:00Z diff --git a/docs/changelog.html b/docs/changelog.html index edab67e..a0ed3ec 100644 --- a/docs/changelog.html +++ b/docs/changelog.html @@ -4,7 +4,7 @@ Live Tennis API — Changelog - + @@ -16,7 +16,7 @@ @@ -206,10 +206,25 @@

Live Tennis API · docs

Changelog

-

Every change to the specification, dated and versioned. The API surface is v1; changes within it are additive only. Current version 1.13.94, last change . Also as the full reference, OpenAPI YAML / JSON, and the dated facts file.

+

Every change to the specification, dated and versioned. The API surface is v1; changes within it are additive only. Current version 1.13.95, last change . Also as the full reference, OpenAPI YAML / JSON, and the dated facts file.

Corrections to published data values are not spec changes, so they are listed in the corrections log.

To follow new versions in a feed reader, subscribe to the Atom feed or the JSON Feed.

+

1.13.95

+

Added

+
    +
  • round_label names a qualifying round in words. A qualifying draw uses the main draw's round labels. They count back from the round whose winners qualify. So round: "US Open - Final" with is_qualifying: true is the last qualifying round, not the final. There the new field reads "Qualifying: round 3 of 3 (final round)". Only Grand Slam singles qualifying is numbered. Other qualifying rows read "Qualifying: <round>" or a bare "Qualifying". The field is null on every row whose is_qualifying is not true. It is on the Match object, on Fixture (always unnumbered), on PlayerRecentMatch and on the current meetings of GET /h2h. It is also the last field of the broadcast object, so every earlier field keeps its position. round and round_code are unchanged.
  • +
  • is_qualifying on recent matches and head-to-head meetings. recent on GET /players/{playerId}/stats and the current meetings of GET /h2h now carry it. It has the same three values as on the Match object.
  • +
+

Fixed

+
    +
  • event_status lists Defaulted and Awarded. Both values are served, 4 rows each on 2026-11-30, and a strictly-validating client rejected those rows. The description now gives the count of every value served on that date. The vocabulary page describes both codes.
  • +
  • What a null is_qualifying means. The description said null marked rows written before the flag existed. That was wrong for 2023-2025, where the flag is stated on every row except 262 ATP matches. It now gives the measured state of each period as of 2026-11-30.
  • +
  • An SF qualifying row is not a qualifying semi-final. It is the round before the last qualifying round. The round_code description and the vocabulary page now say so. The description gives the count of each code over the 39,348 qualifying matches held on 2026-11-30.
  • +
  • tiebreak_games_excluded counts entries, not tiebreaks. The field description said the live record collapses a whole tiebreak onto one entry. The field counts one entry per tiebreak point the record holds, plus the set's closing 7-6 entry.
  • +
  • The results archive spans 1967 to 2022. The GET /history/archive/matches summary and the archive kind of GET /history/packages now say so. That kind holds 56 yearly files with 1,485,752 results, measured 2026-11-30.
  • +
  • The ITF serve split note is dated. Over the 30 days to 2026-11-30, 0 of 4,328 ITF singles payloads carried a first-serve-in figure. None carried first-serve or second-serve points won.
  • +

1.13.94

Changed

    diff --git a/docs/changelog.json b/docs/changelog.json index a2bb09c..166d3f0 100644 --- a/docs/changelog.json +++ b/docs/changelog.json @@ -14,6 +14,46 @@ } ], "items": [ + { + "id": "https://docs.livetennisapi.com/changelog.html#v1.13.95", + "url": "https://docs.livetennisapi.com/changelog.html#v1.13.95", + "title": "1.13.95: round_label names a qualifying round in words, and 7 more changes", + "summary": "Added: round_label names a qualifying round in words. is_qualifying on recent matches and head-to-head meetings. Plus 6 more changes.", + "content_html": "

    Added

    \n
      \n
    • round_label names a qualifying round in words. A qualifying draw uses the main draw's round labels. They count back from the round whose winners qualify. So round: "US Open - Final" with is_qualifying: true is the last qualifying round, not the final. There the new field reads "Qualifying: round 3 of 3 (final round)". Only Grand Slam singles qualifying is numbered. Other qualifying rows read "Qualifying: <round>" or a bare "Qualifying". The field is null on every row whose is_qualifying is not true. It is on the Match object, on Fixture (always unnumbered), on PlayerRecentMatch and on the current meetings of GET /h2h. It is also the last field of the broadcast object, so every earlier field keeps its position. round and round_code are unchanged.
    • \n
    • is_qualifying on recent matches and head-to-head meetings. recent on GET /players/{playerId}/stats and the current meetings of GET /h2h now carry it. It has the same three values as on the Match object.
    • \n
    \n

    Fixed

    \n
      \n
    • event_status lists Defaulted and Awarded. Both values are served, 4 rows each on 2026-11-30, and a strictly-validating client rejected those rows. The description now gives the count of every value served on that date. The vocabulary page describes both codes.
    • \n
    • What a null is_qualifying means. The description said null marked rows written before the flag existed. That was wrong for 2023-2025, where the flag is stated on every row except 262 ATP matches. It now gives the measured state of each period as of 2026-11-30.
    • \n
    • An SF qualifying row is not a qualifying semi-final. It is the round before the last qualifying round. The round_code description and the vocabulary page now say so. The description gives the count of each code over the 39,348 qualifying matches held on 2026-11-30.
    • \n
    • tiebreak_games_excluded counts entries, not tiebreaks. The field description said the live record collapses a whole tiebreak onto one entry. The field counts one entry per tiebreak point the record holds, plus the set's closing 7-6 entry.
    • \n
    • The results archive spans 1967 to 2022. The GET /history/archive/matches summary and the archive kind of GET /history/packages now say so. That kind holds 56 yearly files with 1,485,752 results, measured 2026-11-30.
    • \n
    • The ITF serve split note is dated. Over the 30 days to 2026-11-30, 0 of 4,328 ITF singles payloads carried a first-serve-in figure. None carried first-serve or second-serve points won.
    • \n
    ", + "date_published": "2026-11-30T00:00:00Z", + "tags": [ + "Added", + "Fixed" + ], + "_livetennisapi": { + "about": "https://docs.livetennisapi.com/llms.txt", + "version": "1.13.95", + "date": "2026-11-30", + "sections": [ + { + "name": "Added", + "items": [ + "round_label names a qualifying round in words. A qualifying draw uses the main draw's round labels. They count back from the round whose winners qualify. So round: \"US Open - Final\" with is_qualifying: true is the last qualifying round, not the final. There the new field reads \"Qualifying: round 3 of 3 (final round)\". Only Grand Slam singles qualifying is numbered. Other qualifying rows read \"Qualifying: \" or a bare \"Qualifying\". The field is null on every row whose is_qualifying is not true. It is on the Match object, on Fixture (always unnumbered), on PlayerRecentMatch and on the current meetings of GET /h2h. It is also the last field of the broadcast object, so every earlier field keeps its position. round and round_code are unchanged.", + "is_qualifying on recent matches and head-to-head meetings. recent on GET /players/{playerId}/stats and the current meetings of GET /h2h now carry it. It has the same three values as on the Match object." + ], + "notes": [] + }, + { + "name": "Fixed", + "items": [ + "event_status lists Defaulted and Awarded. Both values are served, 4 rows each on 2026-11-30, and a strictly-validating client rejected those rows. The description now gives the count of every value served on that date. The vocabulary page describes both codes.", + "What a null is_qualifying means. The description said null marked rows written before the flag existed. That was wrong for 2023-2025, where the flag is stated on every row except 262 ATP matches. It now gives the measured state of each period as of 2026-11-30.", + "An SF qualifying row is not a qualifying semi-final. It is the round before the last qualifying round. The round_code description and the vocabulary page now say so. The description gives the count of each code over the 39,348 qualifying matches held on 2026-11-30.", + "tiebreak_games_excluded counts entries, not tiebreaks. The field description said the live record collapses a whole tiebreak onto one entry. The field counts one entry per tiebreak point the record holds, plus the set's closing 7-6 entry.", + "The results archive spans 1967 to 2022. The GET /history/archive/matches summary and the archive kind of GET /history/packages now say so. That kind holds 56 yearly files with 1,485,752 results, measured 2026-11-30.", + "The ITF serve split note is dated. Over the 30 days to 2026-11-30, 0 of 4,328 ITF singles payloads carried a first-serve-in figure. None carried first-serve or second-serve points won." + ], + "notes": [] + } + ], + "client_libraries": [] + } + }, { "id": "https://docs.livetennisapi.com/changelog.html#v1.13.94", "url": "https://docs.livetennisapi.com/changelog.html#v1.13.94", diff --git a/docs/historical-results-archive.html b/docs/historical-results-archive.html index 6fe1375..393adf0 100644 --- a/docs/historical-results-archive.html +++ b/docs/historical-results-archive.html @@ -202,7 +202,7 @@
    Live Tennis API DocsGet a free key
    Explore the documentation
    -

    Live Tennis API · docs · version 1.13.94

    +

    Live Tennis API · docs · version 1.13.95

    Historical tennis results API — 1968 onward

    How far back does the historical tennis data go, and what is in it? The results archive covers 1968 to 2022: GET /history/archive/matches for results, /archive/players for bios, /archive/career for career aggregates and GET /h2h for head-to-head across both the archive and our own completed matches. All BASIC. Matches from 2013 onward additionally carry a reconstructed point-by-point tape at /archive/matches/{archiveId}/tape (ULTRA).

    6 endpoints on this page. Base URL @@ -224,7 +224,7 @@

    The endpoints

    carries all 49 operations of the API on one page.

    GET /history/archive/matches

    -

    Results archive (1968–2022) — deep historical results (BASIC)

    +

    Results archive (1967–2022) — deep historical results (BASIC)

    Plan required: BASIC · operationId: listArchiveMatches

    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). @@ -295,7 +295,7 @@

    GET /h2h

    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. Passing a name EXACTLY selects that person, even where a longer name contains it, so Carlos Alcaraz resolves although Carlos Alcaraz Gonzalez also exists. A name you did not type in full stays a fragment: Sinner still refuses, and lists Jannik and Martin. 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

    GET /h2h — parameters
    NameInTypeRequiredNotes
    p1querystringyesFirst player name (fragment, min 3 chars).
    p2querystringyesSecond player name (fragment, min 3 chars).

    Responses

    GET /h2h — responses
    StatusMeaning
    200The head-to-head record; empty totals when no player matches the names
    400Bad query parameter
    401Missing, unknown, or disabled credentials
    403Your tier doesn't unlock this endpoint
    429Rate 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

    GET /h2h — response fields
    FieldTypeDescription
    playersobject or nullThe resolved names ({"p1":{"name"}, "p2":{"name"}}); null when no player matches the fragments.
    totalsobject
    totals.p1_winsinteger
    totals.p2_winsinteger
    totals.meetingsinteger
    totals.undecidedintegerMeetings with no derivable winner (never counted in wins).
    by_surfacemap of objectPer-surface win split of the decided meetings; keys are surface names plus 'unknown'.
    by_surface.*.p1integer
    by_surface.*.p2integer
    meetingsarray of objectNewest 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.
    meetings[].erastring (archive, current)
    meetings[].datestring or null
    meetings[].tournamentstring or null
    meetings[].levelstring or null
    meetings[].roundstring or null
    meetings[].surfacestring or null
    meetings[].scorestring or null
    meetings[].outcomestring or null
    meetings[].winnerinteger or null
    statsobject or nullULTRA 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.
    +

    Response fields

    GET /h2h — response fields
    FieldTypeDescription
    playersobject or nullThe resolved names ({"p1":{"name"}, "p2":{"name"}}); null when no player matches the fragments.
    totalsobject
    totals.p1_winsinteger
    totals.p2_winsinteger
    totals.meetingsinteger
    totals.undecidedintegerMeetings with no derivable winner (never counted in wins).
    by_surfacemap of objectPer-surface win split of the decided meetings; keys are surface names plus 'unknown'.
    by_surface.*.p1integer
    by_surface.*.p2integer
    meetingsarray of objectNewest 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, is_qualifying and round_label (since 2026-11-30, as on the Match object) and read their score from the match endpoints. winner is 1|2 OF THIS H2H (p1/p2 as requested), null when underivable.
    meetings[].erastring (archive, current)
    meetings[].datestring or null
    meetings[].tournamentstring or null
    meetings[].levelstring or null
    meetings[].roundstring or null
    meetings[].is_qualifyingboolean or nullCurrent rows only (since 2026-11-30). As on the Match object.
    meetings[].round_labelstring or nullCurrent rows only (since 2026-11-30). As on the Match object. The qualifying round in words, null unless is_qualifying is true.
    meetings[].surfacestring or null
    meetings[].scorestring or null
    meetings[].outcomestring or null
    meetings[].winnerinteger or null
    statsobject or nullULTRA 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_..."
    diff --git a/docs/live-scores.html b/docs/live-scores.html index 9196174..e313a40 100644 --- a/docs/live-scores.html +++ b/docs/live-scores.html @@ -202,7 +202,7 @@
    Live Tennis API DocsGet a free key
    Explore the documentation
    -

    Live Tennis API · docs · version 1.13.94

    +

    Live Tennis API · docs · version 1.13.95

    Live tennis scores API

    How do you read live tennis scores from the API? Poll GET /matches?status=live for the slate, then GET /matches/{matchId}/score for the lowest-latency read of one match. Both are on the FREE plan. Scores carry sets, games, points and the server; /events and /points give the same match as a stream of changes rather than a snapshot, so a client can catch up without re-reading state.

    11 endpoints on this page. Base URL @@ -248,8 +248,12 @@

    Parameters

    GET /matches/{matchId} — responses
    StatusMeaning
    200Match with score; market embed at PRO+, analysis embed at ULTRA
    401Missing, unknown, or disabled credentials
    403Your tier doesn't unlock this endpoint
    404No such resource, or no data yet
    410The match id existed and was merged into another match record (since 2026-09-05). The body is MatchMerged, not Error: it carries a forwarding address, which is the whole point of answering 410 rather than 404.
    429Rate 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

    GET /matches/{matchId} — response fields
    FieldTypeDescription
    idinteger
    tournamentstring
    tourstring 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 no tour is stated for the match 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_idstring or nullStable tournament identity — one id per tournament × event type, stable across seasons. Joins GET /tournaments/{tournamentId}. Null when the tournament is not in our tournament list at all (UTR events), and on the small residue of matches whose tournament name could not be matched to exactly one edition in that list — never guessed. Measured over August 2026 terminal matches: ATP 1 of 531 and WTA 3 of 513 null; ITF about 2.5% after the 2026-09-04 backfill (was ~25%); UTR 100%. (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.)
    tierstring or null (grand_slam, atp_finals, atp_1000, atp_500, atp_250, next_gen_finals, united_cup, davis_cup, olympics, laver_cup, wta_finals, wta_elite_trophy, wta_1000, wta_500, wta_250, wta_125, bjk_cup, challenger_175, challenger_125, challenger_100, challenger_75, challenger_50, itf_m15, itf_m25, itf_w15, itf_w25, itf_w35, itf_w40, itf_w50, itf_w60, itf_w75, itf_w80, itf_w100, juniors, utr, exhibition, null)The level the tournament was played at IN THIS MATCH'S SEASON (added 2026-09-22) — the official category as the tour publishes it, in a closed vocabulary: grand_slam; the ATP levels (atp_finals, atp_1000, atp_500, atp_250, next_gen_finals); the WTA levels (wta_finals, wta_elite_trophy — last held 2023 — wta_1000, wta_500, wta_250, wta_125); the ATP Challenger levels (challenger_175 … challenger_50); the ITF World Tennis Tour categories (itf_m15, itf_m25, itf_w15 … itf_w100 — the 2023 women's categories itf_w25/itf_w40/itf_w60/itf_w80 are kept as printed that season, not mapped onto the 2024 ladder, because the level a match was played at is a fact about that season); the team events (united_cup, davis_cup and bjk_cup in every group and stage, laver_cup, olympics); juniors; utr; and exhibition (no ranking points — Hopman Cup class). Same vocabulary as the ?tier= filter, read from the same per-season table, so filter and field cannot disagree. Resolved by the MATCH'S season (the calendar year of scheduled_time), never copied from the tournament row: a tournament keeps one tournament_id across seasons while its level moves — Dallas was atp_250 in 2023 and 2024 and atp_500 from 2025, so a 2024 Dallas match reads atp_250 and a 2025 one atp_500 under the same id. Coverage of the 2023–2026 seasons was verified event by event against the official calendars (99.1% of tournament-seasons resolved; the rest are deliberately null — the Asian Games tennis event, which no tour lists). A new event may read null for a short while after its first match until its tier is resolved. Null when nothing we hold names the level — never guessed; null is "we do not know", never a level. category on /tournaments is unchanged and remains the coarse class (challenger, itf, atp_250 …); read this field for the level.
    tier_sourcestring or null (calendar, name, wikipedia, resolver, null)How tier was established (added 2026-09-22): calendar = the official per-season tour calendar named the level (ATP tour and Challenger calendars, the WTA tournament list); name = an unambiguous name rule (the ITF category is in the event's official name — M25 …, W35 … — team and UTR events are named as such, and the Slam junior draws and exhibitions are their own event type); wikipedia = a published season schedule, used only where the official calendar could not state the level for that season (Eastbourne 2023–2025); resolver = resolved after the seed dataset, by the same rules, from the event's name, tour and dates in that season. Null exactly when tier is null.
    surfacestring or null (hard, clay, grass, null)Court surface. Null where no source states one, never inferred from a tournament's usual surface in other seasons. TEAM COMPETITIONS (Davis Cup, Billie Jean King Cup, Laver Cup) have no surface at tournament level — each tie is played on the surface its host nation chose — so the match carries its TIE's surface, taken from the ITF's published tie record (venue, indoor/outdoor, surface) and the same for every rubber of that tie; tournament.surface stays null for them. A team-event match is null only when the tie's venue is not yet published or the match cannot be matched to a single tie (competition, date window and the nations on court must agree). The other structural null is UTR events, which are not in our tournament list at all and so carry tournament_id: null too. For every other event a surface that IS known is published on both the match and its tournament, and the two agree.
    indoorboolean
    formatstring or null (BO3, BO5, null)
    roundstring or nullThe free-text round label, verbatim, as published for the match. It is the round WITHIN the draw this match belongs to, and the draw is named by is_qualifying — NOT by this string. A qualifying draw has its own semi-final and its own final, so "Buenos Aires 3 - Semi-finals" with is_qualifying: true is the semi-final of the QUALIFYING draw, not of the tournament. Read the two fields together or not at all. The label also embeds the tournament name on most matches — parse the suffix after the last " - ", or better, use round_code.
    round_codestring 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 label does not number). It matches /history/archive/matches?round= exactly. Null when the label is unrecognised — never guessed. -IT IS DRAW-RELATIVE AND CANNOT, BY ITSELF, TELL YOU WHETHER A MATCH IS QUALIFYING. A qualifying semi-final carries SF, the same as a main-draw semi-final; only Q/Q1..Q4 appear when the label itself names the round as qualifying, which most labels do not. To branch on main draw vs qualifying, use round_code AND is_qualifying together.
    is_qualifyingboolean or nullWhether this match belongs to the QUALIFYING draw, as the source states it — never GUESSED from main-draw round vocabulary or from the tournament name. (A round label that itself reads Qualification Round 1 states it, and reads true: a false beside such a round is a payload contradicting itself, not a main-draw assertion. Semi-finals and Final are main-draw vocabulary and are never read that way.) This is the only field that separates a qualifying draw from the main draw, and it is load-bearing because the two are routinely carried under ONE tournament name with ONE round vocabulary: a tournament will publish a dozen Semi-finals and several Final that are all qualifying, a week before the main draw begins. Neither tournament, tournament_id nor round_code can tell them apart. -THREE-VALUED, and null is NOT false. true/false are the source's own assertion; null means no source has ever stated it — every row written before the field existed, and rows whose only feed carries no equivalent field. Treat null as unknown and filter accordingly, exactly as with every other nullable field on this object.
    statusstring (upcoming, live, completed, cancelled)The settled lifecycle. completed is asserted only for a match we observed being played or whose match-winner market settled decisively (one side paid out) — a closed market alone never finishes a match (rule stated 2026-08-23; rows mis-published before it were corrected). cancelled with event_status: null means we hold positive evidence the match was not played as scheduled (the market settled void) but no stated reason why — outcome and the fixture reason stay null rather than guessed, and the row upgrades to a completed walkover with winner / withdrew if a Walk Over with a stated winner lands later. The flip upcoming → cancelled runs through a gate (well past the scheduled time, no play recorded), never inline on a momentary status flap.
    event_statusstring or null (Finished, Retired, Cancelled, Walk Over, Postponed, Interrupted, Unresolved, null)The stated designator for the match state, published verbatim. Finished is by far the most common value — 144,266 of the 150,678 rows carrying one at 2026-09-18 — and until this version it was missing from this enum, so a strictly-validating generated client rejected the majority of completed matches. It is listed now, with Unresolved (every source lost the match before a result; see outcome). The rest name a match that 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 does NOT mean "completed normally": it means nothing was ever stated for this match, which covers matches that ran their course and matches nothing was ever said about alike. event_status: Finished while status is still live is not a contradiction — one source has called the match over and we have not yet confirmed the final, so the score may stand still until we do (stale goes true, age_seconds climbs). Measured over the seven days to 2026-09-18, across 649 matches, that gap closed in 111 s at the median and 911 s at the ninetieth percentile; 85 ran past ten minutes. 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_atstring or nullWhen 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 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_doublesbooleanDoubles match — kept for compatibility, and LOSSY. Evidence order: a doubles-team participant proves true regardless of the event type; otherwise the stated 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.
    drawstring 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 stated event type decides. Null means neither says anything — no event type is stated, 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_timestring or null
    live_atstring or nullThe instant our feed last reported the match in play (UTC), added 2026-09-09 — the closest thing to an actual start time; a match that starts late has this well after scheduled_time, one that starts early has it before. Null for matches that went live before 2026-09-05 (when the stamp began) or were never observed live; re-stamped if a match is demoted and promoted again.
    result_restated_atstring or nullWhen the published result of this match was LAST corrected (UTC), added 2026-09-22 — the instant of the newest restatement row on GET /matches/{matchId}/status-history. A correction is any change to status, event_status, winner or the final score (sets, games) after the match was first published as completed (or as a cancelled walkover with a winner). Null when the result stands as first published. Present on every match surface. Poll GET /history/matches?restated_since= to find corrections.
    result_versioninteger1 plus the number of corrections to the published result (added 2026-09-22). 1 = the result stands as first published; each restatement row on the status history adds one. Record it with the result you settle on and compare on re-read — a higher number means the result you hold was superseded, and the status history says what changed.
    playersobject
    players.p1Player
    players.p2Player
    scoreScore or null
    winnerinteger or nullCompleted 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.
    outcomestring or null (completed, retired, walkover, default, abandoned, unresolved, null)The settlement outcome (added 2026-08-18), one closed vocabulary derived from status + event_status so the two can never disagree: completed = ran its full course; retired = a player retired in play; walkover = conceded before a ball was struck; default = a player was defaulted; abandoned = called off unfinished with no result awarded; unresolved (added 2026-09-10) = every source lost the match before a result and it was closed unfinished — score is the last state we observed, winner is null and no result is asserted; it flips to completed with the proven final when an authority confirms the result. NULL while the match is upcoming/live and on a cancelled fixture that never produced a result — null is not completed. Branch settlement on this field, never on event_status spellings. New values may be added within v1; handle unknowns gracefully.
    withdrewinteger or nullCompleted 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.
    has_analysisbooleanWhether a model thesis or profile exists for this match — on every list row and the detail, every tier (since 2026-09-02). Filter the slate on this before calling /matches/{matchId}/analysis, which answers 404 no_analysis about the same fact.
    has_marketbooleanWhether a match-winner market is mapped to this match (every tier, since 2026-09-02). Same role for /markets/{matchId}/prices (404 no_market).
    pregame_forecastsarray of objectULTRA only, on status=upcoming list rows (2026-09-24). The field is absent below ULTRA and on other statuses. The match's stage: pregame forecasts, oldest first, each in the Analysis.profile shape. [] when none has been written yet. The same field is on every Fixture row bound to a match.
    analysisAnalysisULTRA only (absent below)
    marketMarket or nullPRO+ only (absent below)
    +IT IS DRAW-RELATIVE AND CANNOT, BY ITSELF, TELL YOU WHETHER A MATCH IS QUALIFYING. The qualifying draw is listed with the main draw's rounds. So the round before the last qualifying round carries SF with is_qualifying: true, the same code as a main-draw semi-final. Only Q/Q1..Q4 appear when the label itself names the round as qualifying, which most labels do not. These values stay within v1. Measured 2026-11-30 over 39,348 qualifying matches: SF 16,140, F 8,607, Q 4,912, R32 3,967, R64 2,933, QF 1,801, Q1 453, R16 418, Q2 66 and null 51. To branch on main draw vs qualifying, use round_code AND is_qualifying together. Read round_label for the qualifying round in words.round_labelstring or nullAdded 2026-11-30. On a QUALIFYING row (is_qualifying: true), the round in words that cannot be read as a main-draw round. The qualifying draw is listed with the main draw's labels, which count back from the round whose winners qualify. 'Final' is the last qualifying round, and 'Semi-finals' is the round before it. So round "US Open - Final" with round_code F and is_qualifying: true is the third and last qualifying round of the US Open. It reads "Qualifying: round 3 of 3 (final round)" here. + +There are three forms. "Qualifying: round N of 3", plus " (final round)" for N = 3, is for Grand Slam singles qualifying. That is the one draw whose three-round shape the per-draw match counts prove (all 32 such draws of 2023-2026). "Qualifying: <round>" is for any other qualifying row whose label names a round (final round, semi-final round, quarter-final round, round of 32, round 2). "Qualifying" is for a label that names no round we can read. A non-Slam round is never numbered. + +Null on every row whose is_qualifying is not true. round and round_code are unchanged. Display round_label when it is set and round otherwise.is_qualifyingboolean or nullWhether this match belongs to the QUALIFYING draw, as the source states it — never GUESSED from main-draw round vocabulary or from the tournament name. (A round label that itself reads Qualification Round 1 states it, and reads true: a false beside such a round is a payload contradicting itself, not a main-draw assertion. Semi-finals and Final are main-draw vocabulary and are never read that way.) This is the only field that separates a qualifying draw from the main draw, and it is load-bearing because the two are routinely carried under ONE tournament name with ONE round vocabulary: a tournament will publish a dozen Semi-finals and several Final that are all qualifying, a week before the main draw begins. Neither tournament, tournament_id nor round_code can tell them apart. round_label states the qualifying round in words. +THREE-VALUED, and null is NOT false. true/false are the source's own assertion. null means it was never stated for this row. Measured 2026-11-30 over completed matches, for 2023-2025 the flag is stated on every row except 262 ATP matches (0.2% of 135,671). Every ITF row of those years reads false, because only the ITF main draw was held then. In 2026, 8,956 of 88,371 completed rows read null. Most are 7,461 UTR matches, whose record carries no such flag. The rest are doubles, rows with no stated or only an inferred event type, and 423 singles rows. Until 2026-11-30 this said null marked every row written before the field existed, which was wrong for 2023-2025. Treat null as unknown and filter accordingly, exactly as with every other nullable field on this object.statusstring (upcoming, live, completed, cancelled)The settled lifecycle. completed is asserted only for a match we observed being played or whose match-winner market settled decisively (one side paid out) — a closed market alone never finishes a match (rule stated 2026-08-23; rows mis-published before it were corrected). cancelled with event_status: null means we hold positive evidence the match was not played as scheduled (the market settled void) but no stated reason why — outcome and the fixture reason stay null rather than guessed, and the row upgrades to a completed walkover with winner / withdrew if a Walk Over with a stated winner lands later. The flip upcoming → cancelled runs through a gate (well past the scheduled time, no play recorded), never inline on a momentary status flap.event_statusstring or null (Finished, Retired, Cancelled, Walk Over, Postponed, Interrupted, Unresolved, Defaulted, Awarded, null)The stated designator for the match state, published verbatim. Every value served, with its count over all matches on 2026-11-30: Finished 179,350, Retired 6,694, Walk Over 937, Unresolved 933, Cancelled 828, Interrupted 5, Defaulted 4 and Awarded 4. Defaulted means a player was defaulted, with outcome default. Awarded is the record's own word for a default, on four ATP rows of 2023-2024, also with outcome default. Postponed had none at that date. It is passed through when a record states it. Defaulted and Awarded were missing from this enum until 2026-11-30, so a strictly-validating generated client rejected those rows. Finished was itself missing from this enum until 2026-09-18, so a strictly-validating generated client rejected the majority of completed matches. It is listed now, with Unresolved (every source lost the match before a result; see outcome). The rest name a match that 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 does NOT mean "completed normally": it means nothing was ever stated for this match, which covers matches that ran their course and matches nothing was ever said about alike. event_status: Finished while status is still live is not a contradiction — one source has called the match over and we have not yet confirmed the final, so the score may stand still until we do (stale goes true, age_seconds climbs). Measured over the seven days to 2026-09-18, across 649 matches, that gap closed in 111 s at the median and 911 s at the ninetieth percentile; 85 ran past ten minutes. 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_atstring or nullWhen 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 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_doublesbooleanDoubles match — kept for compatibility, and LOSSY. Evidence order: a doubles-team participant proves true regardless of the event type; otherwise the stated 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.drawstring 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 stated event type decides. Null means neither says anything — no event type is stated, 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_timestring or nulllive_atstring or nullThe instant our feed last reported the match in play (UTC), added 2026-09-09 — the closest thing to an actual start time; a match that starts late has this well after scheduled_time, one that starts early has it before. Null for matches that went live before 2026-09-05 (when the stamp began) or were never observed live; re-stamped if a match is demoted and promoted again.result_restated_atstring or nullWhen the published result of this match was LAST corrected (UTC), added 2026-09-22 — the instant of the newest restatement row on GET /matches/{matchId}/status-history. A correction is any change to status, event_status, winner or the final score (sets, games) after the match was first published as completed (or as a cancelled walkover with a winner). Null when the result stands as first published. Present on every match surface. Poll GET /history/matches?restated_since= to find corrections.result_versioninteger1 plus the number of corrections to the published result (added 2026-09-22). 1 = the result stands as first published; each restatement row on the status history adds one. Record it with the result you settle on and compare on re-read — a higher number means the result you hold was superseded, and the status history says what changed.playersobjectplayers.p1Playerplayers.p2PlayerscoreScore or nullwinnerinteger or nullCompleted 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.outcomestring or null (completed, retired, walkover, default, abandoned, unresolved, null)The settlement outcome (added 2026-08-18), one closed vocabulary derived from status + event_status so the two can never disagree: completed = ran its full course; retired = a player retired in play; walkover = conceded before a ball was struck; default = a player was defaulted; abandoned = called off unfinished with no result awarded; unresolved (added 2026-09-10) = every source lost the match before a result and it was closed unfinished — score is the last state we observed, winner is null and no result is asserted; it flips to completed with the proven final when an authority confirms the result. NULL while the match is upcoming/live and on a cancelled fixture that never produced a result — null is not completed. Branch settlement on this field, never on event_status spellings. New values may be added within v1; handle unknowns gracefully.withdrewinteger or nullCompleted 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.has_analysisbooleanWhether a model thesis or profile exists for this match — on every list row and the detail, every tier (since 2026-09-02). Filter the slate on this before calling /matches/{matchId}/analysis, which answers 404 no_analysis about the same fact.has_marketbooleanWhether a match-winner market is mapped to this match (every tier, since 2026-09-02). Same role for /markets/{matchId}/prices (404 no_market).pregame_forecastsarray of objectULTRA only, on status=upcoming list rows (2026-09-24). The field is absent below ULTRA and on other statuses. The match's stage: pregame forecasts, oldest first, each in the Analysis.profile shape. [] when none has been written yet. The same field is on every Fixture row bound to a match.analysisAnalysisULTRA only (absent below)marketMarket or nullPRO+ only (absent below)

    Example

    curl https://api.livetennisapi.com/api/public/v1/matches/18953 \
       -H "Authorization: Bearer twjp_..."
@@ -376,7 +380,7 @@

Parameters

GET /matches/{matchId}/statistics — responses
StatusMeaning
200Statistics with their own coverage and as_of
401Missing, unknown, or disabled credentials
403Your tier doesn't unlock this endpoint
404No such resource, or no data yet
410The match id existed and was merged into another match record (since 2026-09-05). The body is MatchMerged, not Error: it carries a forwarding address, which is the whole point of answering 410 rather than 404.
429Rate 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

GET /matches/{matchId}/statistics — response fields
FieldTypeDescription
match_idinteger
coveragestring (live, final, stale, none, diverged)
as_ofstring or nullWhen the underlying record was last updated (UTC)
age_secondsinteger or nullBehind the newest SCORE row, not the wall clock
games_countedinteger
tiebreak_games_excludedintegerTiebreaks are excluded — the live record collapses a whole tiebreak onto one entry
inconsistent_games_excludedintegerGames whose recorded outcome is neither a legal hold nor a legal break
sets_coveredarray of integer
freshnessMatchStatisticsFreshnessPer-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.
detailstringPresent only when coverage is none
playersobject or null
players.p1MatchStatisticsSideOne 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 match counts recorded as the match is played, 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.
players.p2MatchStatisticsSideOne 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 match counts recorded as the match is played, 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.
+

Response fields

GET /matches/{matchId}/statistics — response fields
FieldTypeDescription
match_idinteger
coveragestring (live, final, stale, none, diverged)
as_ofstring or nullWhen the underlying record was last updated (UTC)
age_secondsinteger or nullBehind the newest SCORE row, not the wall clock
games_countedinteger
tiebreak_games_excludedintegerTiebreaks are excluded. This is a count of excluded tiebreak ENTRIES, not of tiebreaks: one per tiebreak point the record holds, plus the set's closing 7-6 entry. One 7-4 breaker reads 12 (11 points and the closing entry) beside games_counted 19, on match 98655.
inconsistent_games_excludedintegerGames whose recorded outcome is neither a legal hold nor a legal break
sets_coveredarray of integer
freshnessMatchStatisticsFreshnessPer-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.
detailstringPresent only when coverage is none
playersobject or null
players.p1MatchStatisticsSideOne 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 match counts recorded as the match is played, 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.
players.p2MatchStatisticsSideOne 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 match counts recorded as the match is played, 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.

Example

curl https://api.livetennisapi.com/api/public/v1/matches/18953/statistics \
   -H "Authorization: Bearer twjp_..."
diff --git a/docs/llms.txt b/docs/llms.txt index fc2a82b..2f0b596 100644 --- a/docs/llms.txt +++ b/docs/llms.txt @@ -151,7 +151,7 @@ Prices: https://livetennisapi.com/historical-tennis-data-api - GET /history/matches/{matchId} — Per-match tape — point-by-point score + per-point model probabilities (BASIC) - GET /history/incidents — Published data-quality incidents (BASIC) - GET /history/incidents/{incidentId}/matches — The matches one incident affected, as JSONL or CSV (BASIC) -- GET /history/archive/matches — Results archive (1968–2022) — deep historical results (BASIC) +- GET /history/archive/matches — Results archive (1967–2022) — deep historical results (BASIC) - GET /history/archive/matches/{archiveId} — One archive result, with serve statistics where recorded (BASIC) - GET /history/archive/matches/{archiveId}/tape — Reconstructed 2013–2022 point-by-point tape for one archive result (ULTRA, or any History plan) - GET /history/archive/players — Archive player bios — hand, DOB, country, height, career-high (BASIC) diff --git a/docs/openapi.json b/docs/openapi.json index 7c79557..46d3623 100644 --- a/docs/openapi.json +++ b/docs/openapi.json @@ -2,7 +2,7 @@ "openapi": "3.1.0", "info": { "title": "Live Tennis API", - "version": "1.13.94", + "version": "1.13.95", "contact": { "name": "Live Tennis API", "url": "https://livetennisapi.com" @@ -2685,7 +2685,7 @@ }, "/history/archive/matches": { "get": { - "summary": "Results archive (1968–2022) — deep historical results (BASIC)", + "summary": "Results archive (1967–2022) — deep historical results (BASIC)", "description": "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).\n\nA 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.", "operationId": "listArchiveMatches", "x-codeSamples": [ @@ -3380,7 +3380,7 @@ ], "default": "tape" }, - "description": "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); `archive_tape` = the RECONSTRUCTED 2013–2022 point-by-point tape as YEARLY exports — ten periods, 2013 through 2022, each with a JSONL and a CSV file, all `ready`, needing ULTRA or a History Pro/Business subscription or an active one-off package window (a History Starter grant reads a tape per call and does not download years of them). 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." + "description": "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 as YEARLY exports (56 files, 1967–2022, 1,485,752 results, measured 2026-11-30), same entitlement as the tape packages; `elo` = the as-of Elo tape as YEARLY exports (ULTRA); `archive_tape` = the RECONSTRUCTED 2013–2022 point-by-point tape as YEARLY exports — ten periods, 2013 through 2022, each with a JSONL and a CSV file, all `ready`, needing ULTRA or a History Pro/Business subscription or an active one-off package window (a History Starter grant reads a tape per call and does not download years of them). 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. The 1967 `archive` file holds the 35 results of events that began in that year's last week." }, { "name": "year", @@ -6058,6 +6058,20 @@ "null" ] }, + "is_qualifying": { + "type": [ + "boolean", + "null" + ], + "description": "Added 2026-11-30. As on the Match object (three-valued)." + }, + "round_label": { + "type": [ + "string", + "null" + ], + "description": "Added 2026-11-30. As on the Match object. The qualifying round in words, null unless is_qualifying is true." + }, "surface": { "type": [ "string", @@ -6873,14 +6887,21 @@ "ER", null ], - "description": "The round in the archive's controlled vocabulary, normalized from the free-text label above (`Q` = qualifying round the label does not number). It matches `/history/archive/matches?round=` exactly. Null when the label is unrecognised — never guessed.\nIT IS DRAW-RELATIVE AND CANNOT, BY ITSELF, TELL YOU WHETHER A MATCH IS QUALIFYING. A qualifying semi-final carries `SF`, the same as a main-draw semi-final; only `Q`/`Q1`..`Q4` appear when the label itself names the round as qualifying, which most labels do not. To branch on main draw vs qualifying, use `round_code` AND `is_qualifying` together." + "description": "The round in the archive's controlled vocabulary, normalized from the free-text label above (`Q` = qualifying round the label does not number). It matches `/history/archive/matches?round=` exactly. Null when the label is unrecognised — never guessed.\nIT IS DRAW-RELATIVE AND CANNOT, BY ITSELF, TELL YOU WHETHER A MATCH IS QUALIFYING. The qualifying draw is listed with the main draw's rounds. So the round before the last qualifying round carries `SF` with `is_qualifying: true`, the same code as a main-draw semi-final. Only `Q`/`Q1`..`Q4` appear when the label itself names the round as qualifying, which most labels do not. These values stay within v1. Measured 2026-11-30 over 39,348 qualifying matches: `SF` 16,140, `F` 8,607, `Q` 4,912, `R32` 3,967, `R64` 2,933, `QF` 1,801, `Q1` 453, `R16` 418, `Q2` 66 and null 51. To branch on main draw vs qualifying, use `round_code` AND `is_qualifying` together. Read `round_label` for the qualifying round in words." + }, + "round_label": { + "type": [ + "string", + "null" + ], + "description": "Added 2026-11-30. On a QUALIFYING row (`is_qualifying: true`), the round in words that cannot be read as a main-draw round. The qualifying draw is listed with the main draw's labels, which count back from the round whose winners qualify. 'Final' is the last qualifying round, and 'Semi-finals' is the round before it. So round \"US Open - Final\" with `round_code` `F` and `is_qualifying: true` is the third and last qualifying round of the US Open. It reads \"Qualifying: round 3 of 3 (final round)\" here.\n\nThere are three forms. \"Qualifying: round N of 3\", plus \" (final round)\" for N = 3, is for Grand Slam singles qualifying. That is the one draw whose three-round shape the per-draw match counts prove (all 32 such draws of 2023-2026). \"Qualifying: \" is for any other qualifying row whose label names a round (final round, semi-final round, quarter-final round, round of 32, round 2). \"Qualifying\" is for a label that names no round we can read. A non-Slam round is never numbered.\n\nNull on every row whose `is_qualifying` is not true. `round` and `round_code` are unchanged. Display `round_label` when it is set and `round` otherwise." }, "is_qualifying": { "type": [ "boolean", "null" ], - "description": "Whether this match belongs to the QUALIFYING draw, as the source states it — never GUESSED from main-draw round vocabulary or from the tournament name. (A round label that itself reads `Qualification Round 1` states it, and reads `true`: a `false` beside such a round is a payload contradicting itself, not a main-draw assertion. `Semi-finals` and `Final` are main-draw vocabulary and are never read that way.) This is the only field that separates a qualifying draw from the main draw, and it is load-bearing because the two are routinely carried under ONE tournament name with ONE round vocabulary: a tournament will publish a dozen `Semi-finals` and several `Final` that are all qualifying, a week before the main draw begins. Neither `tournament`, `tournament_id` nor `round_code` can tell them apart.\nTHREE-VALUED, and `null` is NOT `false`. `true`/`false` are the source's own assertion; `null` means no source has ever stated it — every row written before the field existed, and rows whose only feed carries no equivalent field. Treat `null` as unknown and filter accordingly, exactly as with every other nullable field on this object." + "description": "Whether this match belongs to the QUALIFYING draw, as the source states it — never GUESSED from main-draw round vocabulary or from the tournament name. (A round label that itself reads `Qualification Round 1` states it, and reads `true`: a `false` beside such a round is a payload contradicting itself, not a main-draw assertion. `Semi-finals` and `Final` are main-draw vocabulary and are never read that way.) This is the only field that separates a qualifying draw from the main draw, and it is load-bearing because the two are routinely carried under ONE tournament name with ONE round vocabulary: a tournament will publish a dozen `Semi-finals` and several `Final` that are all qualifying, a week before the main draw begins. Neither `tournament`, `tournament_id` nor `round_code` can tell them apart. `round_label` states the qualifying round in words.\nTHREE-VALUED, and `null` is NOT `false`. `true`/`false` are the source's own assertion. `null` means it was never stated for this row. Measured 2026-11-30 over completed matches, for 2023-2025 the flag is stated on every row except 262 ATP matches (0.2% of 135,671). Every ITF row of those years reads `false`, because only the ITF main draw was held then. In 2026, 8,956 of 88,371 completed rows read `null`. Most are 7,461 UTR matches, whose record carries no such flag. The rest are doubles, rows with no stated or only an inferred event type, and 423 singles rows. Until 2026-11-30 this said `null` marked every row written before the field existed, which was wrong for 2023-2025. Treat `null` as unknown and filter accordingly, exactly as with every other nullable field on this object." }, "status": { "type": "string", @@ -6905,9 +6926,11 @@ "Postponed", "Interrupted", "Unresolved", + "Defaulted", + "Awarded", null ], - "description": "The stated designator for the match state, published verbatim. `Finished` is by far the most common value — 144,266 of the 150,678 rows carrying one at 2026-09-18 — and until this version it was missing from this enum, so a strictly-validating generated client rejected the majority of completed matches. It is listed now, with `Unresolved` (every source lost the match before a result; see `outcome`). The rest name a match that 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 does NOT mean \"completed normally\": it means nothing was ever stated for this match, which covers matches that ran their course and matches nothing was ever said about alike. `event_status: Finished` while `status` is still `live` is not a contradiction — one source has called the match over and we have not yet confirmed the final, so the score may stand still until we do (`stale` goes true, `age_seconds` climbs). Measured over the seven days to 2026-09-18, across 649 matches, that gap closed in 111 s at the median and 911 s at the ninetieth percentile; 85 ran past ten minutes. 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." + "description": "The stated designator for the match state, published verbatim. Every value served, with its count over all matches on 2026-11-30: `Finished` 179,350, `Retired` 6,694, `Walk Over` 937, `Unresolved` 933, `Cancelled` 828, `Interrupted` 5, `Defaulted` 4 and `Awarded` 4. `Defaulted` means a player was defaulted, with outcome `default`. `Awarded` is the record's own word for a default, on four ATP rows of 2023-2024, also with outcome `default`. `Postponed` had none at that date. It is passed through when a record states it. `Defaulted` and `Awarded` were missing from this enum until 2026-11-30, so a strictly-validating generated client rejected those rows. `Finished` was itself missing from this enum until 2026-09-18, so a strictly-validating generated client rejected the majority of completed matches. It is listed now, with `Unresolved` (every source lost the match before a result; see `outcome`). The rest name a match that 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 does NOT mean \"completed normally\": it means nothing was ever stated for this match, which covers matches that ran their course and matches nothing was ever said about alike. `event_status: Finished` while `status` is still `live` is not a contradiction — one source has called the match over and we have not yet confirmed the final, so the score may stand still until we do (`stale` goes true, `age_seconds` climbs). Measured over the seven days to 2026-09-18, across 649 matches, that gap closed in 111 s at the median and 911 s at the ninetieth percentile; 85 ran past ten minutes. 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": { "type": [ @@ -8001,6 +8024,13 @@ "type": "string", "format": "date-time", "description": "When this response was built. Changes on every read — do not use it to detect a new state." + }, + "round_label": { + "type": [ + "string", + "null" + ], + "description": "Added 2026-11-30. `Match.round_label`. On a qualifying match it is the round in words, and it is null on a main-draw match. Examples are Qualifying: final round, and Qualifying: round 3 of 3 (final round) at a Grand Slam. Bind this, not `round`, where a qualifying Final must not read as a final. It is the last field, so every earlier field keeps its position." } } }, @@ -8272,6 +8302,13 @@ ], "description": "Whether the fixture is in the qualifying draw, as the schedule states it. Same three values as `Match.is_qualifying`: null means never stated, and null is not false. A null here takes the bound match's value when the match states one. The qualifying draw is published under the main draw's tournament name, so group a schedule on `round_code` and this flag together." }, + "round_label": { + "type": [ + "string", + "null" + ], + "description": "Added 2026-11-30. Same field as `Match.round_label`. On a qualifying fixture it is the round in words (\"Qualifying: final round\"), null unless `is_qualifying` is true. It is always the unnumbered form here, because a fixture carries no season tier." + }, "created_at": { "type": [ "string", @@ -9204,7 +9241,7 @@ }, "MatchStatisticsMeasured": { "type": "object", - "description": "Measured counting statistics for one player. These are COUNTED during the match, 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.\nEVERY 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:\nTIER 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.\nTIER 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.\nTIER 3 — the winners / unforced-errors / forced-errors family, in total and by shot type. Present where the statistics source counts it: the 2026 Grand Slam main draws (Wimbledon and the US Open near complete; the Australian Open and Roland Garros filling as the completed-match statistics fetch walks back) and the odd regular-tour match (two at Basel 2026). On NONE of Challenger, ITF or juniors, and on almost no regular-tour match since 2026-07-12. Nothing is promised for a future event: the family appears when the source states it. A family the source filled with zeros is withheld (2026-10-29): a side that won 20 points or more with every by-shot winner and error at 0 is not measured, and the whole family is omitted, totals included.\nA `_of` suffix is the denominator of its base field and a `_pct` suffix is the percentage, recomputed from the two counts rather than read as a rounded figure.", + "description": "Measured counting statistics for one player. These are COUNTED during the match, 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.\nEVERY 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:\nTIER 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.\nTIER 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. ITF singles carry no first-serve-in figure and no first-serve or second-serve points won. Over the 30 days to 2026-11-30, 0 of 4,328 ITF singles payloads carried them.\nTIER 3 — the winners / unforced-errors / forced-errors family, in total and by shot type. Present where the statistics source counts it: the 2026 Grand Slam main draws (Wimbledon and the US Open near complete; the Australian Open and Roland Garros filling as the completed-match statistics fetch walks back) and the odd regular-tour match (two at Basel 2026). On NONE of Challenger, ITF or juniors, and on almost no regular-tour match since 2026-07-12. Nothing is promised for a future event: the family appears when the source states it. A family the source filled with zeros is withheld (2026-10-29): a side that won 20 points or more with every by-shot winner and error at 0 is not measured, and the whole family is omitted, totals included.\nA `_of` suffix is the denominator of its base field and a `_pct` suffix is the percentage, recomputed from the two counts rather than read as a rounded figure.", "properties": { "aces": { "type": [ @@ -9684,7 +9721,7 @@ }, "tiebreak_games_excluded": { "type": "integer", - "description": "Tiebreaks are excluded — the live record collapses a whole tiebreak onto one entry" + "description": "Tiebreaks are excluded. This is a count of excluded tiebreak ENTRIES, not of tiebreaks: one per tiebreak point the record holds, plus the set's closing 7-6 entry. One 7-4 breaker reads 12 (11 points and the closing entry) beside games_counted 19, on match 98655." }, "inconsistent_games_excluded": { "type": "integer", @@ -11156,7 +11193,7 @@ }, "meetings": { "type": "array", - "description": "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.", + "description": "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`, `is_qualifying` and `round_label` (since 2026-11-30, as on the Match object) and read their score from the match endpoints. `winner` is 1|2 OF THIS H2H (p1/p2 as requested), null when underivable.", "items": { "type": "object", "properties": { @@ -11191,6 +11228,20 @@ "null" ] }, + "is_qualifying": { + "type": [ + "boolean", + "null" + ], + "description": "Current rows only (since 2026-11-30). As on the Match object." + }, + "round_label": { + "type": [ + "string", + "null" + ], + "description": "Current rows only (since 2026-11-30). As on the Match object. The qualifying round in words, null unless is_qualifying is true." + }, "surface": { "type": [ "string", diff --git a/docs/players-and-tournaments.html b/docs/players-and-tournaments.html index c45ed3c..4000e89 100644 --- a/docs/players-and-tournaments.html +++ b/docs/players-and-tournaments.html @@ -202,7 +202,7 @@
Live Tennis API DocsGet a free key
Explore the documentation
-

Live Tennis API · docs · version 1.13.94

+

Live Tennis API · docs · version 1.13.95

Tennis players, tournaments and rankings API

How do you look up a player, a tournament or a ranking? GET /players searches by name and GET /players/{playerId} returns one player's bio, current ranking and cached statistics — both FREE. GET /players/{playerId}/stats (PRO) is the player's win/loss record over our completed matches, split by surface, level and season, with ULTRA adding summed serve and return statistics. GET /tournaments is the catalogue that Match.tournament_id joins against, so a match can be resolved to its event without a second lookup. GET /rankings serves rank-ordered listings on PRO. The per-player as-of records, including the Elo tape, are ULTRA.

8 endpoints on this page. Base URL diff --git a/docs/point-by-point-history.html b/docs/point-by-point-history.html index fc31e22..17b506a 100644 --- a/docs/point-by-point-history.html +++ b/docs/point-by-point-history.html @@ -202,7 +202,7 @@

Live Tennis API DocsGet a free key
Explore the documentation
-

Live Tennis API · docs · version 1.13.94

+

Live Tennis API · docs · version 1.13.95

Point-by-point tennis data API

Which endpoints return point-by-point tennis data, and how complete is it? GET /history/matches/{matchId} returns the tape for one completed match: the ordered score states we hold for it. The model's win probability sits on the rows that were observed live, and coverage is declared per match. GET /history/matches lists completed matches with their tape coverage, and GET /history/coverage is the measured completeness rollup per tour and draw bucket — a number we publish rather than estimate, with its own as_of. GET /history/packages serves the same data as pre-built monthly bulk files.

8 endpoints on this page. Base URL @@ -303,7 +303,7 @@

GET /history/packages

List the pre-built monthly bulk history packages (PRO)

Plan required: PRO · operationId: listHistoryPackages

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

GET /history/packages — parameters
NameInTypeRequiredNotes
kindquerystring (tape, rankings, rally, archive, elo, archive_tape)noPackage 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); archive_tape = the RECONSTRUCTED 2013–2022 point-by-point tape as YEARLY exports — ten periods, 2013 through 2022, each with a JSONL and a CSV file, all ready, needing ULTRA or a History Pro/Business subscription or an active one-off package window (a History Starter grant reads a tape per call and does not download years of them). 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.
yearquerystringnoYear archive listing — every published month of the year (History Business, a 1-year package, or ULTRA).
+

Parameters

GET /history/packages — parameters
NameInTypeRequiredNotes
kindquerystring (tape, rankings, rally, archive, elo, archive_tape)noPackage 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 as YEARLY exports (56 files, 1967–2022, 1,485,752 results, measured 2026-11-30), same entitlement as the tape packages; elo = the as-of Elo tape as YEARLY exports (ULTRA); archive_tape = the RECONSTRUCTED 2013–2022 point-by-point tape as YEARLY exports — ten periods, 2013 through 2022, each with a JSONL and a CSV file, all ready, needing ULTRA or a History Pro/Business subscription or an active one-off package window (a History Starter grant reads a tape per call and does not download years of them). 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. The 1967 archive file holds the 35 results of events that began in that year's last week. Default tape.
yearquerystringnoYear archive listing — every published month of the year (History Business, a 1-year package, or ULTRA).

Responses

GET /history/packages — responses
StatusMeaning
200Ready packages, newest period first
400Bad query parameter
401Missing, unknown, or disabled credentials
403Your tier doesn't unlock this endpoint
429Rate 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

GET /history/packages — response fields
FieldTypeDescription
dataarray of HistoryPackage
metaobject
meta.countinteger
meta.yearstringEchoed only when ?year= was supplied.

Example

curl https://api.livetennisapi.com/api/public/v1/history/packages \
diff --git a/docs/push-feed-and-webhooks.html b/docs/push-feed-and-webhooks.html
index d518007..8d5c3f2 100644
--- a/docs/push-feed-and-webhooks.html
+++ b/docs/push-feed-and-webhooks.html
@@ -202,7 +202,7 @@
 
Live Tennis API DocsGet a free key
Explore the documentation
-

Live Tennis API · docs · version 1.13.94

+

Live Tennis API · docs · version 1.13.95

Tennis WebSocket feed and webhooks

How do you receive tennis data as it happens instead of polling? Two ways, both ULTRA. GET /ws-token mints a short-lived token for the high-fan-out push feed, which streams score and point changes as they are written. POST /webhooks registers an outbound HTTP callback for the same events; GET /webhooks lists your registrations and never returns the signing secret. Webhooks require a direct key, not a marketplace one.

4 endpoints on this page. Base URL diff --git a/docs/reference.html b/docs/reference.html index 8cb15aa..bc72dad 100644 --- a/docs/reference.html +++ b/docs/reference.html @@ -207,7 +207,7 @@

Live Tennis API — Full Reference

-

Version 1.13.94 · OpenAPI 3.1.0

+

Version 1.13.95 · OpenAPI 3.1.0

Example

curl https://api.livetennisapi.com/api/public/v1/matches/18953 \
   -H "Authorization: Bearer twjp_..."
@@ -778,7 +782,7 @@

Parameters

GET /matches/{matchId}/statistics — responses
StatusMeaning
200Statistics with their own coverage and as_of
401Missing, unknown, or disabled credentials
403Your tier doesn't unlock this endpoint
404No such resource, or no data yet
410The match id existed and was merged into another match record (since 2026-09-05). The body is MatchMerged, not Error: it carries a forwarding address, which is the whole point of answering 410 rather than 404.
429Rate 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

GET /matches/{matchId}/statistics — response fields
FieldTypeDescription
match_idinteger
coveragestring (live, final, stale, none, diverged)
as_ofstring or nullWhen the underlying record was last updated (UTC)
age_secondsinteger or nullBehind the newest SCORE row, not the wall clock
games_countedinteger
tiebreak_games_excludedintegerTiebreaks are excluded — the live record collapses a whole tiebreak onto one entry
inconsistent_games_excludedintegerGames whose recorded outcome is neither a legal hold nor a legal break
sets_coveredarray of integer
freshnessMatchStatisticsFreshnessPer-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.
detailstringPresent only when coverage is none
playersobject or null
players.p1MatchStatisticsSideOne 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 match counts recorded as the match is played, 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.
players.p2MatchStatisticsSideOne 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 match counts recorded as the match is played, 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.
+

Response fields

GET /matches/{matchId}/statistics — response fields
FieldTypeDescription
match_idinteger
coveragestring (live, final, stale, none, diverged)
as_ofstring or nullWhen the underlying record was last updated (UTC)
age_secondsinteger or nullBehind the newest SCORE row, not the wall clock
games_countedinteger
tiebreak_games_excludedintegerTiebreaks are excluded. This is a count of excluded tiebreak ENTRIES, not of tiebreaks: one per tiebreak point the record holds, plus the set's closing 7-6 entry. One 7-4 breaker reads 12 (11 points and the closing entry) beside games_counted 19, on match 98655.
inconsistent_games_excludedintegerGames whose recorded outcome is neither a legal hold nor a legal break
sets_coveredarray of integer
freshnessMatchStatisticsFreshnessPer-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.
detailstringPresent only when coverage is none
playersobject or null
players.p1MatchStatisticsSideOne 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 match counts recorded as the match is played, 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.
players.p2MatchStatisticsSideOne 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 match counts recorded as the match is played, 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.

Example

curl https://api.livetennisapi.com/api/public/v1/matches/18953/statistics \
   -H "Authorization: Bearer twjp_..."
@@ -1012,7 +1016,7 @@

Example

curl https://api.livetennisapi.com/api/public/v1/hist
 
 

GET /history/archive/matches

-

Results archive (1968–2022) — deep historical results (BASIC)

+

Results archive (1967–2022) — deep historical results (BASIC)

Plan required: BASIC · operationId: listArchiveMatches

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). @@ -1088,7 +1092,7 @@

GET /h2h

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. Passing a name EXACTLY selects that person, even where a longer name contains it, so Carlos Alcaraz resolves although Carlos Alcaraz Gonzalez also exists. A name you did not type in full stays a fragment: Sinner still refuses, and lists Jannik and Martin. 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

GET /h2h — parameters
NameInTypeRequiredNotes
p1querystringyesFirst player name (fragment, min 3 chars).
p2querystringyesSecond player name (fragment, min 3 chars).

Responses

GET /h2h — responses
StatusMeaning
200The head-to-head record; empty totals when no player matches the names
400Bad query parameter
401Missing, unknown, or disabled credentials
403Your tier doesn't unlock this endpoint
429Rate 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

GET /h2h — response fields
FieldTypeDescription
playersobject or nullThe resolved names ({"p1":{"name"}, "p2":{"name"}}); null when no player matches the fragments.
totalsobject
totals.p1_winsinteger
totals.p2_winsinteger
totals.meetingsinteger
totals.undecidedintegerMeetings with no derivable winner (never counted in wins).
by_surfacemap of objectPer-surface win split of the decided meetings; keys are surface names plus 'unknown'.
by_surface.*.p1integer
by_surface.*.p2integer
meetingsarray of objectNewest 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.
meetings[].erastring (archive, current)
meetings[].datestring or null
meetings[].tournamentstring or null
meetings[].levelstring or null
meetings[].roundstring or null
meetings[].surfacestring or null
meetings[].scorestring or null
meetings[].outcomestring or null
meetings[].winnerinteger or null
statsobject or nullULTRA 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.
+

Response fields

GET /h2h — response fields
FieldTypeDescription
playersobject or nullThe resolved names ({"p1":{"name"}, "p2":{"name"}}); null when no player matches the fragments.
totalsobject
totals.p1_winsinteger
totals.p2_winsinteger
totals.meetingsinteger
totals.undecidedintegerMeetings with no derivable winner (never counted in wins).
by_surfacemap of objectPer-surface win split of the decided meetings; keys are surface names plus 'unknown'.
by_surface.*.p1integer
by_surface.*.p2integer
meetingsarray of objectNewest 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, is_qualifying and round_label (since 2026-11-30, as on the Match object) and read their score from the match endpoints. winner is 1|2 OF THIS H2H (p1/p2 as requested), null when underivable.
meetings[].erastring (archive, current)
meetings[].datestring or null
meetings[].tournamentstring or null
meetings[].levelstring or null
meetings[].roundstring or null
meetings[].is_qualifyingboolean or nullCurrent rows only (since 2026-11-30). As on the Match object.
meetings[].round_labelstring or nullCurrent rows only (since 2026-11-30). As on the Match object. The qualifying round in words, null unless is_qualifying is true.
meetings[].surfacestring or null
meetings[].scorestring or null
meetings[].outcomestring or null
meetings[].winnerinteger or null
statsobject or nullULTRA 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_..."
@@ -1097,7 +1101,7 @@

GET /history/packages

List the pre-built monthly bulk history packages (PRO)

Plan required: PRO · operationId: listHistoryPackages

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

GET /history/packages — parameters
NameInTypeRequiredNotes
kindquerystring (tape, rankings, rally, archive, elo, archive_tape)noPackage 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); archive_tape = the RECONSTRUCTED 2013–2022 point-by-point tape as YEARLY exports — ten periods, 2013 through 2022, each with a JSONL and a CSV file, all ready, needing ULTRA or a History Pro/Business subscription or an active one-off package window (a History Starter grant reads a tape per call and does not download years of them). 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.
yearquerystringnoYear archive listing — every published month of the year (History Business, a 1-year package, or ULTRA).
+

Parameters

GET /history/packages — parameters
NameInTypeRequiredNotes
kindquerystring (tape, rankings, rally, archive, elo, archive_tape)noPackage 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 as YEARLY exports (56 files, 1967–2022, 1,485,752 results, measured 2026-11-30), same entitlement as the tape packages; elo = the as-of Elo tape as YEARLY exports (ULTRA); archive_tape = the RECONSTRUCTED 2013–2022 point-by-point tape as YEARLY exports — ten periods, 2013 through 2022, each with a JSONL and a CSV file, all ready, needing ULTRA or a History Pro/Business subscription or an active one-off package window (a History Starter grant reads a tape per call and does not download years of them). 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. The 1967 archive file holds the 35 results of events that began in that year's last week. Default tape.
yearquerystringnoYear archive listing — every published month of the year (History Business, a 1-year package, or ULTRA).

Responses

GET /history/packages — responses
StatusMeaning
200Ready packages, newest period first
400Bad query parameter
401Missing, unknown, or disabled credentials
403Your tier doesn't unlock this endpoint
429Rate 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

GET /history/packages — response fields
FieldTypeDescription
dataarray of HistoryPackage
metaobject
meta.countinteger
meta.yearstringEchoed only when ?year= was supplied.

Example

curl https://api.livetennisapi.com/api/public/v1/history/packages \
@@ -1273,7 +1277,7 @@ 

Parameters

GET /broadcast/match/{matchId} — responses
StatusMeaning
200The broadcast object for this match
304Unchanged since the ETag you sent
401Missing, unknown, or disabled credentials
403Your tier doesn't unlock this endpoint
404No such resource, or no data yet
429Rate 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

GET /broadcast/match/{matchId} — response fields
FieldTypeDescription
match_idinteger
statusstringlive, completed, upcoming
event_statusstring or nullThe terminal badge where one is stated (Finished, Retired, Walk Over, Interrupted); null on a normal live row.
outcomestring or null
winnerinteger or null1 or 2, null until a result is established.
tourstring or null
tournamentstring or null
roundstring or null
surfacestring or null
best_ofinteger or null
is_doublesboolean
p1_idinteger or null
p1_namestring or null
p1_shortstring or nullDisplay short form, "J. Sinner". A doubles team keeps each side's last token.
p1_countrystring or nullThree-letter code.
p1_rankinginteger or null
p2_idinteger or null
p2_namestring or null
p2_shortstring or null
p2_countrystring or null
p2_rankinginteger or null
p1_setsinteger or null
p2_setsinteger or null
p1_gamesinteger or nullGames in the set in play.
p2_gamesinteger or null
p1_pointsstring or nullAs printed: "0", "15", "30", "40", "AD", or the tiebreak count.
p2_pointsstring or null
p1_set1integer or nullPer-set columns. A set not yet played is null on both sides.
p2_set1integer or null
p1_set2integer or null
p2_set2integer or null
p1_set3integer or null
p2_set3integer or null
p1_set4integer or null
p2_set4integer or null
p1_set5integer or null
p2_set5integer or null
set_linestring or nullThe completed and in-play sets as one string, "5-7 2-0".
current_setinteger or null
is_tiebreakboolean
match_tiebreakbooleanTrue while a deciding match tiebreak is in play.
serverinteger or null1 or 2.
p1_servingboolean or null
p2_servingboolean or null
break_point_forinteger or null1, 2 or null. Cue an animation on the transition to non-null.
set_point_forinteger or null
match_point_forinteger or null
p1_win_pctinteger or nullThe model probability as a whole percent. Null where no model figure was computed for this state — never guessed.
p2_win_pctinteger or null
sequenceinteger or nullThe per-match accept counter. THIS is how a poller detects a new state.
updated_atstring or null
age_secondsinteger or nullSeconds since the score CONTENT last changed.
staleboolean or nullA live match whose content has frozen past the threshold.
served_atstringWhen this response was built. Changes on every read — do not use it to detect a new state.
+

Response fields

GET /broadcast/match/{matchId} — response fields
FieldTypeDescription
match_idinteger
statusstringlive, completed, upcoming
event_statusstring or nullThe terminal badge where one is stated (Finished, Retired, Walk Over, Interrupted); null on a normal live row.
outcomestring or null
winnerinteger or null1 or 2, null until a result is established.
tourstring or null
tournamentstring or null
roundstring or null
surfacestring or null
best_ofinteger or null
is_doublesboolean
p1_idinteger or null
p1_namestring or null
p1_shortstring or nullDisplay short form, "J. Sinner". A doubles team keeps each side's last token.
p1_countrystring or nullThree-letter code.
p1_rankinginteger or null
p2_idinteger or null
p2_namestring or null
p2_shortstring or null
p2_countrystring or null
p2_rankinginteger or null
p1_setsinteger or null
p2_setsinteger or null
p1_gamesinteger or nullGames in the set in play.
p2_gamesinteger or null
p1_pointsstring or nullAs printed: "0", "15", "30", "40", "AD", or the tiebreak count.
p2_pointsstring or null
p1_set1integer or nullPer-set columns. A set not yet played is null on both sides.
p2_set1integer or null
p1_set2integer or null
p2_set2integer or null
p1_set3integer or null
p2_set3integer or null
p1_set4integer or null
p2_set4integer or null
p1_set5integer or null
p2_set5integer or null
set_linestring or nullThe completed and in-play sets as one string, "5-7 2-0".
current_setinteger or null
is_tiebreakboolean
match_tiebreakbooleanTrue while a deciding match tiebreak is in play.
serverinteger or null1 or 2.
p1_servingboolean or null
p2_servingboolean or null
break_point_forinteger or null1, 2 or null. Cue an animation on the transition to non-null.
set_point_forinteger or null
match_point_forinteger or null
p1_win_pctinteger or nullThe model probability as a whole percent. Null where no model figure was computed for this state — never guessed.
p2_win_pctinteger or null
sequenceinteger or nullThe per-match accept counter. THIS is how a poller detects a new state.
updated_atstring or null
age_secondsinteger or nullSeconds since the score CONTENT last changed.
staleboolean or nullA live match whose content has frozen past the threshold.
served_atstringWhen this response was built. Changes on every read — do not use it to detect a new state.
round_labelstring or nullAdded 2026-11-30. Match.round_label. On a qualifying match it is the round in words, and it is null on a main-draw match. Examples are Qualifying: final round, and Qualifying: round 3 of 3 (final round) at a Grand Slam. Bind this, not round, where a qualifying Final must not read as a final. It is the last field, so every earlier field keeps its position.

Example

curl https://api.livetennisapi.com/api/public/v1/broadcast/match/18953 \
   -H "Authorization: Bearer twjp_..."
@@ -1658,6 +1662,8 @@

PlayerRecentMatch

tournamentstring or null roundstring or null round_codestring or null +is_qualifyingboolean or nullAdded 2026-11-30. As on the Match object (three-valued). +round_labelstring or nullAdded 2026-11-30. As on the Match object. The qualifying round in words, null unless is_qualifying is true. surfacestring or null indoorboolean or null levelstring or null @@ -1805,11 +1811,16 @@

Match

formatstring or null (BO3, BO5, null) roundstring or nullThe free-text round label, verbatim, as published for the match. It is the round WITHIN the draw this match belongs to, and the draw is named by is_qualifying — NOT by this string. A qualifying draw has its own semi-final and its own final, so "Buenos Aires 3 - Semi-finals" with is_qualifying: true is the semi-final of the QUALIFYING draw, not of the tournament. Read the two fields together or not at all. The label also embeds the tournament name on most matches — parse the suffix after the last " - ", or better, use round_code. round_codestring 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 label does not number). It matches /history/archive/matches?round= exactly. Null when the label is unrecognised — never guessed. -IT IS DRAW-RELATIVE AND CANNOT, BY ITSELF, TELL YOU WHETHER A MATCH IS QUALIFYING. A qualifying semi-final carries SF, the same as a main-draw semi-final; only Q/Q1..Q4 appear when the label itself names the round as qualifying, which most labels do not. To branch on main draw vs qualifying, use round_code AND is_qualifying together. -is_qualifyingboolean or nullWhether this match belongs to the QUALIFYING draw, as the source states it — never GUESSED from main-draw round vocabulary or from the tournament name. (A round label that itself reads Qualification Round 1 states it, and reads true: a false beside such a round is a payload contradicting itself, not a main-draw assertion. Semi-finals and Final are main-draw vocabulary and are never read that way.) This is the only field that separates a qualifying draw from the main draw, and it is load-bearing because the two are routinely carried under ONE tournament name with ONE round vocabulary: a tournament will publish a dozen Semi-finals and several Final that are all qualifying, a week before the main draw begins. Neither tournament, tournament_id nor round_code can tell them apart. -THREE-VALUED, and null is NOT false. true/false are the source's own assertion; null means no source has ever stated it — every row written before the field existed, and rows whose only feed carries no equivalent field. Treat null as unknown and filter accordingly, exactly as with every other nullable field on this object. +IT IS DRAW-RELATIVE AND CANNOT, BY ITSELF, TELL YOU WHETHER A MATCH IS QUALIFYING. The qualifying draw is listed with the main draw's rounds. So the round before the last qualifying round carries SF with is_qualifying: true, the same code as a main-draw semi-final. Only Q/Q1..Q4 appear when the label itself names the round as qualifying, which most labels do not. These values stay within v1. Measured 2026-11-30 over 39,348 qualifying matches: SF 16,140, F 8,607, Q 4,912, R32 3,967, R64 2,933, QF 1,801, Q1 453, R16 418, Q2 66 and null 51. To branch on main draw vs qualifying, use round_code AND is_qualifying together. Read round_label for the qualifying round in words. +round_labelstring or nullAdded 2026-11-30. On a QUALIFYING row (is_qualifying: true), the round in words that cannot be read as a main-draw round. The qualifying draw is listed with the main draw's labels, which count back from the round whose winners qualify. 'Final' is the last qualifying round, and 'Semi-finals' is the round before it. So round "US Open - Final" with round_code F and is_qualifying: true is the third and last qualifying round of the US Open. It reads "Qualifying: round 3 of 3 (final round)" here. + +There are three forms. "Qualifying: round N of 3", plus " (final round)" for N = 3, is for Grand Slam singles qualifying. That is the one draw whose three-round shape the per-draw match counts prove (all 32 such draws of 2023-2026). "Qualifying: <round>" is for any other qualifying row whose label names a round (final round, semi-final round, quarter-final round, round of 32, round 2). "Qualifying" is for a label that names no round we can read. A non-Slam round is never numbered. + +Null on every row whose is_qualifying is not true. round and round_code are unchanged. Display round_label when it is set and round otherwise. +is_qualifyingboolean or nullWhether this match belongs to the QUALIFYING draw, as the source states it — never GUESSED from main-draw round vocabulary or from the tournament name. (A round label that itself reads Qualification Round 1 states it, and reads true: a false beside such a round is a payload contradicting itself, not a main-draw assertion. Semi-finals and Final are main-draw vocabulary and are never read that way.) This is the only field that separates a qualifying draw from the main draw, and it is load-bearing because the two are routinely carried under ONE tournament name with ONE round vocabulary: a tournament will publish a dozen Semi-finals and several Final that are all qualifying, a week before the main draw begins. Neither tournament, tournament_id nor round_code can tell them apart. round_label states the qualifying round in words. +THREE-VALUED, and null is NOT false. true/false are the source's own assertion. null means it was never stated for this row. Measured 2026-11-30 over completed matches, for 2023-2025 the flag is stated on every row except 262 ATP matches (0.2% of 135,671). Every ITF row of those years reads false, because only the ITF main draw was held then. In 2026, 8,956 of 88,371 completed rows read null. Most are 7,461 UTR matches, whose record carries no such flag. The rest are doubles, rows with no stated or only an inferred event type, and 423 singles rows. Until 2026-11-30 this said null marked every row written before the field existed, which was wrong for 2023-2025. Treat null as unknown and filter accordingly, exactly as with every other nullable field on this object. statusstring (upcoming, live, completed, cancelled)The settled lifecycle. completed is asserted only for a match we observed being played or whose match-winner market settled decisively (one side paid out) — a closed market alone never finishes a match (rule stated 2026-08-23; rows mis-published before it were corrected). cancelled with event_status: null means we hold positive evidence the match was not played as scheduled (the market settled void) but no stated reason why — outcome and the fixture reason stay null rather than guessed, and the row upgrades to a completed walkover with winner / withdrew if a Walk Over with a stated winner lands later. The flip upcoming → cancelled runs through a gate (well past the scheduled time, no play recorded), never inline on a momentary status flap. -event_statusstring or null (Finished, Retired, Cancelled, Walk Over, Postponed, Interrupted, Unresolved, null)The stated designator for the match state, published verbatim. Finished is by far the most common value — 144,266 of the 150,678 rows carrying one at 2026-09-18 — and until this version it was missing from this enum, so a strictly-validating generated client rejected the majority of completed matches. It is listed now, with Unresolved (every source lost the match before a result; see outcome). The rest name a match that 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 does NOT mean "completed normally": it means nothing was ever stated for this match, which covers matches that ran their course and matches nothing was ever said about alike. event_status: Finished while status is still live is not a contradiction — one source has called the match over and we have not yet confirmed the final, so the score may stand still until we do (stale goes true, age_seconds climbs). Measured over the seven days to 2026-09-18, across 649 matches, that gap closed in 111 s at the median and 911 s at the ninetieth percentile; 85 ran past ten minutes. 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_statusstring or null (Finished, Retired, Cancelled, Walk Over, Postponed, Interrupted, Unresolved, Defaulted, Awarded, null)The stated designator for the match state, published verbatim. Every value served, with its count over all matches on 2026-11-30: Finished 179,350, Retired 6,694, Walk Over 937, Unresolved 933, Cancelled 828, Interrupted 5, Defaulted 4 and Awarded 4. Defaulted means a player was defaulted, with outcome default. Awarded is the record's own word for a default, on four ATP rows of 2023-2024, also with outcome default. Postponed had none at that date. It is passed through when a record states it. Defaulted and Awarded were missing from this enum until 2026-11-30, so a strictly-validating generated client rejected those rows. Finished was itself missing from this enum until 2026-09-18, so a strictly-validating generated client rejected the majority of completed matches. It is listed now, with Unresolved (every source lost the match before a result; see outcome). The rest name a match that 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 does NOT mean "completed normally": it means nothing was ever stated for this match, which covers matches that ran their course and matches nothing was ever said about alike. event_status: Finished while status is still live is not a contradiction — one source has called the match over and we have not yet confirmed the final, so the score may stand still until we do (stale goes true, age_seconds climbs). Measured over the seven days to 2026-09-18, across 649 matches, that gap closed in 111 s at the median and 911 s at the ninetieth percentile; 85 ran past ten minutes. 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_atstring or nullWhen 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 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_doublesbooleanDoubles match — kept for compatibility, and LOSSY. Evidence order: a doubles-team participant proves true regardless of the event type; otherwise the stated 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. drawstring 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 stated event type decides. Null means neither says anything — no event type is stated, 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. @@ -1842,11 +1853,16 @@

MatchDetail

formatstring or null (BO3, BO5, null) roundstring or nullThe free-text round label, verbatim, as published for the match. It is the round WITHIN the draw this match belongs to, and the draw is named by is_qualifying — NOT by this string. A qualifying draw has its own semi-final and its own final, so "Buenos Aires 3 - Semi-finals" with is_qualifying: true is the semi-final of the QUALIFYING draw, not of the tournament. Read the two fields together or not at all. The label also embeds the tournament name on most matches — parse the suffix after the last " - ", or better, use round_code. round_codestring 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 label does not number). It matches /history/archive/matches?round= exactly. Null when the label is unrecognised — never guessed. -IT IS DRAW-RELATIVE AND CANNOT, BY ITSELF, TELL YOU WHETHER A MATCH IS QUALIFYING. A qualifying semi-final carries SF, the same as a main-draw semi-final; only Q/Q1..Q4 appear when the label itself names the round as qualifying, which most labels do not. To branch on main draw vs qualifying, use round_code AND is_qualifying together. -is_qualifyingboolean or nullWhether this match belongs to the QUALIFYING draw, as the source states it — never GUESSED from main-draw round vocabulary or from the tournament name. (A round label that itself reads Qualification Round 1 states it, and reads true: a false beside such a round is a payload contradicting itself, not a main-draw assertion. Semi-finals and Final are main-draw vocabulary and are never read that way.) This is the only field that separates a qualifying draw from the main draw, and it is load-bearing because the two are routinely carried under ONE tournament name with ONE round vocabulary: a tournament will publish a dozen Semi-finals and several Final that are all qualifying, a week before the main draw begins. Neither tournament, tournament_id nor round_code can tell them apart. -THREE-VALUED, and null is NOT false. true/false are the source's own assertion; null means no source has ever stated it — every row written before the field existed, and rows whose only feed carries no equivalent field. Treat null as unknown and filter accordingly, exactly as with every other nullable field on this object. +IT IS DRAW-RELATIVE AND CANNOT, BY ITSELF, TELL YOU WHETHER A MATCH IS QUALIFYING. The qualifying draw is listed with the main draw's rounds. So the round before the last qualifying round carries SF with is_qualifying: true, the same code as a main-draw semi-final. Only Q/Q1..Q4 appear when the label itself names the round as qualifying, which most labels do not. These values stay within v1. Measured 2026-11-30 over 39,348 qualifying matches: SF 16,140, F 8,607, Q 4,912, R32 3,967, R64 2,933, QF 1,801, Q1 453, R16 418, Q2 66 and null 51. To branch on main draw vs qualifying, use round_code AND is_qualifying together. Read round_label for the qualifying round in words. +round_labelstring or nullAdded 2026-11-30. On a QUALIFYING row (is_qualifying: true), the round in words that cannot be read as a main-draw round. The qualifying draw is listed with the main draw's labels, which count back from the round whose winners qualify. 'Final' is the last qualifying round, and 'Semi-finals' is the round before it. So round "US Open - Final" with round_code F and is_qualifying: true is the third and last qualifying round of the US Open. It reads "Qualifying: round 3 of 3 (final round)" here. + +There are three forms. "Qualifying: round N of 3", plus " (final round)" for N = 3, is for Grand Slam singles qualifying. That is the one draw whose three-round shape the per-draw match counts prove (all 32 such draws of 2023-2026). "Qualifying: <round>" is for any other qualifying row whose label names a round (final round, semi-final round, quarter-final round, round of 32, round 2). "Qualifying" is for a label that names no round we can read. A non-Slam round is never numbered. + +Null on every row whose is_qualifying is not true. round and round_code are unchanged. Display round_label when it is set and round otherwise. +is_qualifyingboolean or nullWhether this match belongs to the QUALIFYING draw, as the source states it — never GUESSED from main-draw round vocabulary or from the tournament name. (A round label that itself reads Qualification Round 1 states it, and reads true: a false beside such a round is a payload contradicting itself, not a main-draw assertion. Semi-finals and Final are main-draw vocabulary and are never read that way.) This is the only field that separates a qualifying draw from the main draw, and it is load-bearing because the two are routinely carried under ONE tournament name with ONE round vocabulary: a tournament will publish a dozen Semi-finals and several Final that are all qualifying, a week before the main draw begins. Neither tournament, tournament_id nor round_code can tell them apart. round_label states the qualifying round in words. +THREE-VALUED, and null is NOT false. true/false are the source's own assertion. null means it was never stated for this row. Measured 2026-11-30 over completed matches, for 2023-2025 the flag is stated on every row except 262 ATP matches (0.2% of 135,671). Every ITF row of those years reads false, because only the ITF main draw was held then. In 2026, 8,956 of 88,371 completed rows read null. Most are 7,461 UTR matches, whose record carries no such flag. The rest are doubles, rows with no stated or only an inferred event type, and 423 singles rows. Until 2026-11-30 this said null marked every row written before the field existed, which was wrong for 2023-2025. Treat null as unknown and filter accordingly, exactly as with every other nullable field on this object. statusstring (upcoming, live, completed, cancelled)The settled lifecycle. completed is asserted only for a match we observed being played or whose match-winner market settled decisively (one side paid out) — a closed market alone never finishes a match (rule stated 2026-08-23; rows mis-published before it were corrected). cancelled with event_status: null means we hold positive evidence the match was not played as scheduled (the market settled void) but no stated reason why — outcome and the fixture reason stay null rather than guessed, and the row upgrades to a completed walkover with winner / withdrew if a Walk Over with a stated winner lands later. The flip upcoming → cancelled runs through a gate (well past the scheduled time, no play recorded), never inline on a momentary status flap. -event_statusstring or null (Finished, Retired, Cancelled, Walk Over, Postponed, Interrupted, Unresolved, null)The stated designator for the match state, published verbatim. Finished is by far the most common value — 144,266 of the 150,678 rows carrying one at 2026-09-18 — and until this version it was missing from this enum, so a strictly-validating generated client rejected the majority of completed matches. It is listed now, with Unresolved (every source lost the match before a result; see outcome). The rest name a match that 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 does NOT mean "completed normally": it means nothing was ever stated for this match, which covers matches that ran their course and matches nothing was ever said about alike. event_status: Finished while status is still live is not a contradiction — one source has called the match over and we have not yet confirmed the final, so the score may stand still until we do (stale goes true, age_seconds climbs). Measured over the seven days to 2026-09-18, across 649 matches, that gap closed in 111 s at the median and 911 s at the ninetieth percentile; 85 ran past ten minutes. 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_statusstring or null (Finished, Retired, Cancelled, Walk Over, Postponed, Interrupted, Unresolved, Defaulted, Awarded, null)The stated designator for the match state, published verbatim. Every value served, with its count over all matches on 2026-11-30: Finished 179,350, Retired 6,694, Walk Over 937, Unresolved 933, Cancelled 828, Interrupted 5, Defaulted 4 and Awarded 4. Defaulted means a player was defaulted, with outcome default. Awarded is the record's own word for a default, on four ATP rows of 2023-2024, also with outcome default. Postponed had none at that date. It is passed through when a record states it. Defaulted and Awarded were missing from this enum until 2026-11-30, so a strictly-validating generated client rejected those rows. Finished was itself missing from this enum until 2026-09-18, so a strictly-validating generated client rejected the majority of completed matches. It is listed now, with Unresolved (every source lost the match before a result; see outcome). The rest name a match that 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 does NOT mean "completed normally": it means nothing was ever stated for this match, which covers matches that ran their course and matches nothing was ever said about alike. event_status: Finished while status is still live is not a contradiction — one source has called the match over and we have not yet confirmed the final, so the score may stand still until we do (stale goes true, age_seconds climbs). Measured over the seven days to 2026-09-18, across 649 matches, that gap closed in 111 s at the median and 911 s at the ninetieth percentile; 85 ran past ten minutes. 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_atstring or nullWhen 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 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_doublesbooleanDoubles match — kept for compatibility, and LOSSY. Evidence order: a doubles-team participant proves true regardless of the event type; otherwise the stated 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. drawstring 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 stated event type decides. Null means neither says anything — no event type is stated, 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. @@ -2041,7 +2057,8 @@

BroadcastObject

updated_atstring or null age_secondsinteger or nullSeconds since the score CONTENT last changed. staleboolean or nullA live match whose content has frozen past the threshold. -served_atstringWhen this response was built. Changes on every read — do not use it to detect a new state.
+served_atstringWhen this response was built. Changes on every read — do not use it to detect a new state. +round_labelstring or nullAdded 2026-11-30. Match.round_label. On a qualifying match it is the round in words, and it is null on a main-draw match. Examples are Qualifying: final round, and Qualifying: round 3 of 3 (final round) at a Grand Slam. Bind this, not round, where a qualifying Final must not read as a final. It is the last field, so every earlier field keeps its position.

ScoreWithdrawal

@@ -2090,6 +2107,7 @@

Fixture

match_idinteger or nullThe id of the match this fixture became, which every match route accepts. Null while no match row exists yet (a fixture can publish days before its match) and when the schedule entry names more than one match. Set when found and never cleared. genderstring or null (men, women, null)The sex of the event (2026-09-09), in the vocabulary of the gender filter. Null for mixed doubles and mixed team events. is_qualifyingboolean or nullWhether the fixture is in the qualifying draw, as the schedule states it. Same three values as Match.is_qualifying: null means never stated, and null is not false. A null here takes the bound match's value when the match states one. The qualifying draw is published under the main draw's tournament name, so group a schedule on round_code and this flag together. +round_labelstring or nullAdded 2026-11-30. Same field as Match.round_label. On a qualifying fixture it is the round in words ("Qualifying: final round"), null unless is_qualifying is true. It is always the unnumbered form here, because a fixture carries no season tier. created_atstring or nullWhen this row first existed with us, UTC (2026-09-23). A created_at inside your polling window is a new row. A moved updated_at with created_at unchanged is a change to a row you already hold, such as a re-listed start time. updated_atstring or nullWhen this row last changed, UTC. It moves when any stored column changes, including columns this API does not publish, so it can report a change you cannot see. It never misses a change to a field you can see. pregame_forecastsarray of objectULTRA only (2026-09-24). The field is absent below ULTRA. The bound match's stage: pregame forecasts, oldest first, each in the Analysis.profile shape. [] when the fixture has no match_id yet or no forecast has been written. @@ -2229,11 +2247,16 @@

HistoryMatch

formatstring or null (BO3, BO5, null) roundstring or nullThe free-text round label, verbatim, as published for the match. It is the round WITHIN the draw this match belongs to, and the draw is named by is_qualifying — NOT by this string. A qualifying draw has its own semi-final and its own final, so "Buenos Aires 3 - Semi-finals" with is_qualifying: true is the semi-final of the QUALIFYING draw, not of the tournament. Read the two fields together or not at all. The label also embeds the tournament name on most matches — parse the suffix after the last " - ", or better, use round_code. round_codestring 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 label does not number). It matches /history/archive/matches?round= exactly. Null when the label is unrecognised — never guessed. -IT IS DRAW-RELATIVE AND CANNOT, BY ITSELF, TELL YOU WHETHER A MATCH IS QUALIFYING. A qualifying semi-final carries SF, the same as a main-draw semi-final; only Q/Q1..Q4 appear when the label itself names the round as qualifying, which most labels do not. To branch on main draw vs qualifying, use round_code AND is_qualifying together. -is_qualifyingboolean or nullWhether this match belongs to the QUALIFYING draw, as the source states it — never GUESSED from main-draw round vocabulary or from the tournament name. (A round label that itself reads Qualification Round 1 states it, and reads true: a false beside such a round is a payload contradicting itself, not a main-draw assertion. Semi-finals and Final are main-draw vocabulary and are never read that way.) This is the only field that separates a qualifying draw from the main draw, and it is load-bearing because the two are routinely carried under ONE tournament name with ONE round vocabulary: a tournament will publish a dozen Semi-finals and several Final that are all qualifying, a week before the main draw begins. Neither tournament, tournament_id nor round_code can tell them apart. -THREE-VALUED, and null is NOT false. true/false are the source's own assertion; null means no source has ever stated it — every row written before the field existed, and rows whose only feed carries no equivalent field. Treat null as unknown and filter accordingly, exactly as with every other nullable field on this object. +IT IS DRAW-RELATIVE AND CANNOT, BY ITSELF, TELL YOU WHETHER A MATCH IS QUALIFYING. The qualifying draw is listed with the main draw's rounds. So the round before the last qualifying round carries SF with is_qualifying: true, the same code as a main-draw semi-final. Only Q/Q1..Q4 appear when the label itself names the round as qualifying, which most labels do not. These values stay within v1. Measured 2026-11-30 over 39,348 qualifying matches: SF 16,140, F 8,607, Q 4,912, R32 3,967, R64 2,933, QF 1,801, Q1 453, R16 418, Q2 66 and null 51. To branch on main draw vs qualifying, use round_code AND is_qualifying together. Read round_label for the qualifying round in words. +round_labelstring or nullAdded 2026-11-30. On a QUALIFYING row (is_qualifying: true), the round in words that cannot be read as a main-draw round. The qualifying draw is listed with the main draw's labels, which count back from the round whose winners qualify. 'Final' is the last qualifying round, and 'Semi-finals' is the round before it. So round "US Open - Final" with round_code F and is_qualifying: true is the third and last qualifying round of the US Open. It reads "Qualifying: round 3 of 3 (final round)" here. + +There are three forms. "Qualifying: round N of 3", plus " (final round)" for N = 3, is for Grand Slam singles qualifying. That is the one draw whose three-round shape the per-draw match counts prove (all 32 such draws of 2023-2026). "Qualifying: <round>" is for any other qualifying row whose label names a round (final round, semi-final round, quarter-final round, round of 32, round 2). "Qualifying" is for a label that names no round we can read. A non-Slam round is never numbered. + +Null on every row whose is_qualifying is not true. round and round_code are unchanged. Display round_label when it is set and round otherwise. +is_qualifyingboolean or nullWhether this match belongs to the QUALIFYING draw, as the source states it — never GUESSED from main-draw round vocabulary or from the tournament name. (A round label that itself reads Qualification Round 1 states it, and reads true: a false beside such a round is a payload contradicting itself, not a main-draw assertion. Semi-finals and Final are main-draw vocabulary and are never read that way.) This is the only field that separates a qualifying draw from the main draw, and it is load-bearing because the two are routinely carried under ONE tournament name with ONE round vocabulary: a tournament will publish a dozen Semi-finals and several Final that are all qualifying, a week before the main draw begins. Neither tournament, tournament_id nor round_code can tell them apart. round_label states the qualifying round in words. +THREE-VALUED, and null is NOT false. true/false are the source's own assertion. null means it was never stated for this row. Measured 2026-11-30 over completed matches, for 2023-2025 the flag is stated on every row except 262 ATP matches (0.2% of 135,671). Every ITF row of those years reads false, because only the ITF main draw was held then. In 2026, 8,956 of 88,371 completed rows read null. Most are 7,461 UTR matches, whose record carries no such flag. The rest are doubles, rows with no stated or only an inferred event type, and 423 singles rows. Until 2026-11-30 this said null marked every row written before the field existed, which was wrong for 2023-2025. Treat null as unknown and filter accordingly, exactly as with every other nullable field on this object. statusstring (upcoming, live, completed, cancelled)The settled lifecycle. completed is asserted only for a match we observed being played or whose match-winner market settled decisively (one side paid out) — a closed market alone never finishes a match (rule stated 2026-08-23; rows mis-published before it were corrected). cancelled with event_status: null means we hold positive evidence the match was not played as scheduled (the market settled void) but no stated reason why — outcome and the fixture reason stay null rather than guessed, and the row upgrades to a completed walkover with winner / withdrew if a Walk Over with a stated winner lands later. The flip upcoming → cancelled runs through a gate (well past the scheduled time, no play recorded), never inline on a momentary status flap. -event_statusstring or null (Finished, Retired, Cancelled, Walk Over, Postponed, Interrupted, Unresolved, null)The stated designator for the match state, published verbatim. Finished is by far the most common value — 144,266 of the 150,678 rows carrying one at 2026-09-18 — and until this version it was missing from this enum, so a strictly-validating generated client rejected the majority of completed matches. It is listed now, with Unresolved (every source lost the match before a result; see outcome). The rest name a match that 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 does NOT mean "completed normally": it means nothing was ever stated for this match, which covers matches that ran their course and matches nothing was ever said about alike. event_status: Finished while status is still live is not a contradiction — one source has called the match over and we have not yet confirmed the final, so the score may stand still until we do (stale goes true, age_seconds climbs). Measured over the seven days to 2026-09-18, across 649 matches, that gap closed in 111 s at the median and 911 s at the ninetieth percentile; 85 ran past ten minutes. 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_statusstring or null (Finished, Retired, Cancelled, Walk Over, Postponed, Interrupted, Unresolved, Defaulted, Awarded, null)The stated designator for the match state, published verbatim. Every value served, with its count over all matches on 2026-11-30: Finished 179,350, Retired 6,694, Walk Over 937, Unresolved 933, Cancelled 828, Interrupted 5, Defaulted 4 and Awarded 4. Defaulted means a player was defaulted, with outcome default. Awarded is the record's own word for a default, on four ATP rows of 2023-2024, also with outcome default. Postponed had none at that date. It is passed through when a record states it. Defaulted and Awarded were missing from this enum until 2026-11-30, so a strictly-validating generated client rejected those rows. Finished was itself missing from this enum until 2026-09-18, so a strictly-validating generated client rejected the majority of completed matches. It is listed now, with Unresolved (every source lost the match before a result; see outcome). The rest name a match that 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 does NOT mean "completed normally": it means nothing was ever stated for this match, which covers matches that ran their course and matches nothing was ever said about alike. event_status: Finished while status is still live is not a contradiction — one source has called the match over and we have not yet confirmed the final, so the score may stand still until we do (stale goes true, age_seconds climbs). Measured over the seven days to 2026-09-18, across 649 matches, that gap closed in 111 s at the median and 911 s at the ninetieth percentile; 85 ran past ten minutes. 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_atstring or nullWhen 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 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_doublesbooleanDoubles match — kept for compatibility, and LOSSY. Evidence order: a doubles-team participant proves true regardless of the event type; otherwise the stated 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. drawstring 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 stated event type decides. Null means neither says anything — no event type is stated, 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. @@ -2292,7 +2315,7 @@

MatchStatisticsSide

measuredMatchStatisticsMeasuredMeasured counting statistics for one player. These are COUNTED during the match, 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 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. ITF singles carry no first-serve-in figure and no first-serve or second-serve points won. Over the 30 days to 2026-11-30, 0 of 4,328 ITF singles payloads carried them. TIER 3 — the winners / unforced-errors / forced-errors family, in total and by shot type. Present where the statistics source counts it: the 2026 Grand Slam main draws (Wimbledon and the US Open near complete; the Australian Open and Roland Garros filling as the completed-match statistics fetch walks back) and the odd regular-tour match (two at Basel 2026). On NONE of Challenger, ITF or juniors, and on almost no regular-tour match since 2026-07-12. Nothing is promised for a future event: the family appears when the source states it. A family the source filled with zeros is withheld (2026-10-29): a side that won 20 points or more with every by-shot winner and error at 0 is not measured, and the whole family is omitted, totals included. 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 as a rounded figure. service_games_playedinteger @@ -2321,7 +2344,7 @@

MatchStatisticsMeasured

Measured counting statistics for one player. These are COUNTED during the match, 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 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. ITF singles carry no first-serve-in figure and no first-serve or second-serve points won. Over the 30 days to 2026-11-30, 0 of 4,328 ITF singles payloads carried them. TIER 3 — the winners / unforced-errors / forced-errors family, in total and by shot type. Present where the statistics source counts it: the 2026 Grand Slam main draws (Wimbledon and the US Open near complete; the Australian Open and Roland Garros filling as the completed-match statistics fetch walks back) and the odd regular-tour match (two at Basel 2026). On NONE of Challenger, ITF or juniors, and on almost no regular-tour match since 2026-07-12. Nothing is promised for a future event: the family appears when the source states it. A family the source filled with zeros is withheld (2026-10-29): a side that won 20 points or more with every by-shot winner and error at 0 is not measured, and the whole family is omitted, totals included. 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 as a rounded figure.

@@ -2413,7 +2436,7 @@

MatchStatistics

- + @@ -2718,12 +2741,14 @@

HeadToHead

- + + + diff --git a/docs/shot-level-rally-data.html b/docs/shot-level-rally-data.html index 3abc251..49ae832 100644 --- a/docs/shot-level-rally-data.html +++ b/docs/shot-level-rally-data.html @@ -202,7 +202,7 @@
Live Tennis API DocsGet a free key
Explore the documentation
-

Live Tennis API · docs · version 1.13.94

+

Live Tennis API · docs · version 1.13.95

Shot-by-shot tennis rally and charting API

Is there tennis data below the point — shot by shot? Yes, for charted matches. GET /rally/matches lists them and /rally/matches/{rallyMatchId} returns the rally construction; GET /history/matches/{matchId}/rally reaches the same data by our own match id so a live match and its charting share one identifier. GET /charting/players aggregates a player's career at shot level and /charting/matches/{chartingMatchId} returns every stat family for both players in one charted match. All ULTRA.

5 endpoints on this page. Base URL diff --git a/docs/sitemap.xml b/docs/sitemap.xml index da86f4e..b27dd51 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -16,6 +16,6 @@ https://docs.livetennisapi.com/export-formats.html2026-11-11weekly0.8 https://docs.livetennisapi.com/client-libraries.html2026-11-25weekly0.8 https://docs.livetennisapi.com/sportsml.html2026-11-15weekly0.8 - https://docs.livetennisapi.com/tennis-data-vocabulary.html2026-11-26weekly0.8 - https://docs.livetennisapi.com/changelog.html2026-11-29weekly0.6 + https://docs.livetennisapi.com/tennis-data-vocabulary.html2026-11-30weekly0.8 + https://docs.livetennisapi.com/changelog.html2026-11-30weekly0.6 diff --git a/docs/tennis-data-vocabulary.html b/docs/tennis-data-vocabulary.html index cbe6fe6..ed634a5 100644 --- a/docs/tennis-data-vocabulary.html +++ b/docs/tennis-data-vocabulary.html @@ -15,7 +15,7 @@ @@ -206,7 +206,7 @@

Live Tennis API · docs · guide

Tennis data vocabulary: tiers, rounds, surfaces and results

What does each tennis data code mean? This page lists the closed codes the API returns for tournaments, rounds, surfaces, results, rankings and charted shots, with what each one means. It is built from the OpenAPI spec, so each list holds exactly the codes its field can carry.

-

Meanings checked against the spec on . Machine-readable copy: tennis-data-vocabulary.json, MIT licensed, like the spec.

+

Meanings checked against the spec on . Machine-readable copy: tennis-data-vocabulary.json, MIT licensed, like the spec.

MatchStatisticsMeasured schema — fields
FieldTypeDescription
as_ofstring or nullWhen the underlying record was last updated (UTC)
age_secondsinteger or nullBehind the newest SCORE row, not the wall clock
games_countedinteger
tiebreak_games_excludedintegerTiebreaks are excluded — the live record collapses a whole tiebreak onto one entry
tiebreak_games_excludedintegerTiebreaks are excluded. This is a count of excluded tiebreak ENTRIES, not of tiebreaks: one per tiebreak point the record holds, plus the set's closing 7-6 entry. One 7-4 breaker reads 12 (11 points and the closing entry) beside games_counted 19, on match 98655.
inconsistent_games_excludedintegerGames whose recorded outcome is neither a legal hold nor a legal break
sets_coveredarray of integer
freshnessMatchStatisticsFreshnessPer-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.
by_surfacemap of objectPer-surface win split of the decided meetings; keys are surface names plus 'unknown'.
by_surface.*.p1integer
by_surface.*.p2integer
meetingsarray of objectNewest 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.
meetingsarray of objectNewest 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, is_qualifying and round_label (since 2026-11-30, as on the Match object) and read their score from the match endpoints. winner is 1|2 OF THIS H2H (p1/p2 as requested), null when underivable.
meetings[].erastring (archive, current)
meetings[].datestring or null
meetings[].tournamentstring or null
meetings[].levelstring or null
meetings[].roundstring or null
meetings[].is_qualifyingboolean or nullCurrent rows only (since 2026-11-30). As on the Match object.
meetings[].round_labelstring or nullCurrent rows only (since 2026-11-30). As on the Match object. The qualifying round in words, null unless is_qualifying is true.
meetings[].surfacestring or null
meetings[].scorestring or null
meetings[].outcomestring or null
Tour codes
CodeMeaning
atpATP Tour
wtaWTA Tour
challengerATP Challenger Tour
itfITF World Tennis Tour
juniorsJunior events

Round code

-

The round in one controlled vocabulary, shared by live matches and the results archive. It is relative to the draw: a qualifying semi-final also reads SF, so read it together with is_qualifying. Null when the round label is not recognised. Q appears on matches only: the archive's round filter does not accept it.

+

The round in one controlled vocabulary, shared by live matches and the results archive. It is relative to the draw: the round before the last qualifying round also reads SF, so read it together with is_qualifying, or read round_label for the qualifying round in words. Null when the round label is not recognised. Q appears on matches only: the archive's round filter does not accept it.

Appears in Match.round_code, Fixture.round_code, GET /history/archive/matches?round=.

Round code codes
CodeMeaning
FFinal
SFSemi-final
QFQuarter-final
R16Round of 16
R32Round of 32
R64Round of 64
R128Round of 128
RRRound robin
BRThird-place or bronze-medal match
QQualifying round that the label does not number
Q1First qualifying round
Q2Second qualifying round
Q3Third qualifying round
Q4Fourth qualifying round
ERUnnumbered round

Archive level

@@ -263,7 +263,7 @@

Match outcome

Event status

The stated match state, published as written. Null means nothing was stated, not that the match finished normally.

Appears in Match.event_status.

-
Event status codes
CodeMeaning
FinishedStated as finished
RetiredEnded by a retirement
CancelledStated as cancelled
Walk OverWalkover
PostponedStated as postponed
InterruptedSuspended in play, for example rain, darkness or a medical stop
UnresolvedClosed before a result could be confirmed
+
Event status codes
CodeMeaning
FinishedStated as finished
RetiredEnded by a retirement
CancelledStated as cancelled
Walk OverWalkover
PostponedStated as postponed
InterruptedSuspended in play, for example rain, darkness or a medical stop
UnresolvedClosed before a result could be confirmed
DefaultedA player was defaulted
AwardedThe record's own word for a default

Fixture status

Where a scheduled fixture stands. On a fixture bound to a match it is the match's status in this vocabulary. A walkover, a retirement, a default and a plain cancellation all read cancelled, and the fixture reason says which.

Appears in Fixture.status.

diff --git a/docs/tennis-data-vocabulary.json b/docs/tennis-data-vocabulary.json index 44c5051..80a9593 100644 --- a/docs/tennis-data-vocabulary.json +++ b/docs/tennis-data-vocabulary.json @@ -3,7 +3,7 @@ "description": "The closed codes the Live Tennis API returns for tournaments, rounds, surfaces, results, rankings and charted shots, with their meanings.", "url": "https://docs.livetennisapi.com/tennis-data-vocabulary.json", "page": "https://docs.livetennisapi.com/tennis-data-vocabulary.html", - "spec_version": "1.13.94", + "spec_version": "1.13.95", "license": "MIT, https://github.com/livetennisapi/openapi/blob/main/LICENSE", "attribution": "Live Tennis API, https://livetennisapi.com", "vocabularies": [ @@ -314,7 +314,7 @@ "Fixture.round_code", "GET /history/archive/matches?round=" ], - "about": "The round in one controlled vocabulary, shared by live matches and the results archive. It is relative to the draw: a qualifying semi-final also reads SF, so read it together with is_qualifying. Null when the round label is not recognised. Q appears on matches only: the archive's round filter does not accept it.", + "about": "The round in one controlled vocabulary, shared by live matches and the results archive. It is relative to the draw: the round before the last qualifying round also reads SF, so read it together with is_qualifying, or read round_label for the qualifying round in words. Null when the round label is not recognised. Q appears on matches only: the archive's round filter does not accept it.", "values": [ { "code": "F", @@ -618,6 +618,16 @@ "code": "Unresolved", "meaning": "Closed before a result could be confirmed", "url": "https://docs.livetennisapi.com/tennis-data-vocabulary.html#event-status-unresolved" + }, + { + "code": "Defaulted", + "meaning": "A player was defaulted", + "url": "https://docs.livetennisapi.com/tennis-data-vocabulary.html#event-status-defaulted" + }, + { + "code": "Awarded", + "meaning": "The record's own word for a default", + "url": "https://docs.livetennisapi.com/tennis-data-vocabulary.html#event-status-awarded" } ] }, diff --git a/docs/tennis-odds.html b/docs/tennis-odds.html index bbbe578..25f2fac 100644 --- a/docs/tennis-odds.html +++ b/docs/tennis-odds.html @@ -202,7 +202,7 @@
Live Tennis API DocsGet a free key
Explore the documentation
-

Live Tennis API · docs · version 1.13.94

+

Live Tennis API · docs · version 1.13.95

Tennis odds API — markets and price ticks

How do you read tennis match-winner odds and their price history? GET /markets returns the match-winner market for a match and GET /markets/{matchId}/prices the recent price ticks per side, newest first; GET /matches/{matchId}/prices is the same ticks addressed by match id. All three are PRO. Every tick carries its own timestamp, so a series can be reconstructed rather than inferred from poll times.

3 endpoints on this page. Base URL diff --git a/openapi.yaml b/openapi.yaml index de350a4..1127996 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1,7 +1,7 @@ openapi: 3.1.0 info: title: Live Tennis API - version: "1.13.94" + version: "1.13.95" contact: name: Live Tennis API url: https://livetennisapi.com @@ -3542,7 +3542,7 @@ paths: "429": { $ref: "#/components/responses/RateLimited" } /history/archive/matches: get: - summary: Results archive (1968–2022) — deep historical results (BASIC) + summary: Results archive (1967–2022) — deep historical results (BASIC) description: >- Completed-match RESULTS from a licensed historical corpus — ATP and WTA main draws, qualifying/challengers and futures tiers, 1968 through @@ -4532,7 +4532,8 @@ paths: 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, + `archive` = the results archive as YEARLY exports (56 files, + 1967–2022, 1,485,752 results, measured 2026-11-30), same entitlement as the tape packages; `elo` = the as-of Elo tape as YEARLY exports (ULTRA); `archive_tape` = the RECONSTRUCTED 2013–2022 point-by-point tape as YEARLY exports — ten periods, 2013 @@ -4543,7 +4544,9 @@ paths: download years of them). 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. + client never sees a new kind of row appear. The 1967 `archive` + file holds the 35 results of events that began in that year's + last week. - name: year in: query required: false @@ -7759,6 +7762,14 @@ components: type: [string, 'null'] round_code: type: [string, 'null'] + is_qualifying: + type: [boolean, 'null'] + description: Added 2026-11-30. As on the Match object (three-valued). + round_label: + type: [string, 'null'] + description: >- + Added 2026-11-30. As on the Match object. The qualifying round in + words, null unless is_qualifying is true. surface: type: [string, 'null'] indoor: @@ -8372,11 +8383,43 @@ components: Null when the label is unrecognised — never guessed. IT IS DRAW-RELATIVE AND CANNOT, BY ITSELF, TELL YOU WHETHER A - MATCH IS QUALIFYING. A qualifying semi-final carries `SF`, the - same as a main-draw semi-final; only `Q`/`Q1`..`Q4` appear when + MATCH IS QUALIFYING. The qualifying draw is listed with the main + draw's rounds. So the round before the last qualifying round + carries `SF` with `is_qualifying: true`, the same code as a + main-draw semi-final. Only `Q`/`Q1`..`Q4` appear when the label itself names the round as qualifying, which most labels - do not. To branch on main draw vs qualifying, use `round_code` - AND `is_qualifying` together. + do not. These values stay within v1. Measured 2026-11-30 over + 39,348 qualifying matches: `SF` 16,140, `F` 8,607, `Q` 4,912, + `R32` 3,967, `R64` 2,933, `QF` 1,801, `Q1` 453, `R16` 418, `Q2` 66 + and null 51. To branch on main draw vs qualifying, use `round_code` + AND `is_qualifying` together. Read `round_label` for the + qualifying round in words. + round_label: + type: [string, "null"] + description: >- + Added 2026-11-30. On a QUALIFYING row (`is_qualifying: true`), the + round in words that cannot be read as a main-draw round. The + qualifying draw is listed with the main draw's labels, which count + back from the round whose winners qualify. 'Final' is the last + qualifying round, and 'Semi-finals' is the round before it. So + round "US Open - Final" with `round_code` `F` and `is_qualifying: + true` is the third and last qualifying round of the US Open. It + reads "Qualifying: round 3 of 3 (final round)" here. + + + There are three forms. "Qualifying: round N of 3", plus " (final + round)" for N = 3, is for Grand Slam singles qualifying. That is + the one draw whose three-round shape the per-draw match counts + prove (all 32 such draws of 2023-2026). "Qualifying: " is + for any other qualifying row whose label names a round (final + round, semi-final round, quarter-final round, round of 32, round + 2). "Qualifying" is for a label that names no round we can read. A + non-Slam round is never numbered. + + + Null on every row whose `is_qualifying` is not true. `round` and + `round_code` are unchanged. Display `round_label` when it is set + and `round` otherwise. is_qualifying: type: [boolean, "null"] description: >- @@ -8393,12 +8436,20 @@ components: vocabulary: a tournament will publish a dozen `Semi-finals` and several `Final` that are all qualifying, a week before the main draw begins. Neither `tournament`, `tournament_id` nor - `round_code` can tell them apart. + `round_code` can tell them apart. `round_label` states the + qualifying round in words. THREE-VALUED, and `null` is NOT `false`. `true`/`false` are the - source's own assertion; `null` means no source has ever stated - it — every row written before the field existed, and rows whose - only feed carries no equivalent field. Treat `null` as unknown + source's own assertion. `null` means it was never stated for this + row. Measured 2026-11-30 over completed matches, for 2023-2025 the + flag is stated on every row except 262 ATP matches (0.2% of + 135,671). Every ITF row of those years reads `false`, because + only the ITF main draw was held then. In 2026, 8,956 of 88,371 + completed rows read `null`. Most are 7,461 UTR matches, whose + record carries no such flag. The rest are doubles, rows with no + stated or only an inferred event type, and 423 singles rows. Until + 2026-11-30 this said `null` marked every row written before the + field existed, which was wrong for 2023-2025. Treat `null` as unknown and filter accordingly, exactly as with every other nullable field on this object. status: @@ -8419,12 +8470,20 @@ components: scheduled time, no play recorded), never inline on a momentary status flap. event_status: type: [string, "null"] - enum: [Finished, Retired, Cancelled, Walk Over, Postponed, Interrupted, Unresolved, null] + enum: [Finished, Retired, Cancelled, Walk Over, Postponed, Interrupted, Unresolved, Defaulted, Awarded, null] description: >- The stated designator for the match state, published - verbatim. `Finished` is by far the most common value — 144,266 of - the 150,678 rows carrying one at 2026-09-18 — and until this - version it was missing from this enum, so a strictly-validating + verbatim. Every value served, with its count over all matches on + 2026-11-30: `Finished` 179,350, `Retired` 6,694, `Walk Over` 937, + `Unresolved` 933, `Cancelled` 828, `Interrupted` 5, `Defaulted` 4 + and `Awarded` 4. `Defaulted` means a player was defaulted, with + outcome `default`. `Awarded` is the record's own word for a + default, on four ATP rows of 2023-2024, also with outcome + `default`. `Postponed` had none at that date. It is passed through + when a record states it. `Defaulted` and `Awarded` were + missing from this enum until 2026-11-30, so a strictly-validating + generated client rejected those rows. `Finished` was itself missing + from this enum until 2026-09-18, so a strictly-validating generated client rejected the majority of completed matches. It is listed now, with `Unresolved` (every source lost the match before a result; see `outcome`). The rest name a match that did not run its @@ -8960,6 +9019,15 @@ components: age_seconds: { type: [integer, "null"], description: "Seconds since the score CONTENT last changed." } stale: { type: [boolean, "null"], description: "A live match whose content has frozen past the threshold." } served_at: { type: string, format: date-time, description: "When this response was built. Changes on every read — do not use it to detect a new state." } + round_label: + type: [string, "null"] + description: >- + Added 2026-11-30. `Match.round_label`. On a qualifying match it is + the round in words, and it is null on a main-draw match. Examples + are Qualifying: final round, and Qualifying: round 3 of 3 (final + round) at a Grand Slam. + Bind this, not `round`, where a qualifying Final must not read as + a final. It is the last field, so every earlier field keeps its position. ScoreWithdrawal: type: object description: >- @@ -9141,6 +9209,13 @@ components: match's value when the match states one. The qualifying draw is published under the main draw's tournament name, so group a schedule on `round_code` and this flag together. + round_label: + type: [string, "null"] + description: >- + Added 2026-11-30. Same field as `Match.round_label`. On a + qualifying fixture it is the round in words ("Qualifying: final + round"), null unless `is_qualifying` is true. It is always the + unnumbered form here, because a fixture carries no season tier. created_at: type: [string, "null"] format: date-time @@ -10161,7 +10236,10 @@ components: 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. + saved, tiebreaks won, games won, service games played. ITF singles + carry no first-serve-in figure and no first-serve or second-serve + points won. Over the 30 days to 2026-11-30, 0 of 4,328 ITF singles + payloads carried them. TIER 3 — the winners / unforced-errors / forced-errors family, in total and by shot type. Present where the statistics source counts @@ -10358,8 +10436,11 @@ components: tiebreak_games_excluded: type: integer description: >- - Tiebreaks are excluded — the live record collapses a whole tiebreak - onto one entry + Tiebreaks are excluded. This is a count of excluded tiebreak + ENTRIES, not of tiebreaks: one per tiebreak point the record holds, + plus the set's closing 7-6 entry. One 7-4 breaker reads 12 (11 + points and the closing entry) beside games_counted 19, on match + 98655. inconsistent_games_excluded: type: integer description: >- @@ -11417,8 +11498,9 @@ components: description: >- 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 + 'current' rows carry `match_id`/`round_code`, `is_qualifying` and + `round_label` (since 2026-11-30, as on the Match object) and read + their score from the match endpoints. `winner` is 1|2 OF THIS H2H (p1/p2 as requested), null when underivable. items: type: object @@ -11428,6 +11510,14 @@ components: tournament: { type: [string, "null"] } level: { type: [string, "null"] } round: { type: [string, "null"] } + is_qualifying: + type: [boolean, "null"] + description: Current rows only (since 2026-11-30). As on the Match object. + round_label: + type: [string, "null"] + description: >- + Current rows only (since 2026-11-30). As on the Match object. + The qualifying round in words, null unless is_qualifying is true. surface: { type: [string, "null"] } score: { type: [string, "null"] } outcome: { type: [string, "null"] } diff --git a/scripts/build_reference.py b/scripts/build_reference.py index f8c4967..1032d45 100644 --- a/scripts/build_reference.py +++ b/scripts/build_reference.py @@ -4306,7 +4306,7 @@ def _sportsml_body(spec: dict[str, Any]) -> str: VOCAB_SLUG = "tennis-data-vocabulary" VOCAB_JSON = "tennis-data-vocabulary.json" # The day the meanings below were last checked against the spec's own field descriptions. -VOCAB_CHECKED = "2026-11-26" +VOCAB_CHECKED = "2026-11-30" def _schema_enum(spec: dict[str, Any], schema: str, *path: str) -> list[str]: @@ -4430,8 +4430,9 @@ def _param_enum(spec: dict[str, Any], route: str, name: str) -> list[str]: "title": "Round code", "fields": ["Match.round_code", "Fixture.round_code", "GET /history/archive/matches?round="], "about": ("The round in one controlled vocabulary, shared by live matches and the results " - "archive. It is relative to the draw: a qualifying semi-final also reads SF, so " - "read it together with is_qualifying. Null when the round label is not recognised. " + "archive. It is relative to the draw: the round before the last qualifying round " + "also reads SF, so read it together with is_qualifying, or read round_label for " + "the qualifying round in words. Null when the round label is not recognised. " "Q appears on matches only: the archive's round filter does not accept it."), "codes": lambda s: _schema_enum(s, "Match", "round_code"), "labels": { @@ -4539,6 +4540,8 @@ def _param_enum(spec: dict[str, Any], route: str, name: str) -> list[str]: "Postponed": "Stated as postponed", "Interrupted": "Suspended in play, for example rain, darkness or a medical stop", "Unresolved": "Closed before a result could be confirmed", + "Defaulted": "A player was defaulted", + "Awarded": "The record's own word for a default", }, }, { From 0122224e15a481f7b8d089f36ce3a52294626bf9 Mon Sep 17 00:00:00 2001 From: bensynapse <118375461+bensynapse@users.noreply.github.com> Date: Mon, 30 Nov 2026 16:50:55 +0200 Subject: [PATCH 2/2] Correct the statistics tiebreak sentence and the round example (1.13.95) The statistics operation said the live record collapses a whole tiebreak onto one entry. It now says tiebreak_games_excluded counts excluded tiebreak entries, not tiebreaks. The Match round description called a qualifying "Semi-finals" row the semi-final of the qualifying draw. It is the round before the last qualifying round, and round_label gives the plain wording. Both changes join the 1.13.95 changelog entry, with no new version. The docs pages and feeds are regenerated. --- CHANGELOG.md | 4 ++-- docs/changelog.atom | 4 ++-- docs/changelog.html | 4 ++-- docs/changelog.json | 6 +++--- docs/live-scores.html | 4 ++-- docs/openapi.json | 4 ++-- docs/reference.html | 10 +++++----- openapi.yaml | 15 +++++++++------ 8 files changed, 27 insertions(+), 24 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2faa859..0430480 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,8 +14,8 @@ removing a field or changing its type would require `v2`. ### Fixed - **`event_status` lists `Defaulted` and `Awarded`.** Both values are served, 4 rows each on 2026-11-30, and a strictly-validating client rejected those rows. The description now gives the count of every value served on that date. The vocabulary page describes both codes. - **What a null `is_qualifying` means.** The description said null marked rows written before the flag existed. That was wrong for 2023-2025, where the flag is stated on every row except 262 ATP matches. It now gives the measured state of each period as of 2026-11-30. -- **An `SF` qualifying row is not a qualifying semi-final.** It is the round before the last qualifying round. The `round_code` description and the vocabulary page now say so. The description gives the count of each code over the 39,348 qualifying matches held on 2026-11-30. -- **`tiebreak_games_excluded` counts entries, not tiebreaks.** The field description said the live record collapses a whole tiebreak onto one entry. The field counts one entry per tiebreak point the record holds, plus the set's closing 7-6 entry. +- **An `SF` qualifying row is not a qualifying semi-final.** It is the round before the last qualifying round. The `round` and `round_code` descriptions and the vocabulary page now say so. The description gives the count of each code over the 39,348 qualifying matches held on 2026-11-30. +- **`tiebreak_games_excluded` counts entries, not tiebreaks.** The field description and the `GET /matches/{matchId}/statistics` description said the live record collapses a whole tiebreak onto one entry. The field counts one entry per tiebreak point the record holds, plus the set's closing 7-6 entry. Both descriptions now say so. - **The results archive spans 1967 to 2022.** The `GET /history/archive/matches` summary and the `archive` kind of `GET /history/packages` now say so. That kind holds 56 yearly files with 1,485,752 results, measured 2026-11-30. - **The ITF serve split note is dated.** Over the 30 days to 2026-11-30, 0 of 4,328 ITF singles payloads carried a first-serve-in figure. None carried first-serve or second-serve points won. diff --git a/docs/changelog.atom b/docs/changelog.atom index fda659b..ab9f2f4 100644 --- a/docs/changelog.atom +++ b/docs/changelog.atom @@ -28,8 +28,8 @@ <ul> <li><strong><code>event_status</code> lists <code>Defaulted</code> and <code>Awarded</code>.</strong> Both values are served, 4 rows each on 2026-11-30, and a strictly-validating client rejected those rows. The description now gives the count of every value served on that date. The vocabulary page describes both codes.</li> <li><strong>What a null <code>is_qualifying</code> means.</strong> The description said null marked rows written before the flag existed. That was wrong for 2023-2025, where the flag is stated on every row except 262 ATP matches. It now gives the measured state of each period as of 2026-11-30.</li> -<li><strong>An <code>SF</code> qualifying row is not a qualifying semi-final.</strong> It is the round before the last qualifying round. The <code>round_code</code> description and the vocabulary page now say so. The description gives the count of each code over the 39,348 qualifying matches held on 2026-11-30.</li> -<li><strong><code>tiebreak_games_excluded</code> counts entries, not tiebreaks.</strong> The field description said the live record collapses a whole tiebreak onto one entry. The field counts one entry per tiebreak point the record holds, plus the set&#x27;s closing 7-6 entry.</li> +<li><strong>An <code>SF</code> qualifying row is not a qualifying semi-final.</strong> It is the round before the last qualifying round. The <code>round</code> and <code>round_code</code> descriptions and the vocabulary page now say so. The description gives the count of each code over the 39,348 qualifying matches held on 2026-11-30.</li> +<li><strong><code>tiebreak_games_excluded</code> counts entries, not tiebreaks.</strong> The field description and the <code>GET /matches/{matchId}/statistics</code> description said the live record collapses a whole tiebreak onto one entry. The field counts one entry per tiebreak point the record holds, plus the set&#x27;s closing 7-6 entry. Both descriptions now say so.</li> <li><strong>The results archive spans 1967 to 2022.</strong> The <code>GET /history/archive/matches</code> summary and the <code>archive</code> kind of <code>GET /history/packages</code> now say so. That kind holds 56 yearly files with 1,485,752 results, measured 2026-11-30.</li> <li><strong>The ITF serve split note is dated.</strong> Over the 30 days to 2026-11-30, 0 of 4,328 ITF singles payloads carried a first-serve-in figure. None carried first-serve or second-serve points won.</li> </ul> diff --git a/docs/changelog.html b/docs/changelog.html index a0ed3ec..f15cadf 100644 --- a/docs/changelog.html +++ b/docs/changelog.html @@ -220,8 +220,8 @@

Fixed

  • event_status lists Defaulted and Awarded. Both values are served, 4 rows each on 2026-11-30, and a strictly-validating client rejected those rows. The description now gives the count of every value served on that date. The vocabulary page describes both codes.
  • What a null is_qualifying means. The description said null marked rows written before the flag existed. That was wrong for 2023-2025, where the flag is stated on every row except 262 ATP matches. It now gives the measured state of each period as of 2026-11-30.
  • -
  • An SF qualifying row is not a qualifying semi-final. It is the round before the last qualifying round. The round_code description and the vocabulary page now say so. The description gives the count of each code over the 39,348 qualifying matches held on 2026-11-30.
  • -
  • tiebreak_games_excluded counts entries, not tiebreaks. The field description said the live record collapses a whole tiebreak onto one entry. The field counts one entry per tiebreak point the record holds, plus the set's closing 7-6 entry.
  • +
  • An SF qualifying row is not a qualifying semi-final. It is the round before the last qualifying round. The round and round_code descriptions and the vocabulary page now say so. The description gives the count of each code over the 39,348 qualifying matches held on 2026-11-30.
  • +
  • tiebreak_games_excluded counts entries, not tiebreaks. The field description and the GET /matches/{matchId}/statistics description said the live record collapses a whole tiebreak onto one entry. The field counts one entry per tiebreak point the record holds, plus the set's closing 7-6 entry. Both descriptions now say so.
  • The results archive spans 1967 to 2022. The GET /history/archive/matches summary and the archive kind of GET /history/packages now say so. That kind holds 56 yearly files with 1,485,752 results, measured 2026-11-30.
  • The ITF serve split note is dated. Over the 30 days to 2026-11-30, 0 of 4,328 ITF singles payloads carried a first-serve-in figure. None carried first-serve or second-serve points won.
diff --git a/docs/changelog.json b/docs/changelog.json index 166d3f0..25a3cf1 100644 --- a/docs/changelog.json +++ b/docs/changelog.json @@ -19,7 +19,7 @@ "url": "https://docs.livetennisapi.com/changelog.html#v1.13.95", "title": "1.13.95: round_label names a qualifying round in words, and 7 more changes", "summary": "Added: round_label names a qualifying round in words. is_qualifying on recent matches and head-to-head meetings. Plus 6 more changes.", - "content_html": "

Added

\n
    \n
  • round_label names a qualifying round in words. A qualifying draw uses the main draw's round labels. They count back from the round whose winners qualify. So round: "US Open - Final" with is_qualifying: true is the last qualifying round, not the final. There the new field reads "Qualifying: round 3 of 3 (final round)". Only Grand Slam singles qualifying is numbered. Other qualifying rows read "Qualifying: <round>" or a bare "Qualifying". The field is null on every row whose is_qualifying is not true. It is on the Match object, on Fixture (always unnumbered), on PlayerRecentMatch and on the current meetings of GET /h2h. It is also the last field of the broadcast object, so every earlier field keeps its position. round and round_code are unchanged.
  • \n
  • is_qualifying on recent matches and head-to-head meetings. recent on GET /players/{playerId}/stats and the current meetings of GET /h2h now carry it. It has the same three values as on the Match object.
  • \n
\n

Fixed

\n
    \n
  • event_status lists Defaulted and Awarded. Both values are served, 4 rows each on 2026-11-30, and a strictly-validating client rejected those rows. The description now gives the count of every value served on that date. The vocabulary page describes both codes.
  • \n
  • What a null is_qualifying means. The description said null marked rows written before the flag existed. That was wrong for 2023-2025, where the flag is stated on every row except 262 ATP matches. It now gives the measured state of each period as of 2026-11-30.
  • \n
  • An SF qualifying row is not a qualifying semi-final. It is the round before the last qualifying round. The round_code description and the vocabulary page now say so. The description gives the count of each code over the 39,348 qualifying matches held on 2026-11-30.
  • \n
  • tiebreak_games_excluded counts entries, not tiebreaks. The field description said the live record collapses a whole tiebreak onto one entry. The field counts one entry per tiebreak point the record holds, plus the set's closing 7-6 entry.
  • \n
  • The results archive spans 1967 to 2022. The GET /history/archive/matches summary and the archive kind of GET /history/packages now say so. That kind holds 56 yearly files with 1,485,752 results, measured 2026-11-30.
  • \n
  • The ITF serve split note is dated. Over the 30 days to 2026-11-30, 0 of 4,328 ITF singles payloads carried a first-serve-in figure. None carried first-serve or second-serve points won.
  • \n
", + "content_html": "

Added

\n
    \n
  • round_label names a qualifying round in words. A qualifying draw uses the main draw's round labels. They count back from the round whose winners qualify. So round: "US Open - Final" with is_qualifying: true is the last qualifying round, not the final. There the new field reads "Qualifying: round 3 of 3 (final round)". Only Grand Slam singles qualifying is numbered. Other qualifying rows read "Qualifying: <round>" or a bare "Qualifying". The field is null on every row whose is_qualifying is not true. It is on the Match object, on Fixture (always unnumbered), on PlayerRecentMatch and on the current meetings of GET /h2h. It is also the last field of the broadcast object, so every earlier field keeps its position. round and round_code are unchanged.
  • \n
  • is_qualifying on recent matches and head-to-head meetings. recent on GET /players/{playerId}/stats and the current meetings of GET /h2h now carry it. It has the same three values as on the Match object.
  • \n
\n

Fixed

\n
    \n
  • event_status lists Defaulted and Awarded. Both values are served, 4 rows each on 2026-11-30, and a strictly-validating client rejected those rows. The description now gives the count of every value served on that date. The vocabulary page describes both codes.
  • \n
  • What a null is_qualifying means. The description said null marked rows written before the flag existed. That was wrong for 2023-2025, where the flag is stated on every row except 262 ATP matches. It now gives the measured state of each period as of 2026-11-30.
  • \n
  • An SF qualifying row is not a qualifying semi-final. It is the round before the last qualifying round. The round and round_code descriptions and the vocabulary page now say so. The description gives the count of each code over the 39,348 qualifying matches held on 2026-11-30.
  • \n
  • tiebreak_games_excluded counts entries, not tiebreaks. The field description and the GET /matches/{matchId}/statistics description said the live record collapses a whole tiebreak onto one entry. The field counts one entry per tiebreak point the record holds, plus the set's closing 7-6 entry. Both descriptions now say so.
  • \n
  • The results archive spans 1967 to 2022. The GET /history/archive/matches summary and the archive kind of GET /history/packages now say so. That kind holds 56 yearly files with 1,485,752 results, measured 2026-11-30.
  • \n
  • The ITF serve split note is dated. Over the 30 days to 2026-11-30, 0 of 4,328 ITF singles payloads carried a first-serve-in figure. None carried first-serve or second-serve points won.
  • \n
", "date_published": "2026-11-30T00:00:00Z", "tags": [ "Added", @@ -43,8 +43,8 @@ "items": [ "event_status lists Defaulted and Awarded. Both values are served, 4 rows each on 2026-11-30, and a strictly-validating client rejected those rows. The description now gives the count of every value served on that date. The vocabulary page describes both codes.", "What a null is_qualifying means. The description said null marked rows written before the flag existed. That was wrong for 2023-2025, where the flag is stated on every row except 262 ATP matches. It now gives the measured state of each period as of 2026-11-30.", - "An SF qualifying row is not a qualifying semi-final. It is the round before the last qualifying round. The round_code description and the vocabulary page now say so. The description gives the count of each code over the 39,348 qualifying matches held on 2026-11-30.", - "tiebreak_games_excluded counts entries, not tiebreaks. The field description said the live record collapses a whole tiebreak onto one entry. The field counts one entry per tiebreak point the record holds, plus the set's closing 7-6 entry.", + "An SF qualifying row is not a qualifying semi-final. It is the round before the last qualifying round. The round and round_code descriptions and the vocabulary page now say so. The description gives the count of each code over the 39,348 qualifying matches held on 2026-11-30.", + "tiebreak_games_excluded counts entries, not tiebreaks. The field description and the GET /matches/{matchId}/statistics description said the live record collapses a whole tiebreak onto one entry. The field counts one entry per tiebreak point the record holds, plus the set's closing 7-6 entry. Both descriptions now say so.", "The results archive spans 1967 to 2022. The GET /history/archive/matches summary and the archive kind of GET /history/packages now say so. That kind holds 56 yearly files with 1,485,752 results, measured 2026-11-30.", "The ITF serve split note is dated. Over the 30 days to 2026-11-30, 0 of 4,328 ITF singles payloads carried a first-serve-in figure. None carried first-serve or second-serve points won." ], diff --git a/docs/live-scores.html b/docs/live-scores.html index e313a40..fc3cfe6 100644 --- a/docs/live-scores.html +++ b/docs/live-scores.html @@ -247,7 +247,7 @@

Parameters

GET /matches/{matchId} — responses
StatusMeaning
200Match with score; market embed at PRO+, analysis embed at ULTRA
401Missing, unknown, or disabled credentials
403Your tier doesn't unlock this endpoint
404No such resource, or no data yet
410The match id existed and was merged into another match record (since 2026-09-05). The body is MatchMerged, not Error: it carries a forwarding address, which is the whole point of answering 410 rather than 404.
429Rate 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

GET /matches/{matchId} — response fields
FieldTypeDescription
idinteger
tournamentstring
tourstring 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 no tour is stated for the match 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_idstring or nullStable tournament identity — one id per tournament × event type, stable across seasons. Joins GET /tournaments/{tournamentId}. Null when the tournament is not in our tournament list at all (UTR events), and on the small residue of matches whose tournament name could not be matched to exactly one edition in that list — never guessed. Measured over August 2026 terminal matches: ATP 1 of 531 and WTA 3 of 513 null; ITF about 2.5% after the 2026-09-04 backfill (was ~25%); UTR 100%. (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.)
tierstring or null (grand_slam, atp_finals, atp_1000, atp_500, atp_250, next_gen_finals, united_cup, davis_cup, olympics, laver_cup, wta_finals, wta_elite_trophy, wta_1000, wta_500, wta_250, wta_125, bjk_cup, challenger_175, challenger_125, challenger_100, challenger_75, challenger_50, itf_m15, itf_m25, itf_w15, itf_w25, itf_w35, itf_w40, itf_w50, itf_w60, itf_w75, itf_w80, itf_w100, juniors, utr, exhibition, null)The level the tournament was played at IN THIS MATCH'S SEASON (added 2026-09-22) — the official category as the tour publishes it, in a closed vocabulary: grand_slam; the ATP levels (atp_finals, atp_1000, atp_500, atp_250, next_gen_finals); the WTA levels (wta_finals, wta_elite_trophy — last held 2023 — wta_1000, wta_500, wta_250, wta_125); the ATP Challenger levels (challenger_175 … challenger_50); the ITF World Tennis Tour categories (itf_m15, itf_m25, itf_w15 … itf_w100 — the 2023 women's categories itf_w25/itf_w40/itf_w60/itf_w80 are kept as printed that season, not mapped onto the 2024 ladder, because the level a match was played at is a fact about that season); the team events (united_cup, davis_cup and bjk_cup in every group and stage, laver_cup, olympics); juniors; utr; and exhibition (no ranking points — Hopman Cup class). Same vocabulary as the ?tier= filter, read from the same per-season table, so filter and field cannot disagree. Resolved by the MATCH'S season (the calendar year of scheduled_time), never copied from the tournament row: a tournament keeps one tournament_id across seasons while its level moves — Dallas was atp_250 in 2023 and 2024 and atp_500 from 2025, so a 2024 Dallas match reads atp_250 and a 2025 one atp_500 under the same id. Coverage of the 2023–2026 seasons was verified event by event against the official calendars (99.1% of tournament-seasons resolved; the rest are deliberately null — the Asian Games tennis event, which no tour lists). A new event may read null for a short while after its first match until its tier is resolved. Null when nothing we hold names the level — never guessed; null is "we do not know", never a level. category on /tournaments is unchanged and remains the coarse class (challenger, itf, atp_250 …); read this field for the level.
tier_sourcestring or null (calendar, name, wikipedia, resolver, null)How tier was established (added 2026-09-22): calendar = the official per-season tour calendar named the level (ATP tour and Challenger calendars, the WTA tournament list); name = an unambiguous name rule (the ITF category is in the event's official name — M25 …, W35 … — team and UTR events are named as such, and the Slam junior draws and exhibitions are their own event type); wikipedia = a published season schedule, used only where the official calendar could not state the level for that season (Eastbourne 2023–2025); resolver = resolved after the seed dataset, by the same rules, from the event's name, tour and dates in that season. Null exactly when tier is null.
surfacestring or null (hard, clay, grass, null)Court surface. Null where no source states one, never inferred from a tournament's usual surface in other seasons. TEAM COMPETITIONS (Davis Cup, Billie Jean King Cup, Laver Cup) have no surface at tournament level — each tie is played on the surface its host nation chose — so the match carries its TIE's surface, taken from the ITF's published tie record (venue, indoor/outdoor, surface) and the same for every rubber of that tie; tournament.surface stays null for them. A team-event match is null only when the tie's venue is not yet published or the match cannot be matched to a single tie (competition, date window and the nations on court must agree). The other structural null is UTR events, which are not in our tournament list at all and so carry tournament_id: null too. For every other event a surface that IS known is published on both the match and its tournament, and the two agree.
indoorboolean
formatstring or null (BO3, BO5, null)
roundstring or nullThe free-text round label, verbatim, as published for the match. It is the round WITHIN the draw this match belongs to, and the draw is named by is_qualifying — NOT by this string. A qualifying draw has its own semi-final and its own final, so "Buenos Aires 3 - Semi-finals" with is_qualifying: true is the semi-final of the QUALIFYING draw, not of the tournament. Read the two fields together or not at all. The label also embeds the tournament name on most matches — parse the suffix after the last " - ", or better, use round_code.
round_codestring 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 label does not number). It matches /history/archive/matches?round= exactly. Null when the label is unrecognised — never guessed. +

Response fields

GET /matches/{matchId} — response fields
FieldTypeDescription
idinteger
tournamentstring
tourstring 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 no tour is stated for the match 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_idstring or nullStable tournament identity — one id per tournament × event type, stable across seasons. Joins GET /tournaments/{tournamentId}. Null when the tournament is not in our tournament list at all (UTR events), and on the small residue of matches whose tournament name could not be matched to exactly one edition in that list — never guessed. Measured over August 2026 terminal matches: ATP 1 of 531 and WTA 3 of 513 null; ITF about 2.5% after the 2026-09-04 backfill (was ~25%); UTR 100%. (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.)
tierstring or null (grand_slam, atp_finals, atp_1000, atp_500, atp_250, next_gen_finals, united_cup, davis_cup, olympics, laver_cup, wta_finals, wta_elite_trophy, wta_1000, wta_500, wta_250, wta_125, bjk_cup, challenger_175, challenger_125, challenger_100, challenger_75, challenger_50, itf_m15, itf_m25, itf_w15, itf_w25, itf_w35, itf_w40, itf_w50, itf_w60, itf_w75, itf_w80, itf_w100, juniors, utr, exhibition, null)The level the tournament was played at IN THIS MATCH'S SEASON (added 2026-09-22) — the official category as the tour publishes it, in a closed vocabulary: grand_slam; the ATP levels (atp_finals, atp_1000, atp_500, atp_250, next_gen_finals); the WTA levels (wta_finals, wta_elite_trophy — last held 2023 — wta_1000, wta_500, wta_250, wta_125); the ATP Challenger levels (challenger_175 … challenger_50); the ITF World Tennis Tour categories (itf_m15, itf_m25, itf_w15 … itf_w100 — the 2023 women's categories itf_w25/itf_w40/itf_w60/itf_w80 are kept as printed that season, not mapped onto the 2024 ladder, because the level a match was played at is a fact about that season); the team events (united_cup, davis_cup and bjk_cup in every group and stage, laver_cup, olympics); juniors; utr; and exhibition (no ranking points — Hopman Cup class). Same vocabulary as the ?tier= filter, read from the same per-season table, so filter and field cannot disagree. Resolved by the MATCH'S season (the calendar year of scheduled_time), never copied from the tournament row: a tournament keeps one tournament_id across seasons while its level moves — Dallas was atp_250 in 2023 and 2024 and atp_500 from 2025, so a 2024 Dallas match reads atp_250 and a 2025 one atp_500 under the same id. Coverage of the 2023–2026 seasons was verified event by event against the official calendars (99.1% of tournament-seasons resolved; the rest are deliberately null — the Asian Games tennis event, which no tour lists). A new event may read null for a short while after its first match until its tier is resolved. Null when nothing we hold names the level — never guessed; null is "we do not know", never a level. category on /tournaments is unchanged and remains the coarse class (challenger, itf, atp_250 …); read this field for the level.
tier_sourcestring or null (calendar, name, wikipedia, resolver, null)How tier was established (added 2026-09-22): calendar = the official per-season tour calendar named the level (ATP tour and Challenger calendars, the WTA tournament list); name = an unambiguous name rule (the ITF category is in the event's official name — M25 …, W35 … — team and UTR events are named as such, and the Slam junior draws and exhibitions are their own event type); wikipedia = a published season schedule, used only where the official calendar could not state the level for that season (Eastbourne 2023–2025); resolver = resolved after the seed dataset, by the same rules, from the event's name, tour and dates in that season. Null exactly when tier is null.
surfacestring or null (hard, clay, grass, null)Court surface. Null where no source states one, never inferred from a tournament's usual surface in other seasons. TEAM COMPETITIONS (Davis Cup, Billie Jean King Cup, Laver Cup) have no surface at tournament level — each tie is played on the surface its host nation chose — so the match carries its TIE's surface, taken from the ITF's published tie record (venue, indoor/outdoor, surface) and the same for every rubber of that tie; tournament.surface stays null for them. A team-event match is null only when the tie's venue is not yet published or the match cannot be matched to a single tie (competition, date window and the nations on court must agree). The other structural null is UTR events, which are not in our tournament list at all and so carry tournament_id: null too. For every other event a surface that IS known is published on both the match and its tournament, and the two agree.
indoorboolean
formatstring or null (BO3, BO5, null)
roundstring or nullThe free-text round label, verbatim, as published for the match. It is the round WITHIN the draw this match belongs to, and the draw is named by is_qualifying — NOT by this string. A qualifying draw is listed with the main draw's labels, which count back from the round whose winners qualify. So "Buenos Aires 3 - Semi-finals" with is_qualifying: true is the round before the last qualifying round, not a semi-final, and its round_code reads SF. round_label gives the plain wording. Read the two fields together or not at all. The label also embeds the tournament name on most matches — parse the suffix after the last " - ", or better, use round_code.
round_codestring 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 label does not number). It matches /history/archive/matches?round= exactly. Null when the label is unrecognised — never guessed. IT IS DRAW-RELATIVE AND CANNOT, BY ITSELF, TELL YOU WHETHER A MATCH IS QUALIFYING. The qualifying draw is listed with the main draw's rounds. So the round before the last qualifying round carries SF with is_qualifying: true, the same code as a main-draw semi-final. Only Q/Q1..Q4 appear when the label itself names the round as qualifying, which most labels do not. These values stay within v1. Measured 2026-11-30 over 39,348 qualifying matches: SF 16,140, F 8,607, Q 4,912, R32 3,967, R64 2,933, QF 1,801, Q1 453, R16 418, Q2 66 and null 51. To branch on main draw vs qualifying, use round_code AND is_qualifying together. Read round_label for the qualifying round in words.
round_labelstring or nullAdded 2026-11-30. On a QUALIFYING row (is_qualifying: true), the round in words that cannot be read as a main-draw round. The qualifying draw is listed with the main draw's labels, which count back from the round whose winners qualify. 'Final' is the last qualifying round, and 'Semi-finals' is the round before it. So round "US Open - Final" with round_code F and is_qualifying: true is the third and last qualifying round of the US Open. It reads "Qualifying: round 3 of 3 (final round)" here. There are three forms. "Qualifying: round N of 3", plus " (final round)" for N = 3, is for Grand Slam singles qualifying. That is the one draw whose three-round shape the per-draw match counts prove (all 32 such draws of 2023-2026). "Qualifying: <round>" is for any other qualifying row whose label names a round (final round, semi-final round, quarter-final round, round of 32, round 2). "Qualifying" is for a label that names no round we can read. A non-Slam round is never numbered. @@ -371,7 +371,7 @@

GET /matches/{matchId}/statistics +Tiebreak games are excluded from the DERIVED family and counted separately in tiebreak_games_excluded, which counts excluded tiebreak entries, not tiebreaks (one per tiebreak point the record holds, plus the closing 7-6 entry of the set).

Parameters

GET /matches/{matchId}/statistics — parameters
NameInTypeRequiredNotes
matchIdpathintegeryesThe 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: diff --git a/docs/openapi.json b/docs/openapi.json index 46d3623..af37fe6 100644 --- a/docs/openapi.json +++ b/docs/openapi.json @@ -1049,7 +1049,7 @@ "/matches/{matchId}/statistics": { "get": { "summary": "In-play statistics — aces, double faults, serve split, hold/break %, break points, service & return points (ULTRA)", - "description": "In-play statistics for one match, in TWO families that are deliberately not merged.\n\nDERIVED (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.\n\nMEASURED (`players.pN.measured`) are match counts recorded as the match is played, 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.\n\nMeasured 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 available since 2026-07-12 (measured 2026-08-17).\n\n`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.\n\nTHE 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.\n\nTiebreak 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.", + "description": "In-play statistics for one match, in TWO families that are deliberately not merged.\n\nDERIVED (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.\n\nMEASURED (`players.pN.measured`) are match counts recorded as the match is played, 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.\n\nMeasured 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 available since 2026-07-12 (measured 2026-08-17).\n\n`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.\n\nTHE 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.\n\nTiebreak games are excluded from the DERIVED family and counted separately in `tiebreak_games_excluded`, which counts excluded tiebreak entries, not tiebreaks (one per tiebreak point the record holds, plus the closing 7-6 entry of the set).", "operationId": "getMatchStatistics", "x-codeSamples": [ { @@ -6862,7 +6862,7 @@ "string", "null" ], - "description": "The free-text round label, verbatim, as published for the match. It is the round WITHIN the draw this match belongs to, and the draw is named by `is_qualifying` — NOT by this string. A qualifying draw has its own semi-final and its own final, so `\"Buenos Aires 3 - Semi-finals\"` with `is_qualifying: true` is the semi-final of the QUALIFYING draw, not of the tournament. Read the two fields together or not at all. The label also embeds the tournament name on most matches — parse the suffix after the last `\" - \"`, or better, use `round_code`." + "description": "The free-text round label, verbatim, as published for the match. It is the round WITHIN the draw this match belongs to, and the draw is named by `is_qualifying` — NOT by this string. A qualifying draw is listed with the main draw's labels, which count back from the round whose winners qualify. So `\"Buenos Aires 3 - Semi-finals\"` with `is_qualifying: true` is the round before the last qualifying round, not a semi-final, and its `round_code` reads `SF`. `round_label` gives the plain wording. Read the two fields together or not at all. The label also embeds the tournament name on most matches — parse the suffix after the last `\" - \"`, or better, use `round_code`." }, "round_code": { "type": [ diff --git a/docs/reference.html b/docs/reference.html index bc72dad..9ce20ed 100644 --- a/docs/reference.html +++ b/docs/reference.html @@ -620,7 +620,7 @@

Parameters

GET /matches/{matchId} — responses
StatusMeaning
200Match with score; market embed at PRO+, analysis embed at ULTRA
401Missing, unknown, or disabled credentials
403Your tier doesn't unlock this endpoint
404No such resource, or no data yet
410The match id existed and was merged into another match record (since 2026-09-05). The body is MatchMerged, not Error: it carries a forwarding address, which is the whole point of answering 410 rather than 404.
429Rate 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

GET /matches/{matchId} — response fields
FieldTypeDescription
idinteger
tournamentstring
tourstring 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 no tour is stated for the match 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_idstring or nullStable tournament identity — one id per tournament × event type, stable across seasons. Joins GET /tournaments/{tournamentId}. Null when the tournament is not in our tournament list at all (UTR events), and on the small residue of matches whose tournament name could not be matched to exactly one edition in that list — never guessed. Measured over August 2026 terminal matches: ATP 1 of 531 and WTA 3 of 513 null; ITF about 2.5% after the 2026-09-04 backfill (was ~25%); UTR 100%. (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.)
tierstring or null (grand_slam, atp_finals, atp_1000, atp_500, atp_250, next_gen_finals, united_cup, davis_cup, olympics, laver_cup, wta_finals, wta_elite_trophy, wta_1000, wta_500, wta_250, wta_125, bjk_cup, challenger_175, challenger_125, challenger_100, challenger_75, challenger_50, itf_m15, itf_m25, itf_w15, itf_w25, itf_w35, itf_w40, itf_w50, itf_w60, itf_w75, itf_w80, itf_w100, juniors, utr, exhibition, null)The level the tournament was played at IN THIS MATCH'S SEASON (added 2026-09-22) — the official category as the tour publishes it, in a closed vocabulary: grand_slam; the ATP levels (atp_finals, atp_1000, atp_500, atp_250, next_gen_finals); the WTA levels (wta_finals, wta_elite_trophy — last held 2023 — wta_1000, wta_500, wta_250, wta_125); the ATP Challenger levels (challenger_175 … challenger_50); the ITF World Tennis Tour categories (itf_m15, itf_m25, itf_w15 … itf_w100 — the 2023 women's categories itf_w25/itf_w40/itf_w60/itf_w80 are kept as printed that season, not mapped onto the 2024 ladder, because the level a match was played at is a fact about that season); the team events (united_cup, davis_cup and bjk_cup in every group and stage, laver_cup, olympics); juniors; utr; and exhibition (no ranking points — Hopman Cup class). Same vocabulary as the ?tier= filter, read from the same per-season table, so filter and field cannot disagree. Resolved by the MATCH'S season (the calendar year of scheduled_time), never copied from the tournament row: a tournament keeps one tournament_id across seasons while its level moves — Dallas was atp_250 in 2023 and 2024 and atp_500 from 2025, so a 2024 Dallas match reads atp_250 and a 2025 one atp_500 under the same id. Coverage of the 2023–2026 seasons was verified event by event against the official calendars (99.1% of tournament-seasons resolved; the rest are deliberately null — the Asian Games tennis event, which no tour lists). A new event may read null for a short while after its first match until its tier is resolved. Null when nothing we hold names the level — never guessed; null is "we do not know", never a level. category on /tournaments is unchanged and remains the coarse class (challenger, itf, atp_250 …); read this field for the level.
tier_sourcestring or null (calendar, name, wikipedia, resolver, null)How tier was established (added 2026-09-22): calendar = the official per-season tour calendar named the level (ATP tour and Challenger calendars, the WTA tournament list); name = an unambiguous name rule (the ITF category is in the event's official name — M25 …, W35 … — team and UTR events are named as such, and the Slam junior draws and exhibitions are their own event type); wikipedia = a published season schedule, used only where the official calendar could not state the level for that season (Eastbourne 2023–2025); resolver = resolved after the seed dataset, by the same rules, from the event's name, tour and dates in that season. Null exactly when tier is null.
surfacestring or null (hard, clay, grass, null)Court surface. Null where no source states one, never inferred from a tournament's usual surface in other seasons. TEAM COMPETITIONS (Davis Cup, Billie Jean King Cup, Laver Cup) have no surface at tournament level — each tie is played on the surface its host nation chose — so the match carries its TIE's surface, taken from the ITF's published tie record (venue, indoor/outdoor, surface) and the same for every rubber of that tie; tournament.surface stays null for them. A team-event match is null only when the tie's venue is not yet published or the match cannot be matched to a single tie (competition, date window and the nations on court must agree). The other structural null is UTR events, which are not in our tournament list at all and so carry tournament_id: null too. For every other event a surface that IS known is published on both the match and its tournament, and the two agree.
indoorboolean
formatstring or null (BO3, BO5, null)
roundstring or nullThe free-text round label, verbatim, as published for the match. It is the round WITHIN the draw this match belongs to, and the draw is named by is_qualifying — NOT by this string. A qualifying draw has its own semi-final and its own final, so "Buenos Aires 3 - Semi-finals" with is_qualifying: true is the semi-final of the QUALIFYING draw, not of the tournament. Read the two fields together or not at all. The label also embeds the tournament name on most matches — parse the suffix after the last " - ", or better, use round_code.
round_codestring 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 label does not number). It matches /history/archive/matches?round= exactly. Null when the label is unrecognised — never guessed. +

Response fields

GET /matches/{matchId} — response fields
FieldTypeDescription
idinteger
tournamentstring
tourstring 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 no tour is stated for the match 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_idstring or nullStable tournament identity — one id per tournament × event type, stable across seasons. Joins GET /tournaments/{tournamentId}. Null when the tournament is not in our tournament list at all (UTR events), and on the small residue of matches whose tournament name could not be matched to exactly one edition in that list — never guessed. Measured over August 2026 terminal matches: ATP 1 of 531 and WTA 3 of 513 null; ITF about 2.5% after the 2026-09-04 backfill (was ~25%); UTR 100%. (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.)
tierstring or null (grand_slam, atp_finals, atp_1000, atp_500, atp_250, next_gen_finals, united_cup, davis_cup, olympics, laver_cup, wta_finals, wta_elite_trophy, wta_1000, wta_500, wta_250, wta_125, bjk_cup, challenger_175, challenger_125, challenger_100, challenger_75, challenger_50, itf_m15, itf_m25, itf_w15, itf_w25, itf_w35, itf_w40, itf_w50, itf_w60, itf_w75, itf_w80, itf_w100, juniors, utr, exhibition, null)The level the tournament was played at IN THIS MATCH'S SEASON (added 2026-09-22) — the official category as the tour publishes it, in a closed vocabulary: grand_slam; the ATP levels (atp_finals, atp_1000, atp_500, atp_250, next_gen_finals); the WTA levels (wta_finals, wta_elite_trophy — last held 2023 — wta_1000, wta_500, wta_250, wta_125); the ATP Challenger levels (challenger_175 … challenger_50); the ITF World Tennis Tour categories (itf_m15, itf_m25, itf_w15 … itf_w100 — the 2023 women's categories itf_w25/itf_w40/itf_w60/itf_w80 are kept as printed that season, not mapped onto the 2024 ladder, because the level a match was played at is a fact about that season); the team events (united_cup, davis_cup and bjk_cup in every group and stage, laver_cup, olympics); juniors; utr; and exhibition (no ranking points — Hopman Cup class). Same vocabulary as the ?tier= filter, read from the same per-season table, so filter and field cannot disagree. Resolved by the MATCH'S season (the calendar year of scheduled_time), never copied from the tournament row: a tournament keeps one tournament_id across seasons while its level moves — Dallas was atp_250 in 2023 and 2024 and atp_500 from 2025, so a 2024 Dallas match reads atp_250 and a 2025 one atp_500 under the same id. Coverage of the 2023–2026 seasons was verified event by event against the official calendars (99.1% of tournament-seasons resolved; the rest are deliberately null — the Asian Games tennis event, which no tour lists). A new event may read null for a short while after its first match until its tier is resolved. Null when nothing we hold names the level — never guessed; null is "we do not know", never a level. category on /tournaments is unchanged and remains the coarse class (challenger, itf, atp_250 …); read this field for the level.
tier_sourcestring or null (calendar, name, wikipedia, resolver, null)How tier was established (added 2026-09-22): calendar = the official per-season tour calendar named the level (ATP tour and Challenger calendars, the WTA tournament list); name = an unambiguous name rule (the ITF category is in the event's official name — M25 …, W35 … — team and UTR events are named as such, and the Slam junior draws and exhibitions are their own event type); wikipedia = a published season schedule, used only where the official calendar could not state the level for that season (Eastbourne 2023–2025); resolver = resolved after the seed dataset, by the same rules, from the event's name, tour and dates in that season. Null exactly when tier is null.
surfacestring or null (hard, clay, grass, null)Court surface. Null where no source states one, never inferred from a tournament's usual surface in other seasons. TEAM COMPETITIONS (Davis Cup, Billie Jean King Cup, Laver Cup) have no surface at tournament level — each tie is played on the surface its host nation chose — so the match carries its TIE's surface, taken from the ITF's published tie record (venue, indoor/outdoor, surface) and the same for every rubber of that tie; tournament.surface stays null for them. A team-event match is null only when the tie's venue is not yet published or the match cannot be matched to a single tie (competition, date window and the nations on court must agree). The other structural null is UTR events, which are not in our tournament list at all and so carry tournament_id: null too. For every other event a surface that IS known is published on both the match and its tournament, and the two agree.
indoorboolean
formatstring or null (BO3, BO5, null)
roundstring or nullThe free-text round label, verbatim, as published for the match. It is the round WITHIN the draw this match belongs to, and the draw is named by is_qualifying — NOT by this string. A qualifying draw is listed with the main draw's labels, which count back from the round whose winners qualify. So "Buenos Aires 3 - Semi-finals" with is_qualifying: true is the round before the last qualifying round, not a semi-final, and its round_code reads SF. round_label gives the plain wording. Read the two fields together or not at all. The label also embeds the tournament name on most matches — parse the suffix after the last " - ", or better, use round_code.
round_codestring 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 label does not number). It matches /history/archive/matches?round= exactly. Null when the label is unrecognised — never guessed. IT IS DRAW-RELATIVE AND CANNOT, BY ITSELF, TELL YOU WHETHER A MATCH IS QUALIFYING. The qualifying draw is listed with the main draw's rounds. So the round before the last qualifying round carries SF with is_qualifying: true, the same code as a main-draw semi-final. Only Q/Q1..Q4 appear when the label itself names the round as qualifying, which most labels do not. These values stay within v1. Measured 2026-11-30 over 39,348 qualifying matches: SF 16,140, F 8,607, Q 4,912, R32 3,967, R64 2,933, QF 1,801, Q1 453, R16 418, Q2 66 and null 51. To branch on main draw vs qualifying, use round_code AND is_qualifying together. Read round_label for the qualifying round in words.
round_labelstring or nullAdded 2026-11-30. On a QUALIFYING row (is_qualifying: true), the round in words that cannot be read as a main-draw round. The qualifying draw is listed with the main draw's labels, which count back from the round whose winners qualify. 'Final' is the last qualifying round, and 'Semi-finals' is the round before it. So round "US Open - Final" with round_code F and is_qualifying: true is the third and last qualifying round of the US Open. It reads "Qualifying: round 3 of 3 (final round)" here. There are three forms. "Qualifying: round N of 3", plus " (final round)" for N = 3, is for Grand Slam singles qualifying. That is the one draw whose three-round shape the per-draw match counts prove (all 32 such draws of 2023-2026). "Qualifying: <round>" is for any other qualifying row whose label names a round (final round, semi-final round, quarter-final round, round of 32, round 2). "Qualifying" is for a label that names no round we can read. A non-Slam round is never numbered. @@ -773,7 +773,7 @@

GET /matches/{matchId}/statistics +Tiebreak games are excluded from the DERIVED family and counted separately in tiebreak_games_excluded, which counts excluded tiebreak entries, not tiebreaks (one per tiebreak point the record holds, plus the closing 7-6 entry of the set).

Parameters

- + - + - +
GET /matches/{matchId}/statistics — parameters
NameInTypeRequiredNotes
matchIdpathintegeryesThe 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: @@ -1809,7 +1809,7 @@

Match

surfacestring or null (hard, clay, grass, null)Court surface. Null where no source states one, never inferred from a tournament's usual surface in other seasons. TEAM COMPETITIONS (Davis Cup, Billie Jean King Cup, Laver Cup) have no surface at tournament level — each tie is played on the surface its host nation chose — so the match carries its TIE's surface, taken from the ITF's published tie record (venue, indoor/outdoor, surface) and the same for every rubber of that tie; tournament.surface stays null for them. A team-event match is null only when the tie's venue is not yet published or the match cannot be matched to a single tie (competition, date window and the nations on court must agree). The other structural null is UTR events, which are not in our tournament list at all and so carry tournament_id: null too. For every other event a surface that IS known is published on both the match and its tournament, and the two agree.
indoorboolean
formatstring or null (BO3, BO5, null)
roundstring or nullThe free-text round label, verbatim, as published for the match. It is the round WITHIN the draw this match belongs to, and the draw is named by is_qualifying — NOT by this string. A qualifying draw has its own semi-final and its own final, so "Buenos Aires 3 - Semi-finals" with is_qualifying: true is the semi-final of the QUALIFYING draw, not of the tournament. Read the two fields together or not at all. The label also embeds the tournament name on most matches — parse the suffix after the last " - ", or better, use round_code.
roundstring or nullThe free-text round label, verbatim, as published for the match. It is the round WITHIN the draw this match belongs to, and the draw is named by is_qualifying — NOT by this string. A qualifying draw is listed with the main draw's labels, which count back from the round whose winners qualify. So "Buenos Aires 3 - Semi-finals" with is_qualifying: true is the round before the last qualifying round, not a semi-final, and its round_code reads SF. round_label gives the plain wording. Read the two fields together or not at all. The label also embeds the tournament name on most matches — parse the suffix after the last " - ", or better, use round_code.
round_codestring 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 label does not number). It matches /history/archive/matches?round= exactly. Null when the label is unrecognised — never guessed. IT IS DRAW-RELATIVE AND CANNOT, BY ITSELF, TELL YOU WHETHER A MATCH IS QUALIFYING. The qualifying draw is listed with the main draw's rounds. So the round before the last qualifying round carries SF with is_qualifying: true, the same code as a main-draw semi-final. Only Q/Q1..Q4 appear when the label itself names the round as qualifying, which most labels do not. These values stay within v1. Measured 2026-11-30 over 39,348 qualifying matches: SF 16,140, F 8,607, Q 4,912, R32 3,967, R64 2,933, QF 1,801, Q1 453, R16 418, Q2 66 and null 51. To branch on main draw vs qualifying, use round_code AND is_qualifying together. Read round_label for the qualifying round in words.
round_labelstring or nullAdded 2026-11-30. On a QUALIFYING row (is_qualifying: true), the round in words that cannot be read as a main-draw round. The qualifying draw is listed with the main draw's labels, which count back from the round whose winners qualify. 'Final' is the last qualifying round, and 'Semi-finals' is the round before it. So round "US Open - Final" with round_code F and is_qualifying: true is the third and last qualifying round of the US Open. It reads "Qualifying: round 3 of 3 (final round)" here. @@ -1851,7 +1851,7 @@

MatchDetail

surfacestring or null (hard, clay, grass, null)Court surface. Null where no source states one, never inferred from a tournament's usual surface in other seasons. TEAM COMPETITIONS (Davis Cup, Billie Jean King Cup, Laver Cup) have no surface at tournament level — each tie is played on the surface its host nation chose — so the match carries its TIE's surface, taken from the ITF's published tie record (venue, indoor/outdoor, surface) and the same for every rubber of that tie; tournament.surface stays null for them. A team-event match is null only when the tie's venue is not yet published or the match cannot be matched to a single tie (competition, date window and the nations on court must agree). The other structural null is UTR events, which are not in our tournament list at all and so carry tournament_id: null too. For every other event a surface that IS known is published on both the match and its tournament, and the two agree.
indoorboolean
formatstring or null (BO3, BO5, null)
roundstring or nullThe free-text round label, verbatim, as published for the match. It is the round WITHIN the draw this match belongs to, and the draw is named by is_qualifying — NOT by this string. A qualifying draw has its own semi-final and its own final, so "Buenos Aires 3 - Semi-finals" with is_qualifying: true is the semi-final of the QUALIFYING draw, not of the tournament. Read the two fields together or not at all. The label also embeds the tournament name on most matches — parse the suffix after the last " - ", or better, use round_code.
roundstring or nullThe free-text round label, verbatim, as published for the match. It is the round WITHIN the draw this match belongs to, and the draw is named by is_qualifying — NOT by this string. A qualifying draw is listed with the main draw's labels, which count back from the round whose winners qualify. So "Buenos Aires 3 - Semi-finals" with is_qualifying: true is the round before the last qualifying round, not a semi-final, and its round_code reads SF. round_label gives the plain wording. Read the two fields together or not at all. The label also embeds the tournament name on most matches — parse the suffix after the last " - ", or better, use round_code.
round_codestring 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 label does not number). It matches /history/archive/matches?round= exactly. Null when the label is unrecognised — never guessed. IT IS DRAW-RELATIVE AND CANNOT, BY ITSELF, TELL YOU WHETHER A MATCH IS QUALIFYING. The qualifying draw is listed with the main draw's rounds. So the round before the last qualifying round carries SF with is_qualifying: true, the same code as a main-draw semi-final. Only Q/Q1..Q4 appear when the label itself names the round as qualifying, which most labels do not. These values stay within v1. Measured 2026-11-30 over 39,348 qualifying matches: SF 16,140, F 8,607, Q 4,912, R32 3,967, R64 2,933, QF 1,801, Q1 453, R16 418, Q2 66 and null 51. To branch on main draw vs qualifying, use round_code AND is_qualifying together. Read round_label for the qualifying round in words.
round_labelstring or nullAdded 2026-11-30. On a QUALIFYING row (is_qualifying: true), the round in words that cannot be read as a main-draw round. The qualifying draw is listed with the main draw's labels, which count back from the round whose winners qualify. 'Final' is the last qualifying round, and 'Semi-finals' is the round before it. So round "US Open - Final" with round_code F and is_qualifying: true is the third and last qualifying round of the US Open. It reads "Qualifying: round 3 of 3 (final round)" here. @@ -2245,7 +2245,7 @@

HistoryMatch

surfacestring or null (hard, clay, grass, null)Court surface. Null where no source states one, never inferred from a tournament's usual surface in other seasons. TEAM COMPETITIONS (Davis Cup, Billie Jean King Cup, Laver Cup) have no surface at tournament level — each tie is played on the surface its host nation chose — so the match carries its TIE's surface, taken from the ITF's published tie record (venue, indoor/outdoor, surface) and the same for every rubber of that tie; tournament.surface stays null for them. A team-event match is null only when the tie's venue is not yet published or the match cannot be matched to a single tie (competition, date window and the nations on court must agree). The other structural null is UTR events, which are not in our tournament list at all and so carry tournament_id: null too. For every other event a surface that IS known is published on both the match and its tournament, and the two agree.
indoorboolean
formatstring or null (BO3, BO5, null)
roundstring or nullThe free-text round label, verbatim, as published for the match. It is the round WITHIN the draw this match belongs to, and the draw is named by is_qualifying — NOT by this string. A qualifying draw has its own semi-final and its own final, so "Buenos Aires 3 - Semi-finals" with is_qualifying: true is the semi-final of the QUALIFYING draw, not of the tournament. Read the two fields together or not at all. The label also embeds the tournament name on most matches — parse the suffix after the last " - ", or better, use round_code.
roundstring or nullThe free-text round label, verbatim, as published for the match. It is the round WITHIN the draw this match belongs to, and the draw is named by is_qualifying — NOT by this string. A qualifying draw is listed with the main draw's labels, which count back from the round whose winners qualify. So "Buenos Aires 3 - Semi-finals" with is_qualifying: true is the round before the last qualifying round, not a semi-final, and its round_code reads SF. round_label gives the plain wording. Read the two fields together or not at all. The label also embeds the tournament name on most matches — parse the suffix after the last " - ", or better, use round_code.
round_codestring 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 label does not number). It matches /history/archive/matches?round= exactly. Null when the label is unrecognised — never guessed. IT IS DRAW-RELATIVE AND CANNOT, BY ITSELF, TELL YOU WHETHER A MATCH IS QUALIFYING. The qualifying draw is listed with the main draw's rounds. So the round before the last qualifying round carries SF with is_qualifying: true, the same code as a main-draw semi-final. Only Q/Q1..Q4 appear when the label itself names the round as qualifying, which most labels do not. These values stay within v1. Measured 2026-11-30 over 39,348 qualifying matches: SF 16,140, F 8,607, Q 4,912, R32 3,967, R64 2,933, QF 1,801, Q1 453, R16 418, Q2 66 and null 51. To branch on main draw vs qualifying, use round_code AND is_qualifying together. Read round_label for the qualifying round in words.
round_labelstring or nullAdded 2026-11-30. On a QUALIFYING row (is_qualifying: true), the round in words that cannot be read as a main-draw round. The qualifying draw is listed with the main draw's labels, which count back from the round whose winners qualify. 'Final' is the last qualifying round, and 'Semi-finals' is the round before it. So round "US Open - Final" with round_code F and is_qualifying: true is the third and last qualifying round of the US Open. It reads "Qualifying: round 3 of 3 (final round)" here. diff --git a/openapi.yaml b/openapi.yaml index 1127996..520b5a6 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1433,8 +1433,9 @@ paths: 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. + separately in `tiebreak_games_excluded`, which counts excluded + tiebreak entries, not tiebreaks (one per tiebreak point the record + holds, plus the closing 7-6 entry of the set). operationId: getMatchStatistics x-codeSamples: - lang: shell @@ -8366,10 +8367,12 @@ components: description: >- The free-text round label, verbatim, as published for the match. It is the round WITHIN the draw this match belongs to, and the draw is named by - `is_qualifying` — NOT by this string. A qualifying draw has its - own semi-final and its own final, so `"Buenos Aires 3 - - Semi-finals"` with `is_qualifying: true` is the semi-final of the - QUALIFYING draw, not of the tournament. Read the two fields + `is_qualifying` — NOT by this string. A qualifying draw is listed + with the main draw's labels, which count back from the round whose + winners qualify. So `"Buenos Aires 3 - Semi-finals"` with + `is_qualifying: true` is the round before the last qualifying + round, not a semi-final, and its `round_code` reads `SF`. + `round_label` gives the plain wording. Read the two fields together or not at all. The label also embeds the tournament name on most matches — parse the suffix after the last `" - "`, or better, use `round_code`.