# Tennis Scraper — ATP & WTA Scores, Results & Rankings (`northbell/tennis-scores-rankings`) Actor

ATP and WTA tennis data (espn.com): match results with set scores and tiebreaks, live scores, schedules, seeds, courts and the top-150 rankings with points and movement. Run it again to see which matches changed score or status and who moved in the rankings. No login.

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

## Pricing

from $0.40 / 1,000 match or ranking lines

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Scraper — ATP & WTA Scores, Results & Rankings

Pick the tour — ATP, WTA or both — and get one clean row per match: **players, seeds, score by set (tiebreaks included), status, round, court, start time and winner**, for finished, live and upcoming matches on the dates you choose. Or switch to rankings and get the **ATP and WTA top 150 with points and movement**. **$0.50 per 1,000 rows**, no login, no API key.

Run it again, or put it on a schedule, and every row also tells you **what changed since the last run**: matches that went from scheduled to live to final (`statusChanged`), matches whose score moved (`scoreChanged`), matches that are new (`isNew`), and for rankings how far each player moved (`rankChangeSinceLastRun`, positive means up) and how many points they gained or lost. ESPN only shows you the picture as it is now; the movement comes from your own runs.

### What you get

Every row has `type` (`match`, `ranking` or `error`), `tour` and `observedAt`.

**Matches** (`"mode": "matches"`)

| Field | What it is |
|---|---|
| `tournament`, `tournamentId`, `major`, `draw`, `round`, `matchId` | the tournament, whether it is a Grand Slam, the draw (`Men's Singles`, `Women's Doubles`, `Mixed Doubles`), the round as ESPN names it (`Round 2`, `Quarterfinal`, `Qualifying 1st Round`) and ESPN's match id |
| `day`, `startAt`, `startTimeKnown` | the match day (UTC date) and the exact start in UTC. `startAt` is `null` and `startTimeKnown` is `false` while ESPN has only the day (often for matches later in the week) |
| `status`, `statusDetail`, `currentSet` | `scheduled`, `in progress`, `final`, `retired`, `walkover`, `delayed`, `suspended`, `postponed` or `canceled`; while a match is live `statusDetail` is ESPN's wording (`3rd Set`) and `currentSet` is the set number |
| `court`, `location` | the court (`Center Court`, `Court 4`) and the place as ESPN lists it (`Beijing, China PR`) |
| `player1`, `player2` | each side: `id`, `name`, `country`, `countryCode` (ESPN's three letters, `GER`), `seed` (the tournament seed) and `serving` (see Notes). A doubles pair has both names (`A / B`) and both countries when they differ (`BRA / GER`) |
| `score`, `sets` | the score from `player1`'s side, `6-4 3-6 7-6(5)` (the number in brackets is the loser's tiebreak points), and the same by set: `set`, `player1`, `player2` (games), `tiebreakPlayer1`, `tiebreakPlayer2`, `inProgress` |
| `winner`, `summary` | the winner's name once the match is decided; ESPN's own result line (`(1) Alexander Zverev (GER) bt Cameron Norrie (GBR) 7-6 (7-1) 6-4`: winner first, seeds in brackets, scores from the winner's side; for a live match `X (ARG) leads Y (POR) 5-4`, from the leader's side) when it has one |
| `tournamentUrl`, `bracketUrl` | the tournament's score page and draw page on ESPN |
| `isNew`, `previousStatus`, `statusChanged`, `previousScore`, `scoreChanged` | the change since your previous run (`null` on the first run) |

**Rankings** (`"mode": "rankings"`)

| Field | What it is |
|---|---|
| `date`, `rank`, `points` | the date of the list ESPN shows, the position and the ranking points |
| `player`, `playerId`, `country`, `countryCode`, `url` | the player (`playerId` is the same id as `player1.id` in match rows), the country and the player's ESPN page |
| `previousRank`, `rankChange` | the position in the list before this one and the move: `rankChange` is `previousRank` minus `rank`, so **positive means moved up** |
| `rankAtLastRun`, `rankChangeSinceLastRun`, `pointsChangeSinceLastRun` | the change since **your** previous run (`null` on the first run, or for a player who was not in the list then) |
| `enteredSinceLastRun`, `rankingUpdatedSinceLastRun` | `true` for a player who was not in the top 150 at your last run; `true` when ESPN has published a new list since your last run (the move columns stay at 0 until it does) |

### Run it again and again

- **On a schedule**: save your input as a task and add a **Schedule**: rankings weekly, matches every day. Send each run to Google Sheets, Slack or email with an integration on the task.
- **Watch for changes**: Keep the same input on the schedule. Each run is its own dataset with the date it ran, so the series builds up run by run and you can compare one day with the last.
- **In bulk**: Pick several **Tours** in one run.

