# Tennis Results Scraper: ATP & WTA Draws, Rankings (`verrr/tennis-results-scraper`) Actor

Scrape ATP and WTA singles results, upcoming pairings and top 20 rankings from Wikipedia. One JSON record per match with round, players, seeds, score, surface and category, from 2010 to today. Openly licensed source (CC BY-SA), no login, no proxy, no odds.

- **URL**: https://apify.com/verrr/tennis-results-scraper.md
- **Developed by:** [VER RR](https://apify.com/verrr) (community)
- **Categories:** Other
- **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 tennis results

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 results scraper for ATP and WTA singles: match results, upcoming pairings and top 20 rankings from Wikipedia, as one clean JSON record per match. The source allows commercial reuse under CC BY-SA 4.0, which asks for attribution and share-alike, so you can build on the data without relying on a site whose terms forbid scraping. Run it with no input to get the latest matches. No odds, ever.

### What data you get

Each match record has:

- `matchId`: stable ID, so a scheduled match keeps its ID when the result arrives
- `tour`, `season`, `tournament`, `category`, `location`, `surface`, `drawSize`
- `weekStart`: the first day of the tournament's listed week, usually a Monday
- `round`: Final, Third place, Semifinals, Quarterfinals, Fourth round, Third round, Second round or First round, or Round of 16, 32, 64 or 128 where a draw is headed that way
- `status`: completed, retired, walkover, defaulted, inProgress or scheduled
- `player1`, `player2`, each with `Country`, `Seed` and `Entry` (Q, WC, LL, PR and so on)
- `winner`, `score` (winner first, such as `7-6(5) 6-2`) and `sets` (games per set and tiebreak points)
- `sourceUrl`, `license`, `licenseUrl`: the Wikipedia article, its licence and the licence link, for attribution

Each ranking row has `tour`, `rank`, `player`, `countryCode`, `points`, `rankChange`, `asOf`, `sourceUrl`, `license` and `licenseUrl`. Fields with no value come back as `null`, so the shape never changes.

### Input

Every field is optional.

| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| `dataType` | string | no | `matches` | `matches` for results and upcoming pairings, `rankings` for the top 20 singles rankings of each tour |
| `tour` | string | no | `all` | `all`, `atp` or `wta` |
| `season` | string | no | `latest` | `latest` walks back from the newest tournaments through this season and the last one. A year from 2010 reads that season |
| `tournaments` | array | no | `[]` | Only tournaments whose name contains one of these words. Empty means all |
| `status` | string | no | `all` | `all`, `completed` (includes retirements and walkovers) or `scheduled` (pairings without a result, from tournaments of the last 30 days) |
| `onlyNew` | boolean | no | `false` | Only records this filter set has not returned before. A scheduled match comes back when it has a result. With season `latest` and no tournament names, only the last 30 days are read |
| `maxItems` | integer | no | `100` | Stop after this many records. This is also your spending cap |

### Pricing

Pay-Per-Event:

| Event | Price |
|---|---|
| `tennis-result` | $2.00 per 1,000 records ($0.002 per match or ranking row) |
| `apify-actor-start` | $0.00005 per run, charged automatically |

### Sample output

```json
{
  "recordType": "match",
  "matchId": "2e20fd7f8cb026c2",
  "tour": "WTA",
  "season": 2025,
  "tournament": "Chennai Open",
  "category": "WTA 250",
  "location": "Chennai, India",
  "surface": "Hard",
  "drawSize": 32,
  "weekStart": "2025-10-27",
  "round": "Final",
  "status": "completed",
  "player1": "Janice Tjen",
  "player1Country": "Indonesia",
  "player1Seed": 4,
  "player1Entry": null,
  "player2": "Kimberly Birrell",
  "player2Country": "Australia",
  "player2Seed": 7,
  "player2Entry": null,
  "winner": "Janice Tjen",
  "score": "6-4 6-3",
  "sets": [
    { "player1": 6, "player2": 4, "tiebreak": null },
    { "player1": 6, "player2": 3, "tiebreak": null }
  ],
  "sourceUrl": "https://en.wikipedia.org/wiki/2025_Chennai_Open_%E2%80%93_Singles",
  "license": "CC BY-SA 4.0",
  "licenseUrl": "https://creativecommons.org/licenses/by-sa/4.0/"
}
```

### Integrations

Call it from n8n, Make or Zapier, or through the Apify API:

```bash
curl -X POST "https://api.apify.com/v2/acts/VERRR~tennis-results-scraper/runs?token=<YOUR_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{ "tournaments": ["<tournament-name>"], "maxItems": 500 }'
```

For a daily feed, schedule a run with `onlyNew` on. A day with nothing new still ends as a success.

### Use cases

- Tennis results feed for a sports app, newsletter or dashboard
- ATP and WTA match history from 2010 for research and analysis
- Tournament draw tracking: see who plays whom in the next round
- Tennis rankings snapshots for a weekly report
- Sports data products that need a source with a commercial reuse licence

### Limits and FAQ

- **Where does the data come from?** English Wikipedia: the ATP and WTA season pages, each tournament's singles draw article and the current rankings article. Volunteers maintain these pages, so how soon a result appears depends on them. It is not a live score feed.
- **Is a match date included?** No. Draw articles do not give a date per match, so you get the tournament week and the round.
- **What is covered?** Main-draw singles at ATP and WTA tour events, Grand Slams and the Olympics, including third-place matches where a draw has one. Not covered: doubles, qualifying, Challenger and ITF events, team events, round-robin group matches at the year-end finals (their knockout rounds are included), match statistics and odds.
- **What does scheduled mean?** The pairing is set and has no result yet. There are no dates or start times, and a slot with an unknown opponent or a placeholder such as Qualifier is left out.
- **How deep are the rankings?** The top 20 of each tour, current week only, as published on Wikipedia.
- **Do I need a proxy or a login?** No.
- **Could a record be wrong?** Wikipedia can be edited by anyone, so a recent result can be wrong for a short time. The `sourceUrl` lets you check it.
- **Are player names consistent?** Names are written as each article links them, so a player can appear under two spellings across tournaments, such as with or without a first name. Join on surname and country if you need one key per player.
- **What if a page cannot be read?** A draw page that cannot be read is skipped, so a bad page never gives wrong rows. The run carries on, rows from the other pages, earlier and later, are saved and billed, and the run succeeds. The status message names the page, and the key-value record `FAILED_PAGES` lists every skipped page with its reason. With `onlyNew`, the skipped rows arrive on a later run once the page is fixed. The run ends as failed, keeping any rows already saved, when nothing was saved, when more than half the draws failed, when a calendar or rankings page cannot be read, or when Wikipedia refuses the request or asks for a long wait. A run that finds no records also fails, except an `onlyNew` run with nothing new.
- **What if the page layout changes?** This Actor is monitored weekly and repaired automatically.

### Legal note

This Actor reads publicly available Wikipedia pages at a low request rate, following the Wikimedia robot policy: it identifies itself, waits as long as Wikipedia asks, and stops if it is refused. Wikipedia text is available under the Creative Commons Attribution-ShareAlike 4.0 licence (https://creativecommons.org/licenses/by-sa/4.0/). This Actor reformats that content into JSON. If you republish the output, credit "Wikipedia contributors", link the `sourceUrl` and the licence, say that it was reformatted, and share adaptations under the same licence. Output is limited to what a draw or ranking shows about professional players: name, country, seed and result. This Actor is not affiliated with or endorsed by Wikipedia, the Wikimedia Foundation, the ATP or the WTA. You are responsible for using the output in compliance with applicable laws.

# Actor input Schema

## `dataType` (type: `string`):

"matches" returns singles results and upcoming pairings from ATP and WTA main draws. "rankings" returns the current top 20 singles rankings of each tour.

## `tour` (type: `string`):

Which tour to read.

## `season` (type: `string`):

"latest" walks back from the newest tournaments through this season and the last one. A year from 2010 reads that season, newest tournaments first. Ignored for rankings.

## `tournaments` (type: `array`):

Only read tournaments whose name contains one of these words, ignoring case. Leave empty for all tournaments. Ignored for rankings.

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

"completed" keeps finished matches, including retirements and walkovers. "scheduled" keeps pairings that are set but not finished, from tournaments of the last 30 days. Ignored for rankings.

## `onlyNew` (type: `boolean`):

Return only records this filter set has not returned before. A scheduled match comes back once it has a result. With season "latest" and no tournament names, only tournaments from the last 30 days are read. A run that finds nothing new still succeeds.

## `maxItems` (type: `integer`):

Stop after this many records. Each saved record is billed once, so this is also your spending cap.

## Actor input object example

```json
{
  "dataType": "matches",
  "tour": "all",
  "season": "latest",
  "tournaments": [],
  "status": "all",
  "onlyNew": false,
  "maxItems": 100
}
```

# Actor output Schema

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

All records of the run. Matches: matchId, tour, season, tournament, category, location, surface, drawSize, weekStart, round, status, both players with country, seed and entry type, winner, score, sets, sourceUrl, license, licenseUrl. Ranking rows: tour, rank, player, countryCode, points, rankChange, asOf, sourceUrl, license, licenseUrl.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("verrr/tennis-results-scraper").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 = {}

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

```

## MCP server setup

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

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/Cn0bRdW3gEoobIVlB/builds/RxmeNcxqbgNjnkVGb/openapi.json
