/tennis/h2h/{a}/{b}Tennis head-to-head
Player a's record against player b: wins and earlier meetings (latest first, scores in sets). Totals are the provider's whole history when it was read (before an ATP or WTA singles match between the two), else our stored meetings.
Parameters
ainteger · pathrequiredPlayer ID
binteger · pathrequiredOther player ID
Response
JSON with success, the result in data, and where the endpoint pages its results meta.
dataobjectmatchesintegermeetingsarray of objectlatest first
datestringYYYY-MM-DD
match_idintegerscore_aintegerscore_bintegertournamentstringwinner_idintegerplayer_aobjectidintegernamestringwinsintegerplayer_bobjectidintegernamestringwinsintegersourcestringSource of the totals: the data provider (its whole history, read before a coming ATP or WTA match) or ours (the meetings listed).
errorobjectcodestringmessagestringmetaobjectattributionstringAttribution a data source's licence asks for (Cricsheet's history).
limitintegeroffsetintegertotalintegersuccessboolean
Errors
| Status | Code | When |
|---|---|---|
| 400 | INVALID_PARAM | A parameter is missing or wrong, and the message names it. Fix the request; do not retry it. |
| 402 | x402 offers | No key and no valid payment: the body lists what to pay. Only a 200 answer is charged. |
| 404 | NOT_FOUND | No record with that id. |
All errors have the shape described in Errors and limits.
Generated from the OpenAPI file, version 1.0. See it as JSON