# Flashscore Tennis Scraper: Every Set & Stat (`luzivanlt/flashscore-tennis-scraper`) Actor

Flashscore tennis matches with every set score, both players, the tournament and the surface. $1.00 per 1,000 matches. Set lengths, venue, referee and full serve, return and point statistics optional. No login needed.

- **URL**: https://apify.com/luzivanlt/flashscore-tennis-scraper.md
- **Developed by:** [Luzi](https://apify.com/luzivanlt) (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 $0.70 / 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.
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

## Flashscore Tennis Scraper: Every Set & Stat

Tennis results and fixtures from Flashscore: every set score including the deciding set, both players with their country, the tournament, its surface and the winner, for any day from 7 days back to 7 days ahead. One row per match. No Flashscore account or cookies needed.

Set lengths, the venue and referee, and the full statistics for each match and each set are one option away.

### What does this Actor do?

You pick the days relative to today, optionally filter by match state, tour or tournament, and the Actor saves every tennis match it finds for those days: ATP, WTA, Challenger, ITF, UTR, singles and doubles.

Each match comes with:

- The set scores in order, every set the site has, with a flag when a set is still being played.
- Sets won by each side and the winner, counted from the set scores, so a three-set match reports 2-1 and not just the first two sets.
- Both players or pairs: the name as the site prints it, a link to the player page, the country and a photo link.
- The tournament, its own id and page link, the country the site prints after its name, and the stage when the line says Qualification or Play Offs.
- The tour, whether it is singles or doubles, the surface (hard, clay, grass, carpet) and an indoor flag.
- Start and end time in UTC, and the current points for a match that is live right now.
- The score in one line, such as 6-2 3-6 6-3.

Turn on **Statistics and set durations** and each match also carries its length in minutes, the venue, the city, the referee and each set's length where the site keeps them, plus the statistics the site keeps: aces, double faults, first serve percentage, first and second serve points won, break points saved and converted, winners, unforced errors, service and return points won, total points won and games won, for the whole match and for every set.

The site lists a day of tennis in one go, so a run reads every match on that day. There is no page limit to walk.

### Why use it?

- **Every set, all of them.** A deciding set is part of the row, so a finished match carries its real set score and its winner; a walkover, which has no sets, carries neither.
- **Statistics the match list does not put on screen.** Aces, break points, first serve percentage and total points, per match and per set, in the same row.
- **Fixtures and results in one shape.** Yesterday's results and tomorrow's order of play are the same fields, so one dataset holds both.
- **Doubles, Challenger and ITF too.** Not only the two big tours.
- **Export as JSON, CSV or Excel**, or read it through Apify's API.

### How to use it

1. In **Days**, pick today, or a few days either side of it. A saved run keeps counting from the day it runs, so it stays fresh.
2. Optionally narrow with **Match state**, **Tours** and **Tournaments**.
3. Press Start. With no changes the Actor saves yesterday and today, up to 200 matches.

#### One row per match

A match keeps the same id across runs, so a fixture saved today can be matched to its result tomorrow by `match_id`.

### Input

| **Title** (`key`) | What it does | Default |
| --- | --- | --- |
| **Days** (`dayOffsets`) | Days to read, relative to today, from -7 to 7. | `["0"]` |
| **Match state** (`statuses`) | All, finished, live now or scheduled. | `["all"]` |
| **Tours** (`tours`) | ATP, WTA, Challenger, ITF, UTR or exhibition. Empty keeps every tour. | `[]` |
| **Tournaments** (`tournaments`) | Keep only tournaments whose name contains one of these words, such as `Wimbledon`. | `[]` |
| **Statistics and set durations** (`includeMatchStats`) | Add statistics, set lengths, venue, city and referee, charged separately. | `false` |
| **Maximum matches** (`maxItems`) | Stop after saving this many matches. | `200` |

A day value outside -7 to 7 stops the run before anything is read, naming the value.

```json
{
  "dayOffsets": ["-1", "0", "1"],
  "statuses": ["finished"],
  "tours": ["atp", "wta"],
  "includeMatchStats": true,
  "maxItems": 500
}
```

### Output

One row per match.

```json
{
  "match_id": "WdTBXqr1",
  "match_url": "https://www.flashscore.com/match/WdTBXqr1/#/match-summary",
  "status": "finished",
  "start_time": "2026-11-15T14:25:00.000Z",
  "end_time": "2026-11-15T16:20:25.000Z",
  "tour": "atp",
  "tour_name": "ATP",
  "match_type": "singles",
  "tournament": "Finals - Turin",
  "tournament_id": "MeRVE9s8",
  "tournament_url": "https://www.flashscore.com/tennis/atp-singles/finals-turin/",
  "tournament_country": "World",
  "tournament_stage": null,
  "surface": "hard",
  "indoor": true,
  "home_player": { "name": "Shelton B.", "slug": "shelton-ben", "url": "https://www.flashscore.com/player/shelton-ben/QNuG0Gzb/", "country": "USA", "photo_url": "https://static.flashscore.com/res/image/data/xMdjRiVH-fgTOwTv9.png" },
  "away_player": { "name": "Fils A.", "slug": "arthur-fils", "url": "https://www.flashscore.com/player/arthur-fils/IoIhUqIN/", "country": "France", "photo_url": null },
  "sets": [ { "home": 6, "away": 2, "completed": true }, { "home": 3, "away": 6, "completed": true }, { "home": 6, "away": 3, "completed": true } ],
  "sets_won_home": 2,
  "sets_won_away": 1,
  "winner": "home",
  "score": "6-2 3-6 6-3",
  "current_game": null
}
```

| Field | What it holds |
| --- | --- |
| `match_id` | The site's own id for the match; it stays the same across runs |
| `match_url` | The match page on Flashscore |
| `status` | scheduled, live, finished, postponed or cancelled at the moment of the run |
| `start_time` | When the match was due to start, ISO 8601 in UTC |
| `end_time` | When it ended, ISO 8601 in UTC; empty until it does |
| `tour` | atp, wta, challenger, itf, utr, exhibition or other |
| `tour_name` | The tour line the site prints, such as Challenger Women |
| `match_type` | singles or doubles |
| `tournament` | The tournament name, such as Finals - Turin |
| `tournament_id` | The site's own id for the tournament |
| `tournament_url` | The tournament page on Flashscore |
| `tournament_country` | The country or region printed after the tournament name |
| `tournament_stage` | Qualification or Play Offs when the line says so; empty for a main draw |
| `surface` | hard, clay, grass or carpet when the site states it |
| `indoor` | True when the site marks the surface as indoor |
| `home_player` | The player or pair listed first: name, slug, page link, country and photo link |
| `away_player` | The player or pair listed second, same parts |
| `sets` | Every set in order with the games each side won, whether the set is over, and with statistics on the minutes it took when the site keeps them |
| `sets_won_home` | Sets won by the first side, counted from the set scores |
| `sets_won_away` | Sets won by the second side |
| `winner` | home or away once one side leads; empty while the match is level |
| `score` | The set scores in one line, such as 6-2 3-6 6-3 |
| `current_game` | For a live match, the points in the game being played |
| `duration_minutes` | Match length in minutes; with statistics on, when the site keeps it |
| `venue` | The court or stadium the site names; with statistics on, when it names one |
| `city` | The city the site names; with statistics on, when it names one |
| `referee` | The official the site names; with statistics on, when it names one |
| `statistics` | A match block and one block per set, each with service, return, points and games sections; with statistics on |

A scheduled match has no sets, no winner and no statistics, and is never charged for statistics. A walkover has no set scores, so its `winner` is empty and its sets won are 0. A pair is one name, such as Luz O./Matos R., and its country is the one the site prints.

### How much does it cost?

You pay for what you get:

- **$1.00 per 1,000 matches** ($0.001 each). Charged once per match saved; a match found twice in a run is charged once. A filtered-out match is not charged.
- **$0.30 per 1,000 matches** ($0.0003 each) for statistics and set durations, only when you turn the option on and the site keeps numbers, set lengths or a venue for the match. Scheduled matches, and matches where the site keeps none of those, are free.

A run that saves yesterday and today, 231 matches on the measured day, costs $0.23. The same run with statistics on, 186 of them with numbers or set lengths, costs $0.287: 231 × $0.001 + 186 × $0.0003.

Bronze plans pay 90% of these prices, Silver 80% and Gold 70%: $0.70 per 1,000 matches and $0.21 per 1,000 with statistics on Gold.

### How long does a run take?

Seconds for one day without statistics, which is about 100 to 300 matches. With statistics on, most of the time goes into reading each match twice: two days with statistics took 47, 91 and 230 seconds on the measured runs, and that spread is the site's speed, not the option; a fifteen-day run with statistics took 1,147 seconds. A very large run stops 90 seconds before the time limit and names the days it did not reach.

### Good to know

- **Days are relative to today.** A scheduled run keeps working, and a match moves from scheduled to finished as its day comes.
- **The site's day holds every tournament.** A day of tennis was 98 to 273 matches on the measured days, across every tour it covers; days far ahead can be empty because draws are published a day or two before play.
- **No world ranking is included.** The match list carries no ranking for the players, so none is invented here.
- **No round name.** The list groups matches by tournament, not by round, so the round a match belongs to is not part of the row.
- **Statistics are not on every match.** Qualification rounds and smaller ITF events often keep no numbers; a match where the site keeps neither numbers nor set lengths is not charged the statistics price.
- **A day that does not answer is named** in the run summary, and the other days are still saved.
- **Tested end to end on 16 November 2026.** 231 matches from yesterday and today in 3 to 9 seconds; the same two days with statistics in 47 to 230 seconds across the measured runs; a fifteen-day run with statistics in 1,147 seconds.

### FAQ

**Can I get the whole week?** Yes. Pick every day from -3 to 3, or -7 to 7, and raise the maximum matches to 2,000.

**Does it keep history?** It reads the last 7 days and the next 7. For a longer archive, run it daily and keep the dataset.

**Are live scores real time?** A live row is the score at the moment of the run. Run it again for a fresher score.

**Why is a round missing?** The site's day list does not carry rounds. The tournament link opens the draw.

# Actor input Schema

## `dayOffsets` (type: `array`):

Which days to read, relative to today. '0' is today, '-1' yesterday, '1' tomorrow, and up to 7 days either way. Each day you add costs one page; with statistics on, it also costs two reads for every finished match on that day.

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

Keep only matches in the states you pick. 'All' keeps scheduled, live and finished matches. Leave 'All' for results plus upcoming fixtures in one run.

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

Keep only the tours you pick: ATP, WTA, Challenger, ITF, UTR or exhibition. Leave empty for every tour, which also keeps doubles.

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

Keep only matches whose tournament name contains one of these words, such as Wimbledon or Turin. Case does not matter. Leave empty for every tournament.

## `includeMatchStats` (type: `boolean`):

Add the full statistics for each match: aces, double faults, first serve percentage, break points, winners and total points, for the whole match and for each set, plus set lengths, venue, city and referee where the site keeps them. Charged separately at $0.30 per 1,000 matches; it makes the run roughly ten to thirty times as long on the measured runs, because every finished match is read twice. Scheduled matches have no statistics and are never charged for them.

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

Stop after saving this many matches. A day of tennis held 98 to 273 matches on the measured days, so 1,000 covers about a week in one go.

## Actor input object example

```json
{
  "dayOffsets": [
    "-1",
    "0"
  ],
  "statuses": [
    "all"
  ],
  "tours": [],
  "tournaments": [],
  "includeMatchStats": false,
  "maxItems": 200
}
```

# Actor output Schema

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

One row per tennis match in the default dataset; open the link for the overview view.

# 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 = {
    "dayOffsets": [
        "-1",
        "0"
    ],
    "statuses": [
        "all"
    ],
    "tours": [],
    "tournaments": [],
    "includeMatchStats": false,
    "maxItems": 200
};

// Run the Actor and wait for it to finish
const run = await client.actor("luzivanlt/flashscore-tennis-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 = {
    "dayOffsets": [
        "-1",
        "0",
    ],
    "statuses": ["all"],
    "tours": [],
    "tournaments": [],
    "includeMatchStats": False,
    "maxItems": 200,
}

# Run the Actor and wait for it to finish
run = client.actor("luzivanlt/flashscore-tennis-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 '{
  "dayOffsets": [
    "-1",
    "0"
  ],
  "statuses": [
    "all"
  ],
  "tours": [],
  "tournaments": [],
  "includeMatchStats": false,
  "maxItems": 200
}' |
apify call luzivanlt/flashscore-tennis-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,luzivanlt/flashscore-tennis-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/1iaFF5JG9tfgDEnG3/builds/ENzsFf2SnmdEBalr6/openapi.json
