# Tennis Match Stats Scraper: ATP, WTA, ITF & Challenger (`moonweil/tennis-match-stats`) Actor

Tennis results, live scores and fixtures for ATP, WTA, Challenger and ITF from Flashscore, with full match statistics (aces, double faults, serve %, break points, winners, errors) for every match in bulk. Monitor mode returns only newly finished matches. No start fee.

- **URL**: https://apify.com/moonweil/tennis-match-stats.md
- **Developed by:** [Aleksandr Jelohhin](https://apify.com/moonweil) (community)
- **Categories:** Automation, 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 $1.00 / 1,000 matches

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 Match Stats Scraper: ATP, WTA, ITF & Challenger

Get **tennis results, live scores and fixtures with full match statistics** for every ATP, WTA, Challenger and ITF match of the last 7 days (and the next 7), **in one run**. Each row has the tournament, surface, players, set-by-set score with tiebreaks, winner, match duration and the stats sheet: aces, double faults, 1st serve %, serve and return points won, break points saved and converted, winners, unforced errors, net points and games won.

Data comes from Flashscore's public pages. No login, no API key, no browser.

### Why this one

- **Statistics for every match in bulk.** The two most-used tennis actors on the Store return either match listings without statistics, or one match, player or tournament per run. This one returns the full stats sheet for hundreds of matches per run.
- **$2 per 1,000 matches with statistics** ($0.001 per match + $0.001 for its statistics). The most-used SofaScore-based tennis scraper charges $8 per 1,000 results.
- **Listings alone are $1 per 1,000.** Turn statistics off and you pay the same as the cheapest match-listing actors.
- **No start fee, and free when there is nothing to deliver.** Matches without statistics (walkovers, scheduled matches, small ITF events) never pay the statistics event.
- **Monitor mode.** Schedule it with a monitor name and each run returns only the matches that finished since the last run, so every result reaches you exactly once.
- **All tours, singles and doubles.** Filter by tour, singles/doubles/mixed, status, tournament name or player.

### What you can use it for

- **Betting and trading models.** Daily serve/return stats, break-point conversion and match durations per surface to feed Elo, fatigue and point-win models.
- **Fantasy tennis and media.** Automated results digests, order of play and player stat lines.
- **Data science.** Labeled match datasets across ATP, WTA, Challenger and ITF for prediction research.
- **Player and team tracking.** A scheduled task that collects every match of the players you follow.

### Input

| Field | What it does |
|---|---|
| `daysBack`, `daysAhead` | Date window in UTC days: `daysBack: 1` = yesterday and today. Up to 7 each way. |
| `statuses` | `finished`, `live`, `scheduled`, `postponed`, `cancelled`. Empty = all. |
| `tours` | `atp`, `wta`, `challenger`, `itf-men`, `itf-women`, `other`. Empty = all. |
| `eventTypes` | `singles`, `doubles`, `mixed`. Empty = all. |
| `tournaments` | Words in the tournament name, e.g. `"Finals"`, `"Antalya"`. |
| `players` | Words in a player's name, e.g. `"Alcaraz"`, `"Sabalenka"`. Not case- or accent-sensitive. |
| `includeStats` | Match statistics and duration (default on). |
| `includeSetStats` | The same statistics per set (`statsBySet`), at no extra cost. |
| `maxMatches` | Cap per run (default 200). It also caps your cost. |
| `monitorName`, `onlyNew` | Monitor mode: deliver only finished matches not delivered before under this name. |
| `maxConcurrency`, `proxyConfiguration` | Advanced. The defaults work. |

```json
{
  "daysBack": 1,
  "statuses": ["finished"],
  "tours": ["atp", "wta"],
  "eventTypes": ["singles"],
  "includeStats": true,
  "maxMatches": 300
}
```

### Output

One row per match. Example (statistics shortened):

```json
{
  "matchId": "SOjRz097",
  "matchUrl": "https://www.flashscore.com/match/SOjRz097/#/match-summary",
  "status": "finished",
  "resultType": "normal",
  "startTime": "2026-11-12T12:10:00.000Z",
  "endTime": "2026-11-12T14:02:58.000Z",
  "tour": "atp",
  "eventType": "singles",
  "category": "ATP - Singles",
  "tournament": "Stockholm",
  "tournamentCountry": "Sweden",
  "surface": "hard",
  "indoor": true,
  "home": "Michelsen A.",
  "homeCountry": "USA",
  "homeUrl": "https://www.flashscore.com/player/michelsen-alex/nDIhfm9l/",
  "away": "Tabilo A.",
  "awayCountry": "Chile",
  "winner": "away",
  "setsHome": 0,
  "setsAway": 2,
  "sets": [
    { "set": 1, "home": 5, "away": 7, "tiebreakHome": null, "tiebreakAway": null },
    { "set": 2, "home": 6, "away": 7, "tiebreakHome": 2, "tiebreakAway": 7 }
  ],
  "score": "5-7 6-7(2)",
  "durationMinutes": 115,
  "setDurationsMinutes": [56, 59],
  "stats": {
    "aces": { "home": 8, "away": 5 },
    "doubleFaults": { "home": 1, "away": 4 },
    "firstServePercentage": { "home": "67%", "away": "65%" },
    "firstServePointsWon": { "home": "76% (38/50)", "away": "74% (42/57)" },
    "breakPointsSaved": { "home": "2/4", "away": "6/7" },
    "breakPointsConverted": { "home": "1/7", "away": "2/4" },
    "winners": { "home": 24, "away": 31 },
    "unforcedErrors": { "home": 26, "away": 27 },
    "totalPointsWon": { "home": "48% (79/163)", "away": "52% (84/163)" }
  },
  "dayOffset": -1,
  "scrapedAt": "2026-11-13T08:00:00.000Z"
}
```

`home` and `away` are the first and second names as Flashscore lists them. In doubles they are the team (`"Mektic N./Roger-Vasselin E."`), and `homePlayers` / `awayPlayers` hold the two names. `resultType` is `retired` or `walkover` when the match didn't finish normally. `stats` is `null` when Flashscore has no statistics for the match (common for ITF and some Challenger matches).

Full stat keys: `aces`, `doubleFaults`, `firstServePercentage`, `firstServePointsWon`, `secondServePointsWon`, `breakPointsSaved`, `firstReturnPointsWon`, `secondReturnPointsWon`, `breakPointsConverted`, `winners`, `unforcedErrors`, `netPointsWon`, `servicePointsWon`, `returnPointsWon`, `totalPointsWon`, `last10Balls`, `matchPointsSaved`, `serviceGamesWon`, `returnGamesWon`, `totalGamesWon`. Which ones appear depends on the match.

The `SUMMARY` record in the key-value store has the counts (listed, matched, delivered, with statistics) and the status of each day. If every day feed fails, the run fails.

### Monitoring new results

1. Set `monitorName` (for example `atp-wta-results`), turn on `onlyNew`, and save it as a task.
2. Schedule it every few hours, with `daysBack: 1`.
3. Each run returns only finished matches that earlier runs with the same name didn't deliver, with their statistics.

Delivered match IDs are kept in a key-value store named `tennis-match-stats-<monitorName>` on your account.

### Pricing

Pay per event, no start fee, no monthly rental:

| Event | Price |
|---|---:|
| Match delivered | $0.001 |
| Match statistics delivered (only when the match has statistics) | $0.001 |

| Job | Matches | Cost |
|---|---:|---:|
| Yesterday's ATP + WTA singles results with stats | ~60 | ~$0.12 |
| Every match of the last 7 days, all tours, with stats | ~3,000 (about 2,000 with stats) | ~$5 |
| Today's order of play (scheduled, no stats) | ~400 | ~$0.40 |

Apify platform usage is billed separately and is small (plain HTTP on 256 MB).

### Use it from code

```bash
curl -X POST "https://api.apify.com/v2/acts/moonweil~tennis-match-stats/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"daysBack":1,"statuses":["finished"],"tours":["atp"],"maxMatches":50}'
```

```js
import { ApifyClient } from "apify-client";
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor("moonweil/tennis-match-stats").call({ daysBack: 3, statuses: ["finished"], players: ["Alcaraz", "Sinner"] });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

### FAQ

**Where does the data come from?**
Flashscore's public live-score pages, read as plain HTTP requests, the same way the site loads them in your browser. No login.

**How far back can I go?**
7 days back and 7 days ahead, which is what Flashscore lists per day. For a longer history, schedule the actor daily and keep the results.

**What does "live" mean?**
The score and statistics at the moment the run reads the match. It is a snapshot, not a stream. Schedule the actor every few minutes if you need updates.

**Why do some matches have no statistics?**
Flashscore publishes statistics for ATP, WTA, most Challenger and some ITF matches. When there are none, `stats` is `null` and you are not charged for statistics.

**Is it legal?**
The actor reads publicly shown sports results and statistics. Check that your use complies with the source's terms and the law where you operate. You are responsible for how you use the data.

**Something is missing or broken?**
Open an issue on the Actor's Issues tab with the run ID.

# Actor input Schema

## `daysBack` (type: `integer`):

How many past days to include, counted in UTC (0 = today only, 1 = yesterday and today, up to 7). Flashscore keeps match lists for the last 7 days.

## `daysAhead` (type: `integer`):

How many future days of fixtures to include (0 = none, up to 7). Use with the 'Scheduled' status to get the order of play.

## `statuses` (type: `array`):

Only return matches in these states. Leave empty for all. 'Live' is the score at the moment the run reads it, not a stream.

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

Only return matches from these tours. Leave empty for every tour.

## `eventTypes` (type: `array`):

Only return these event types. Leave empty for all.

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

Optional. Only matches whose tournament name contains one of these words, e.g. "Wimbledon", "Finals", "Antalya". Not case- or accent-sensitive.

## `players` (type: `array`):

Optional. Only matches with a player whose name contains one of these words, e.g. "Alcaraz", "Sabalenka". Flashscore writes names as "Alcaraz C.", so the surname is enough. Not case- or accent-sensitive.

## `includeStats` (type: `boolean`):

Add the match statistics (aces, double faults, 1st serve %, serve and return points won, break points saved and converted, winners, unforced errors, net points, games won) and the match duration for finished and live matches. Charged as a separate 'match statistics' event only when statistics exist.

## `includeSetStats` (type: `boolean`):

Also return the same statistics for each set (statsBySet). Comes from the same request, so it costs nothing extra.

## `maxMatches` (type: `integer`):

Upper limit of matches returned per run, earliest start time first. You pay per delivered match, so this also caps the cost. A busy tennis day has 300-700 matches across all tours.

## `monitorName` (type: `string`):

Optional. A name for this feed (e.g. "atp-results"). With 'Only new finished matches' on, the actor remembers which matches it has delivered under this name.

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

Return only finished matches that an earlier run with the same monitor name has not delivered yet. Schedule it every few hours to get each result exactly once. Needs a monitor name.

## `maxConcurrency` (type: `integer`):

How many matches are fetched in parallel.

## `proxyConfiguration` (type: `object`):

Apify Proxy (datacenter) works. Change only if you need a specific country.

## Actor input object example

```json
{
  "daysBack": 1,
  "daysAhead": 0,
  "statuses": [
    "finished"
  ],
  "includeStats": true,
  "includeSetStats": false,
  "maxMatches": 20,
  "onlyNew": false,
  "maxConcurrency": 4,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

One row per match: tournament, tour, surface, players, status, set scores, winner, duration and match statistics.

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

Matches listed, matched, delivered and with statistics, plus the status of each day feed.

# 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 = {
    "statuses": [
        "finished"
    ],
    "maxMatches": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("moonweil/tennis-match-stats").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 = {
    "statuses": ["finished"],
    "maxMatches": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("moonweil/tennis-match-stats").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 '{
  "statuses": [
    "finished"
  ],
  "maxMatches": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call moonweil/tennis-match-stats --silent --output-dataset

```

## MCP server setup

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

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/9jVIFKbMkq5ErQejq/builds/OyEuWiHVPj50MS4Bc/openapi.json