### Use it for

- **Live score alerts and dashboards**: poll today's matches every few minutes and react when `scoreChanged` or `statusChanged` is `true`
- **Daily results and tomorrow's order of play**: yesterday's finals with set scores and tomorrow's matches with court and start time, in a sheet or a database
- **Following a player or a tournament**: one name in `player` or `tournament` and a date range gives the whole path through the draw
- **Ranking movement**: run it weekly and see who climbed, who dropped and who entered the top 150, with the points behind it
- **Tennis sites, newsletters and fantasy tools**: a clean feed instead of parsing ESPN's pages

### Input

Today's matches on both tours:

```json
{ "tours": ["atp", "wta"] }
```

One tournament over a week, results and what is still to play:

```json
{ "tours": ["atp"], "dates": "2026-10-05 to 2026-10-11", "tournament": "Shanghai" }
```

A player's matches this week:

```json
{ "dates": "2026-10-05 to 2026-10-11", "player": "Sinner" }
```

The top 50 of each tour:

```json
{ "mode": "rankings", "maxRanking": 50 }
```

Leave **Dates** empty for today. Use `yesterday`, `tomorrow`, `today+3`, a date such as `2026-10-08`, or a range such as `2026-10-08 to 2026-10-14` (up to 14 days). **Tournament** and **Player** take a part of a name and ignore capital letters and accents; separate several with commas (`"player": "Sinner, Alcaraz"`).

What the Actor remembers (to show the change since the last run) is kept in a named key-value store in your Apify account, so the second run already shows changes. Schedule it (Apify → Schedules) to follow live matches or a weekly ranking.

### Pricing

**$0.50 per 1,000 rows** (a row is one match or one ranking line), plus $0.01 per run. Error rows (a day or a list ESPN could not answer) are free. The $0.01 run-start fee is the one charge every run pays, even one that returns nothing. For scale: both tours' matches for one day are a few dozen rows (36 early on 8 October 2026), 1 to 7 October 2026 was 337 rows ($0.17), and the top 100 of both tours is 200 rows ($0.10).

### Notes

- **Public data only.** The Actor reads ESPN's public site API, the same data behind the tennis score pages on espn.com. It is not affiliated with or endorsed by ESPN, the ATP or the WTA. ESPN can change this API without notice. Player names, seeds, countries and results are sports information about public athletes; nothing else about a person is returned.
- **Days are UTC.** `startAt` is the exact start in UTC and `day` is its UTC date; a match that starts at 02:00 UTC belongs to that UTC day even when it is the evening before in New York. **Empty dates mean today (UTC).** Live matches are always included when your dates contain today, even one that began late the day before. There is no country or language setting; names and countries are in English as ESPN writes them. A day on which no tour plays simply returns no rows (the run log says so).
- **A range costs one ESPN request per day and tour** (ESPN returns the whole tournament for a day, not a date range), so it is limited to 14 days. Each request is about 1 MB, a Grand Slam up to 2 MB, so a 14-day run of both tours (28 requests) took about 20 seconds in testing.
- **Which matches.** ESPN's ATP list holds the ATP Tour events (Grand Slams, the Shanghai Masters, 500 and 250 events such as the China Open or Gstaad) and its WTA list the WTA events, including the smaller ones (Suzhou and Samsun in October 2026), with qualifying rounds and singles and doubles draws. On the dates checked, ATP Challenger and ITF events were not in ESPN's lists, so they are not here. Combined events (for example the China Open) are in both lists; each match is returned once, under the tour of its draw (men's draws `atp`, women's draws `wta`). Mixed doubles carry `tour: "mixed"` and are returned only when both tours are chosen. Any other draw (for example juniors) is skipped.
- **Matches with no players yet are left out.** A match in which both players are still undecided is not returned; a match with one player decided is, and the other side has `name`, `id`, `country`, `countryCode` and `seed` set to `null`.
- **Fields that are only filled in some cases:** `startAt` (only when ESPN has a start time; otherwise `null` with `startTimeKnown: false`), `court` (once ESPN assigns one), `seed` (seeded players only; the tournament seed, not the world ranking), `score` and `sets` (from the first game played; `null` for matches that have not started and for walkovers), `winner` (once decided; `null` for a live match; a retirement names the player who stays in the tournament; for a walkover it names the player ESPN credits), `summary` (finished and live matches), `statusDetail` and `currentSet` (live, delayed, suspended or postponed matches), `serving` (`true` or `false` for a live match only when ESPN reports who serves, otherwise `null`; in practice often `null`), and the Rankings columns `previousRank` and `rankChange` (`null` when ESPN gives no earlier position).
- **The first run has no change fields.** `isNew`, `previousStatus`, `statusChanged`, `previousScore`, `scoreChanged` and, for rankings, `rankAtLastRun`, `rankChangeSinceLastRun`, `pointsChangeSinceLastRun`, `enteredSinceLastRun` and `rankingUpdatedSinceLastRun` are `null` on the first run. From the second run `isNew` is `true` for a match not seen before and `false` for one that was; the other match change fields stay `null` for a new match. Matches are remembered for 21 days. If you run with different dates each time the matches are different each time, so the change fields mostly stay empty: to follow live matches, run several times on the same day with the same dates.
- **Rankings** come as ESPN lists them: the top 150 of each tour, no more (ESPN gives no further pages), so the highest `maxRanking` is 150. `date` is the date of the list ESPN gives. Your own movement (`rankChangeSinceLastRun`) is 0 for everyone until ESPN publishes a new list. The Actor remembers the whole top 150 at each run, not only the rows you asked for, so changing `maxRanking` between runs does not break the comparison. Naming a **Player** searches the whole top 150.
- **Scores** are read from player 1's side (`6-4 3-6 7-6(5)` is player 1 winning the first set 6-4). Player 1 and player 2 follow ESPN's order of the match and stay the same between runs; the winner is not always player 1, so use `winner` (or `sets`) to tell. A doubles match tiebreak (first to 10) comes in the shape ESPN stores it, which differs by event: as a third set with the points, such as `4-10` (`10-4` when player 1 wins it), or as a one-game set with the loser's points in brackets, such as `0-1(7)` when player 2 wins it 10-7 (`1-0(4)` when player 1 wins it 10-4); the same applies to `sets`. A set that was stopped (a retirement) keeps the games reached, so `4-6 0-0` means the match ended before a game was played in the second set.
- **Team and pair names** in doubles are the two players' names joined with `/`, so a filter on **Player** finds a match through either partner.
- **No link to a single match.** ESPN's data does not carry a page address per match, so a row links to its tournament (`tournamentUrl`, `bracketUrl`). Use `matchId` to identify a match between runs.

