Tennis API documentation
14 tennis data endpoints over REST and MCP. One key, credits per call.
Coming from ESPN's tennis feed or the free tennis sources? See how they compare.
Your first call
Sign up for a free key (500 credits every month, no card), swap it in for YOUR_API_KEY, and send this. search_players costs 1 credit.
Request
curl -X POST https://mcp.acesapi.com/v1/search_players \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"name": "sinner"
}'Response
{
"tour": "ATP",
"players": [
{
"player_id": "3623",
"name": "Jannik Sinner",
"country": "ITA",
"date_of_birth": "2001-08-16",
"matches": 459,
"last_match": "2026-07-12",
"current_rank": 2,
"plays": "right"
}
],
...First 14 lines. Full response and every field
REST / cURL
POST to /v1/{tool_name} with your params as JSON body. No MCP client needed:
curl -X POST https://mcp.acesapi.com/v1/list_tournaments \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY"With parameters:
curl -X POST https://mcp.acesapi.com/v1/search_players \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{"name":"sinner"}'Save the raw JSON
Keep your key in an environment variable so it never sits in a script or a chat, and write each response to a file:
export ACESAPI_API_KEY="your key here"
curl -s -X POST https://mcp.acesapi.com/v1/search_players \
-H "Content-Type: application/json" \
-H "x-api-key: $ACESAPI_API_KEY" \
-d '{"name":"sinner"}' \
-o search_players.jsonThe file holds exactly what the API returned. Tools that page their results return a next_offset; send it back as offset for the next page.
ChatGPT and Claude
Both connect to the MCP server with a sign-in instead of a key: you sign in to AcesAPI once and press Allow. Step-by-step for ChatGPT and Claude.
Python
The official client is on PyPI. It has no required dependencies. Set ACESAPI_API_KEY to your key and it is picked up automatically:
pip install acesapiThen call any endpoint as a method (the example uses pandas, pip install "acesapi[pandas]"):
from acesapi import Client
client = Client()
ranks = client.get_rankings(limit=5)
for row in ranks["rankings"]:
print(row["rank"], row["name"], row["points"])Claude Desktop
Add to your claude_desktop_config.json:
{
"mcpServers": {
"acesapi": {
"url": "https://mcp.acesapi.com/mcp?key=YOUR_API_KEY"
}
}
}Claude Code
One command:
claude mcp add acesapi https://mcp.acesapi.com/mcp?key=YOUR_API_KEY --transport streamable-httpFind the right call
All 14 questions- Which tournaments are on grass this year, and who won them?list_tournaments
- What is Jannik Sinner's player id?search_players
- Show me the Wimbledon 2025 draw with every scoreget_tournament
- Every final played this seasonget_matches
- Who plays in the next three days?get_schedule
- How did the Wimbledon final go, set by set?get_match
What timestamps mean, whether lines are pre-game, and what you can do with the data: data timing and rights.
Guides
All guidesWorking Python, JavaScript and cURL for common questions, each run against the live API.
- How do I get tennis Elo ratings by surface in Python?get_ratings
- How do I compare a tennis player's results on clay, grass and hard court?get_surface_splits
- How do I get a tennis head-to-head record in Python?get_head_to_head
- How do I get set-by-set tennis scores for a tournament in Python?get_matches
- How do I get a tennis player's ranking history in Python?get_rankings
- How do I compare ATP closing odds with the result and Elo in Python?get_match
- How do I get WTA odds from open to close by sportsbook in Python?get_match
- How do I get today's ATP tennis schedule in Python?get_schedule
- How do I get a tennis tournament draw and results in Python?get_tournament
- How do I get a tennis player's season stats in Python?get_player_stats
Endpoints
14 endpoints by category. Each page has parameters, requests in three formats, a full example response and every response field.
Static reference1 credit/call
Basic lookup2 credits/call
- get_tournament2 creditsA tournament's draw and results, round by round, with every set
- get_matches2 creditsMatch results by day, tournament or season, with set and tiebreak scores
- get_schedule2 creditsUpcoming and in-progress matches for the next days
- get_match2 creditsOne match: sets, tiebreak points, seeds, ratings, what the score says and its sportsbook lines
- get_rankings2 creditsWeekly ranking lists since 2007, or one player's ranking history
- get_ratings2 creditsOur Elo ratings, overall or by surface
Stats + aggregation5 credits/call
- get_player5 creditsProfile, ranking, ratings, career record, titles and recent matches
- get_player_matches5 creditsA player's matches with scores and ratings, filtered by season, surface or opponent
- get_odds5 creditsEach sportsbook's opening and closing moneylines for a match or a whole tournament, with the games handicap and total
Reference
Authentication
Every request requires an API key. Pass it via header or query parameter:
x-api-key: YOUR_API_KEY
# or
Authorization: Bearer YOUR_API_KEY
# or (MCP only)
?key=YOUR_API_KEYVerify your email, then create an API key from the dashboard. Free accounts get 500 credits every month.
Base URL
https://mcp.acesapi.comREST API: POST /v1/{tool} with JSON body. Works with cURL, Python, any HTTP client.
MCP: POST /mcp via Streamable HTTP. Works with Claude Desktop, Claude Code, Cursor, and any MCP client.
Rate limits
| Credit balance | Rate limit |
|---|---|
| 100 credits or more | 60 req/min |
| Under 100 credits | 10 req/min |
The limit is the same on every plan. It is burst protection, not the spend boundary; credits are that, and they are enforced per request. Running low slows you down so you notice before the balance reaches zero.
Error handling
| Code | Meaning | What to do |
|---|---|---|
| 400 | Invalid parameters | Check required fields and value types |
| 401 | Invalid or missing API key | Check your x-api-key header |
| 402 | Insufficient credits | Top up your wallet or upgrade your plan |
| 429 | Rate limit exceeded | Wait and retry (see limits above) |
| 500 | Server error | Retry with idempotency key. Credits auto-refund on server errors. |
Pass x-idempotency-key or x-request-id headers to make retries duplicate-safe.
Data coverage
WTA Tour (women's professional tennis) (WTA)
AcesAPI also serves the WTA. Pass "league": "wta" to any tool that lists it, or connect to https://mcp.acesapi.com/mcp/wta. WTA API coverage.
| Data | Status | Coverage | Volume |
|---|---|---|---|
Matches and scores Players, seeds, round, status, every set's games and tiebreak points, retirements and walkovers. Singles only. Main draws from 2007, qualifying from 2022. About 0.6% of records left mid-match are marked incomplete. | Available | 2007 to current | 124,000+ finished singles matches, both tours |
Tournaments and draws Dates, city, surface, Grand Slam flag, each round's matches and the champion. Surface is from our own reference: placed for 99.6% of ATP and 96% of WTA matches, null for the rest. | Available | 2007 to current | About 60 to 75 ATP and 55 to 110 WTA tournaments a year |
Players Date of birth, country, height, playing hand, career record, titles, head to head and records by surface. | Available | Everyone in a listed match | Profiles and careers |
Rankings Rank, previous rank and points per weekly list, and each player's ranking history. Only 35 to 49 lists a year per tour are kept; the other weeks are missing. | Partial | 2007 to current | Top 100 to 150, most weeks |
Ratings Our Elo, overall and per surface, before and after every match. | Available | 2007 to current | Every player, every completed match |
Coverage describes the datasets AcesAPI supports. Freshness and operational health are tracked separately.
Odds snapshot definitions
opening: The first moneyline a sportsbook posted for the match.
closing: The sportsbook's last moneyline before the match.
Odds coverage currently documents pre-match moneylines for Grand Slam matches (and, from August 2024, ATP Masters / WTA 1000 matches). Grand Slams from mid-2020 and ATP Masters / WTA 1000 events from August 2024, from the sportsbook odds archive. Other tournaments have no lines. Pre-match prices are refreshed hourly, and nothing is in play. Lines come back from get_odds and inside get_match. Tennis lines are pre-match moneylines (opening and closing) for Grand Slam matches from mid-2020 and ATP Masters / WTA 1000 matches from August 2024, returned by get_odds, with the games handicap and total where posted, and inside get_match.
Response format
REST API
All successful REST responses wrap the result in a data key:
{ "data": { "events": [...], "count": 50 } }Error responses return:
{ "error": "Insufficient credits", "message": "This tool costs 5 credits, you have 2" }MCP Protocol
MCP responses follow the standard MCP tool result format. The data is returned directly (no data wrapper). Both access methods return identical data, just different envelopes.
Conventions
Seasons: 4-digit year (tournaments are grouped by calendar year). Example: 2025.
Match IDs: Match ids, e.g. 157774. Get them from get_tournament or get_matches, or from get_schedule.
Player IDs: Athlete ids. Get them from search_players, by name.
Tournament IDs: Event ids with the year, e.g. 188-2025 (Wimbledon 2025). Get them from list_tournaments.
Pagination: Endpoints use a limit parameter. No cursor or offset. Narrow your filters to get different slices of data.
Credits: Deducted before the request executes. Automatically refunded on server errors. Monthly credits are used first, then wallet balance.