Skip to content

Guides

How do I get today's ATP tennis schedule in Python?

ATP matches in the next days with tournament, round, court and players. The call returned 6 Nitto ATP Finals matches from November 18 to 20.

Code verified October 12, 2026. One call to get_schedule, 2 credits.

The call

days is 1 to 30. Matches carry a start time and court where the tour has set one. Pass league: "wta" for the WTA. For results of a day already played use get_matches with date.

import requests
import pandas as pd

API_KEY = "YOUR_API_KEY"

resp = requests.post(
    "https://mcp.acesapi.com/v1/get_schedule",
    headers={"x-api-key": API_KEY},
    json={
        "days": 2,
    },
    timeout=60,
)
resp.raise_for_status()
data = resp.json()["data"]

matches = pd.DataFrame(data["matches"])
print(data["tour"], len(matches), "matches in the next", data["days"], "days")
print(matches.groupby(["match_date", "tournament", "round"]).size())
cols = ["match_date", "round", "court", "player1", "player2", "status"]
print(matches[cols].head(10).to_string(index=False))

Replace YOUR_API_KEY with a key from your dashboard. Python needs requests and pandas (pip install requests pandas). JavaScript runs on Node 18 or newer, or in the browser.

Or use the official client: pip install acesapi

What comes back

The data object of the response, trimmed to the first rows. Every field is real output from the run above.

{
  "tour": "ATP",
  "days": 2,
  "matches": [
    {
      "match_id": "187509",
      "tournament_id": "339-2026",
      "tournament": "Nitto ATP Finals",
      "season": 2026,
      "surface": "hard",
      "indoor": true,
      "starts_at": "2026-11-18T13:00:00.000Z",
      "match_date": "2026-11-18",
      "draw": "main",
      "round": "Group Stage",
      "round_order": 15,
      "court": "Inalpi Arena",
      "player1_id": "3782",
      "player1": "Carlos Alcaraz",
      "player1_country": "ESP",
      "seed1": null,
      "player2_id": "2383",
      "player2": "Daniil Medvedev",
      "player2_country": "RUS",
      "seed2": null,
      "winner_id": null,
      "status": "scheduled",
      "outcome": null,
      "score": null,
      "sets1": null,
      "sets2": null,
      "games1": null,
      "games2": null
    },
    {
      "match_id": "187514",
      "tournament_id": "339-2026",
      "tournament": "Nitto ATP Finals",
      "season": 2026,
      "surface": "hard",
      "indoor": true,
      "starts_at": "2026-11-18T19:30:00.000Z",
      "match_date": "2026-11-18",
      "draw": "main",
      "round": "Group Stage",
      "round_order": 15,
      "court": "Inalpi Arena",
      "player1_id": "7602",
      "player1": "Flavio Cobolli",
      "player1_country": "ITA",
      "seed1": null,
      "player2_id": "2708",
      "player2": "Frances Tiafoe",
      "player2_country": "USA",
      "seed2": null,
      "winner_id": null,
      "status": "scheduled",
      "outcome": null,
      "score": null,
      "sets1": null,
      "sets2": null,
      "games1": null,
      "games2": null
    },
    "...17 more"
  ],
  "count": 6
}

What to do next

  • get_matches (2 credits). Results with set scores for a day already played.
  • get_head_to_head (3 credits). The record between two players in a match.

More guides

The same guide for other sports

Rather ask Claude? 18 free Claude skills call these endpoints for you.

Start with 500 free credits every month

No card. REST or MCP.