To follow other sports in the same way — NFL, NBA, MLB, NHL, college sports and soccer leagues — see [ESPN Scores Scraper](https://apify.com/northbell/espn-scores-scraper).

### For AI agents

`{"tours": ["atp"], "mode": "rankings", "maxRanking": 5}` returns the top 5 of the ATP list: one `ranking` row each with `rank`, `player`, `points`, `rankChange`. `{"dates": "today"}` returns the `match` rows of today on both tours: `status`, `player1` and `player2` (`name`, `seed`, `country`), `score`, `sets`, `winner`, `court`, `startAt`; add `"player": "Sinner"` or `"tournament": "Shanghai"` to narrow it. Rows have `type`: `match`, `ranking` or `error`; error rows carry `step`, `tour`, `message` (and `day` for a match day) and are free.

# Actor input Schema

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

Which tours to read. Men's draws come from ATP, women's draws from WTA. Mixed doubles (Grand Slams) are included only when both tours are chosen.

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

matches: every match on the dates below (finished, live or upcoming). rankings: the current ATP and WTA ranking lists (top 150 at most) with points and movement.

## `dates` (type: `string`):

Matches mode: a date (2026-10-08 or 20261008), a range (2026-10-08 to 2026-10-14, at most 14 days), or today, yesterday, tomorrow, today+3. Empty means today. Days are UTC dates; live matches are always included when the range contains today. Rankings ignore this.

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

Keep only matches of tournaments whose name contains this text, for example Shanghai, Roland Garros or China Open. Separate several names with commas. Matches mode only.

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

Keep only matches (or ranking lines) of players whose name contains this text, for example Sinner or Swiatek. Separate several names with commas. Doubles pairs are matched on either partner. In rankings mode the whole top 150 is searched.

## `maxRanking` (type: `integer`):

Rankings mode: how many players to return per tour, from rank 1. ESPN publishes the top 150 of each tour, so 150 is the most. Ignored when you name a player.

## Actor input object example

```json
{
  "tours": [
    "atp",
    "wta"
  ],
  "mode": "matches",
  "maxRanking": 100
}
```

# Actor output Schema

## `matches` (type: `string`):

Results, live scores and schedule with players, seeds, set scores and the change since the last run.

## `rankings` (type: `string`):

ATP and WTA rankings with points and the rank change, including the change since the last run.

# 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"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("northbell/tennis-scores-rankings").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",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("northbell/tennis-scores-rankings").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"
  ]
}' |
apify call northbell/tennis-scores-rankings --silent --output-dataset

```

## MCP server setup

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

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/dd7XT9vp5a9TG1bsh/builds/ndHLzhhUsjeeZ39qq/openapi.json
