Head-to-head for any two players, split the way tennis people ask
Wins by surface, by level and in finals, the list of every meeting, and an H2H grid for a whole group such as the ATP Finals field.
Pro $59/mo: real-time scores, full archive since 1968, match webhooks. Free: 500 calls/month, live 60 s delayed, last 30 days. Read the docs
$ curl "https://api.citoapi.com/api/v1/tennis/h2h?player1_id=atp_206173&player2_id=atp_207989" \
-H "x-api-key: YOUR_API_KEY"In short
GET /tennis/h2h?player1_id=&player2_id= returns the record with surface, level and finals splits plus every match. /tennis/h2h/matrix takes up to a group of ids and returns the grid.
Sinner v Alcaraz
curl "https://api.citoapi.com/api/v1/tennis/h2h?player1_id=atp_206173&player2_id=atp_207989" \
-H "x-api-key: YOUR_API_KEY"{
"player1": {
"id": "atp_206173",
"name": "Jannik Sinner",
"current_rank": 2,
"wins": 7
},
"player2": {
"id": "atp_207989",
"name": "Carlos Alcaraz",
"current_rank": 3,
"wins": 11
},
"summary": {
"total_matches": 18,
"finals_matches": 9,
"player1_finals_wins": 4,
"player2_finals_wins": 5,
"grand_slam_matches": 6,
"player1_grand_slam_wins": 2,
"player2_grand_slam_wins": 4
},
"surface_breakdown": {
"hard": {
"player1_wins": 3,
"player2_wins": 7,
"total": 10
},
"clay": {
"player1_wins": 2,
"player2_wins": 4,
"total": 6
},
"grass": {
"player1_wins": 2,
"player2_wins": 0,
"total": 2
}
},
"level_breakdown": {
"grand_slam": {
"player1_wins": 2,
"player2_wins": 4,
"total": 6
},
"masters_1000": {
"player1_wins": 2,
"player2_wins": 5,
"total": 7
},
"tour_finals": {
"player1_wins": 1,
"player2_wins": 0,
"total": 1
}
}
}Real response, trimmed. The full body also lists every meeting with score, round and date.
Walkovers and exhibitions are left out of the counts, as in the head-to-head records the tours publish, and reported separately.
A whole group at once
Three-player matrix
curl "https://api.citoapi.com/api/v1/tennis/h2h/matrix?player_ids=atp_206173,atp_207989,atp_100644" \
-H "x-api-key: YOUR_API_KEY"{
"players": [
{
"id": "atp_206173",
"name": "Jannik Sinner",
"wins": 18
},
{
"id": "atp_207989",
"name": "Carlos Alcaraz",
"wins": 18
},
{
"id": "atp_100644",
"name": "Alexander Zverev",
"wins": 10
}
],
"matrix": {
"atp_206173": {
"atp_206173": "-",
"atp_207989": "7-11",
"atp_100644": "11-4"
},
"atp_207989": {
"atp_206173": "11-7",
"atp_207989": "-",
"atp_100644": "7-6"
},
"atp_100644": {
"atp_206173": "4-11",
"atp_207989": "6-7",
"atp_100644": "-"
}
}
}Find ids by name, then get the H2H
import requests
H = {"x-api-key": "YOUR_API_KEY"}
B = "https://api.citoapi.com/api/v1/tennis"
def pid(name):
return requests.get(f"{B}/players/search", params={"q": name}, headers=H).json()["items"][0]["id"]
h2h = requests.get(f"{B}/h2h", params={"player1_id": pid("sinner"), "player2_id": pid("alcaraz")}, headers=H).json()
print(h2h["player1"]["name"], h2h["player1"]["wins"], "-", h2h["player2"]["wins"], h2h["player2"]["name"])
for surface, s in h2h["surface_breakdown"].items():
if s["total"]:
print(f' {surface}: {s["player1_wins"]}-{s["player2_wins"]}')Plans for tennis
| Free | Starter | Pro | Scale | Business CSV | |
|---|---|---|---|---|---|
| Price | $0 | $15/mo | $59/mo | $100/mo | $299/mo (+$99/mo extra sport) |
| Credits / mo | 500/month | 10,000/month | 250,000/month | 1,000,000/month | 3,000,000/month |
| Rate limit | 10/min | 30/min | 100/min | 400/min | 600/min |
| Live scores | 60 s delayed | 60 s delayed | Real time | Real time | Real time |
| History | Last 30 days | Last 90 days | Full archive (1968-) | Full archive (1968-) | Full archive (1968-) + Master/Delta CSV |
| Deep-history (>90d) sub-cap | 0 | 0 | 50,000/mo (5x narrow / bulk) | 100,000/mo (5x narrow / bulk) | Unlimited in quota |
| Prediction-market odds | 3-day free trial | Upgrade to Pro | Pre-match, live & history | Pre-match, live & history | API + opening/closing CSV |
| Point-in-time Elo | 3-day free trial | Career & leaders | Full 1968- history | Full 1968- history | API + pre-match CSV |
| Webhooks | No | No | Yes | Yes | Yes |
| WebSockets | No | No | +$15/mo (points + odds) | Included | Included (points + odds) |
| Bulk CSV exports | Sample CSV | — | — | — | Master + Daily Delta CSV (0 REST credits) |
| Commercial use | No | 1 product | Yes | Yes | Yes |
Tennis on each plan, as the API enforces it (checked 15 Nov 2026). Paid API plans: 7-day money-back guarantee.
Frequently asked
Ready to go
live ?
Pro unlocks real-time scores, point-by-point, prediction-market odds, point-in-time Elo back to 1968, and webhooks for $59/mo with a 7-day money-back guarantee. Free includes a 3-day odds & Elo trial; Business ($299/mo) delivers full CSV datasets.
Compare every plan