# Tennis Scores API: ATP & WTA Live Scores, Results, Rankings (`publicrecords/tennis-scores-api`) Actor

Every ATP and WTA match for a date or a whole tournament (Grand Slams, singles, doubles, mixed): set-by-set scores, tiebreaks, seeds, round, court and winner, plus ATP/WTA rankings. No login, no proxy.

- **URL**: https://apify.com/publicrecords/tennis-scores-api.md
- **Developed by:** [Public Records](https://apify.com/publicrecords) (community)
- **Categories:** Sports
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 match or ranking rows

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Tennis Scores API: ATP & WTA live scores, results and rankings

**Tennis scraper and tennis API in one call.** Get every **ATP** and **WTA** match for a date, or a whole tournament draw — **Grand Slams** (Wimbledon, US Open, Roland Garros, Australian Open), ATP Finals, WTA 125s — with **set-by-set scores, tiebreak points, seeds, round, court, status (live / finished / retired / walkover) and the winner**. Or get the current **ATP and WTA rankings** (top 150, points, movement).

- No login, no cookies, no proxy, no browser — public JSON, so runs finish in seconds.
- Flat rows that drop straight into a spreadsheet, a betting model or an AI agent.
- Singles, doubles and mixed doubles. A Grand Slam is listed once even when you pick both tours.

### Input (all optional)

| Field | Default | Example |
|---|---|---|
| `mode` | `matches` | `rankings` |
| `tours` | `["atp","wta"]` | `["wta"]` |
| `date` | today's running tournaments (all their matches) | `2026-07-12` |
| `tournament` | – | `wimbledon` |
| `player` | – | `sinner` |
| `matchTypes` | all | `["mens-singles"]` |
| `status` | `all` | `live`, `finished`, `scheduled` |
| `maxResults` | `50` | `700` for a full Slam |

```json
{ "tournament": "wimbledon", "date": "2026-07-12", "maxResults": 20 }
```

A wrong input (e.g. `date: "12/07/2026"`) returns **0 rows and a plain reason** in the run status and the `OUTPUT` record — the run still succeeds and you are not charged for rows.

### Output (one row per match)

`matchId, tour, tournament, tournamentMajor, round, matchType, startTime, status, court, player1Name, player1Country, player1Seed, player1Games, player1Tiebreaks, player2…, winnerName, score, setsPlayed, resultNote, espnUrl`

```json
{ "tournament": "Wimbledon", "round": "Final", "matchType": "mens-singles",
  "player1Name": "Jannik Sinner", "player2Name": "Alexander Zverev",
  "score": "6-7(7-9) 7-6(7-2) 6-3 6-4", "winnerName": "Jannik Sinner", "status": "finished" }
```

`score` is written from player 1's side; tiebreak points are in brackets: `7-6(7-4) 6-3`.

### Coverage and limits

- Source: ESPN's public tennis scoreboard and rankings JSON. ATP and WTA tour-level events, Grand Slams (incl. qualifying), WTA 125. **ITF and most Challenger events are not in this source.**
- History: any past date that ESPN lists (e.g. full 2026 Slams).
- Off-season (December): a run with no date, tournament, player or status returns the most recent tournaments (up to 8 weeks back) and says so in the run status and the `OUTPUT` record (`servedAsOf`). With any of those filters set, an empty result stays empty; use a past date or `mode: rankings`.

### Pricing

Pay per event, nothing else:

| Event | Price |
|---|---|
| Actor start | $0.00005 per GB of memory per run (default 256 MB = 1 event) |
| Match or ranking row | $0.002 per row written to your dataset |

So 50 matches cost about $0.10, a full Grand Slam (~630 matches) about $1.26. `maxResults` caps what you pay. A wrong input returns 0 rows and a reason, so you pay only the start fee.

# Actor input Schema

## `mode` (type: `string`):

Matches returns one row per match. Rankings returns one row per ranked player.

## `tours` (type: `array`):

Grand Slams and mixed events appear once even when both tours are chosen.

## `date` (type: `string`):

Only matches starting on this UTC day. Leave empty for every match of the tournaments running now (whole draws).

## `tournament` (type: `string`):

e.g. wimbledon, us open, finals

## `player` (type: `string`):

e.g. sinner, swiatek

## `matchTypes` (type: `array`):

Empty = all.

## `status` (type: `string`):

finished includes retirements and walkovers.

## `maxResults` (type: `integer`):

You pay per row. A Grand Slam has about 630 matches.

## Actor input object example

```json
{
  "mode": "matches",
  "tours": [
    "atp",
    "wta"
  ],
  "date": "2026-07-12",
  "tournament": "wimbledon",
  "status": "all",
  "maxResults": 20
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "tours": [
        "atp",
        "wta"
    ],
    "date": "2026-07-12",
    "tournament": "wimbledon",
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("publicrecords/tennis-scores-api").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "tours": [
        "atp",
        "wta",
    ],
    "date": "2026-07-12",
    "tournament": "wimbledon",
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("publicrecords/tennis-scores-api").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "tours": [
    "atp",
    "wta"
  ],
  "date": "2026-07-12",
  "tournament": "wimbledon",
  "maxResults": 20
}' |
apify call publicrecords/tennis-scores-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,publicrecords/tennis-scores-api"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/ghSVRixW6z8K3Htcj/builds/pZOM0Hi6iBVSLJBFb/openapi.json
