GET
https://api.tennisdatabaseapi.com/v1/markets/upsetsEvery planThe longest closing prices that won at Grand Slam and tour level.
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/markets/upsets
1Parameters
None. Anything in the address answers 422 unknown_parameter.
2Request
curl -H "Authorization: Bearer $TDA_KEY" \ "https://api.tennisdatabaseapi.com/v1/markets/upsets"
$ch = curl_init('https://api.tennisdatabaseapi.com/v1/markets/upsets'); 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/markets/upsets", headers={"Authorization": f"Bearer {os.environ['TDA_KEY']}"}, ) print(r.json()["data"])
const r = await fetch("https://api.tennisdatabaseapi.com/v1/markets/upsets", { 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": [
{
"match": "mt_cd7qmm4p",
"date": "2026-05-28",
"winner": { "id": "pl_09w6909c", "name": "Cerundolo J." },
"loser": { "id": "pl_vsvgrrag", "name": "Sinner J." },
"tournament": { "id": "tn_xq6dqwv3", "name": "French Open", "season": 2026 },
"round": "round_2",
"score": "3-6 2-6 7-5 6-1 6-1",
"closing": { "winner": 23.5, "loser": 1.01 }
},
{
"match": "mt_p1t5x1nv",
"date": "2012-06-28",
"winner": { "id": "pl_m21kcfxa", "name": "Rosol L." },
"loser": { "id": "pl_qq18bm0d", "name": "Nadal R." },
"tournament": { "id": "tn_4t7csf87", "name": "Wimbledon", "season": 2012 },
"round": "round_of_64",
"score": "6-7(9) 6-4 6-4 2-6 6-4",
"closing": { "winner": 23.45, "loser": 1.01 }
},
{
"match": "mt_vv01a0pq",
"date": "2013-06-26",
"winner": { "id": "pl_x9r18zae", "name": "Stakhovsky S." },
"loser": { "id": "pl_z5vm51dn", "name": "Federer R." },
"tournament": { "id": "tn_4t7csf87", "name": "Wimbledon", "season": 2013 },
"round": "round_of_64",
"score": "6-7(5) 7-6(5) 7-5 7-6(5)",
"closing": { "winner": 22.96, "loser": 1.01 }
},
"..."
],
"meta": {
"count": 10,
"counted_at": "2026-11-18 03:47:34",
"note": "Grand Slam and tour-level matches of at least two sets, in a main-draw round."
}
}{
"data": [
{
"match": "mt_cd7qmm4p",
"date": "2026-05-28",
"winner": { "id": "pl_09w6909c", "name": "Cerundolo J." },
"loser": { "id": "pl_vsvgrrag", "name": "Sinner J." },
"tournament": { "id": "tn_xq6dqwv3", "name": "French Open", "season": 2026 },
"round": "round_2",
"score": "3-6 2-6 7-5 6-1 6-1",
"closing": { "winner": 23.5, "loser": 1.01 }
},
{
"match": "mt_p1t5x1nv",
"date": "2012-06-28",
"winner": { "id": "pl_m21kcfxa", "name": "Rosol L." },
"loser": { "id": "pl_qq18bm0d", "name": "Nadal R." },
"tournament": { "id": "tn_4t7csf87", "name": "Wimbledon", "season": 2012 },
"round": "round_of_64",
"score": "6-7(9) 6-4 6-4 2-6 6-4",
"closing": { "winner": 23.45, "loser": 1.01 }
},
{
"match": "mt_vv01a0pq",
"date": "2013-06-26",
"winner": { "id": "pl_x9r18zae", "name": "Stakhovsky S." },
"loser": { "id": "pl_z5vm51dn", "name": "Federer R." },
"tournament": { "id": "tn_4t7csf87", "name": "Wimbledon", "season": 2013 },
"round": "round_of_64",
"score": "6-7(5) 7-6(5) 7-5 7-6(5)",
"closing": { "winner": 22.96, "loser": 1.01 }
},
"..."
],
"meta": {
"count": 10,
"counted_at": "2026-11-18 03:47:34",
"note": "Grand Slam and tour-level matches of at least two sets, in a main-draw round."
}
}{
"error": {
"code": "unknown_parameter",
"message": "Unknown parameter: plan. This endpoint takes: no parameters.",
"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 |
|---|---|
match, date, winner, loser, tournament, round, score | The match |
closing | The winner's and the loser's closing prices |
5Errors
unauthorized | No key, or a key that is unknown or revoked. |
unknown_parameter | A parameter this endpoint does not take. |
rate_limited | Too many calls this minute, or the allowance used (quota_exceeded). |