DocsDoubles point by point
Doubles point by point
MCP tooldoubles_pointsGET
https://api.tennisdatabaseapi.com/v1/doubles/matches/{id}/pointsPaid plansEvery game and point of a doubles match: which pair served, who won it, breaks and break points.
Free key not 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/doubles/matches/{id}/points
1Parameters
| Name | What it is |
|---|---|
idrequired | An id from another answer, such as dp_ 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/doubles/matches/{id}/points"
$ch = curl_init('https://api.tennisdatabaseapi.com/v1/doubles/matches/{id}/points'); 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/doubles/matches/{id}/points", headers={"Authorization": f"Bearer {os.environ['TDA_KEY']}"}, ) print(r.json()["data"])
const r = await fetch("https://api.tennisdatabaseapi.com/v1/doubles/matches/{id}/points", { 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
The example answers are being prepared. Try it above shows the real answer meanwhile.
4Errors
unauthorized | No key, or a key that is unknown or revoked. |
upgrade_required | The free key: this endpoint is on the Live plan and above. |
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). |