GET
https://api.tennisdatabaseapi.com/v1/players/{id}/seasonsEvery planA player's won and lost by season, and by surface within each season.
Free key includedLive includedArchive includedComplete included
Try itRuns against the live API with your key. Your key stays in this browser.API
GEThttps://api.tennisdatabaseapi.com/v1/players/pl_f560sfd7/seasons
1Parameters
| Name | What it is |
|---|---|
idrequired | An id from another answer, such as pl_ and 8 characters. Ids are our own and never change. |
Anything else in the address answers 422 unknown_parameter, with the list of parameters this endpoint takes.
2Request
curl -H "Authorization: Bearer $TDA_KEY" \ "https://api.tennisdatabaseapi.com/v1/players/pl_f560sfd7/seasons"
$ch = curl_init('https://api.tennisdatabaseapi.com/v1/players/pl_f560sfd7/seasons'); curl_setopt_array($ch, [ CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('TDA_KEY')], CURLOPT_RETURNTRANSFER => true, ]); $answer = json_decode(curl_exec($ch), true); print_r($answer['data']);
import os, requests r = requests.get( "https://api.tennisdatabaseapi.com/v1/players/pl_f560sfd7/seasons", headers={"Authorization": f"Bearer {os.environ['TDA_KEY']}"}, ) print(r.json()["data"])
const r = await fetch("https://api.tennisdatabaseapi.com/v1/players/pl_f560sfd7/seasons", { headers: { Authorization: `Bearer ${process.env.TDA_KEY}` }, }); const { data } = await r.json(); console.log(data);
The code follows the form in Try it, with your key in it once you have entered one. Without a key it reads $TDA_KEY.
3Answer
{
"data": {
"player": { "id": "pl_f560sfd7", "name": "Zverev A.", "country": "Germany" },
"seasons": [
{
"season": 2026,
"won": 67,
"lost": 18,
"by_surface": {
"hard": { "won": 30, "lost": 9 },
"clay": { "won": 20, "lost": 4 },
"grass": { "won": 9, "lost": 2 },
"unknown": { "won": 2, "lost": 0 },
"hard_indoor": { "won": 6, "lost": 3 }
}
},
{
"season": 2025,
"won": 57,
"lost": 26,
"by_surface": {
"hard": { "won": 25, "lost": 11 },
"clay": { "won": 18, "lost": 7 },
"grass": { "won": 6, "lost": 3 },
"hard_indoor": { "won": 6, "lost": 5 },
"unknown": { "won": 2, "lost": 0 }
}
},
{
"season": 2024,
"won": 69,
"lost": 21,
"by_surface": {
"hard": { "won": 32, "lost": 11 },
"clay": { "won": 23, "lost": 6 },
"grass": { "won": 6, "lost": 2 },
"hard_indoor": { "won": 8, "lost": 2 }
}
},
"..."
]
},
"meta": { "count": 16 }
}{
"data": {
"player": { "id": "pl_f560sfd7", "name": "Zverev A.", "country": "Germany" },
"seasons": [
{
"season": 2026,
"won": 67,
"lost": 18,
"by_surface": {
"hard": { "won": 30, "lost": 9 },
"clay": { "won": 20, "lost": 4 },
"grass": { "won": 9, "lost": 2 },
"unknown": { "won": 2, "lost": 0 },
"hard_indoor": { "won": 6, "lost": 3 }
}
},
{
"season": 2025,
"won": 57,
"lost": 26,
"by_surface": {
"hard": { "won": 25, "lost": 11 },
"clay": { "won": 18, "lost": 7 },
"grass": { "won": 6, "lost": 3 },
"hard_indoor": { "won": 6, "lost": 5 },
"unknown": { "won": 2, "lost": 0 }
}
},
{
"season": 2024,
"won": 69,
"lost": 21,
"by_surface": {
"hard": { "won": 32, "lost": 11 },
"clay": { "won": 23, "lost": 6 },
"grass": { "won": 6, "lost": 2 },
"hard_indoor": { "won": 8, "lost": 2 }
}
},
"..."
]
},
"meta": { "count": 16 }
}{
"error": {
"code": "not_found",
"message": "No player with this id.",
"docs": "https://tennisdatabaseapi.com/documentation/errors"
}
}Real answers from the API, made 2026-11-18. Long lists are cut to three items here.
4Fields
| Field | What it holds |
|---|---|
player | id, name, country |
seasons | Newest first: season, won, lost and by_surface (walkovers left out; a season runs from 26 December) |
5Errors
unauthorized | No key, or a key that is unknown or revoked. |
not_found | No such id. |
unknown_parameter | A parameter this endpoint does not take. |
rate_limited | Too many calls this minute, or the allowance used (quota_exceeded). |