# Flashscore Tennis Scraper - Live Scores, Stats, H2H (`pshivam/flashscore-tennis-scraper`) Actor

Tennis data from Flashscore: live scores, schedule and results for ATP, WTA, Challenger, ITF and Davis Cup, with round, rankings, match statistics, point-by-point and head-to-head in every row. Fast, no proxy. Export to Excel, CSV, JSON or API.

- **URL**: https://apify.com/pshivam/flashscore-tennis-scraper.md
- **Developed by:** [Shivam Prajapati](https://apify.com/pshivam) (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 $1.40 / 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 - Live Scores, Stats, H2H

Get **tennis data from [Flashscore](https://www.flashscore.com)**: live scores, the schedule and results of every day, for **ATP, WTA, Challenger, ITF, Davis Cup, Billie Jean King Cup and United Cup**, singles and doubles. Every match can come with its **round, both players' ranking, set-by-set scores with tiebreaks, set durations, full match statistics, point-by-point and head-to-head**, all in one row and for one price. No proxy, no login. Export to Excel, CSV, JSON or the API.

**Actively maintained.** Last update: 2026-11-07. Every release passes 100+ automated tests on saved Flashscore feeds plus a check against the live site, and Apify test-runs it every day.

### What can you use it for?

- **Live scoreboards and bots.** Run it every minute in live mode: every match in play with the score by set, the points of the game being played and who is serving.
- **Betting and trading models.** Results with set scores, tiebreaks, durations, serve and return statistics and break points, plus both players' recent form and previous meetings.
- **Fantasy and analysis tools.** Point-by-point for every game: server, winner, the points played and the break points. The raw material for pressure-point and momentum models.
- **Dashboards, newsletters and apps.** A whole day of professional tennis (about 450 matches in 65 tournaments) in one fast request, filtered by tour, surface, tournament or player.
- **Research.** The round and the ranking of both players at the time of the match, which most live-score tools leave out.

### What data do you get?

Fields marked *block* are filled when the matching option is on (it is on by default for **Matches by id**, and off for lists, to keep list runs fast).

| Field | What it is |
|---|---|
| `matchId`, `matchUrl` | Flashscore match id and page |
| `tour`, `tourKey`, `gender`, `matchType` | Tour as Flashscore names it, as a key (`atp`, `wta`, `challenger`, `itf`, `davis_cup`, `bjk_cup`, `united_cup`, `exhibition`, `other`), male or female, singles or doubles |
| `tournament`, `tournamentCountry`, `tournamentUrl`, `tournamentId` | Tournament place, country, Flashscore page and id |
| `surface`, `indoor` | hard, clay, grass or carpet, and whether it is indoors |
| `round` | Round, e.g. Quarter-finals (*block*: match info) |
| `status`, `statusCode`, `setInProgress` | scheduled, live or finished; Flashscore's status code; the set being played |
| `startTime`, `endTime` | Scheduled start and end of a finished match, UTC |
| `homePlayer`, `homePlayerId`, `homeSlug`, `homeCountry` | First player: name as listed, Flashscore id and address name, country |
| `homeRank`, `homeRankType`, `homeFullName` | First player's ranking, the list it is from (ATP, WTA) and full name (*block*: match info) |
| `awayPlayer`, `awayPlayerId`, `awaySlug`, `awayCountry` | Second player, same fields |
| `awayRank`, `awayRankType`, `awayFullName` | Second player's ranking and full name (*block*: match info) |
| `homeSets`, `awaySets`, `sets`, `score`, `winner` | Sets won, games per set with tiebreaks and minutes, the score as text (`6-4 7-6(3)`), home or away |
| `currentGame` | Live matches: points of the game in play and who is serving |
| `durationMinutes` | Match duration (*block*: any detail block) |
| `statistics` | Match and per-set statistics: aces, double faults, serve percentages, break points, return and total points (*block*: statistics) |
| `pointByPoint` | Every game of every set: server, winner, games after it, points, break points (*block*: point-by-point) |
| `headToHead` | `homeForm` and `awayForm` (last 10 matches each) and `meetings` (*block*: head-to-head) |
| `scrapedAt` | When the match was scraped (UTC) |

#### Example result

```json
{
  "matchId": "6yDYuIT9",
  "tour": "CHALLENGER MEN",
  "tournament": "Charlottesville",
  "surface": "hard",
  "indoor": true,
  "round": "Quarter-finals",
  "status": "finished",
  "startTime": "2026-11-06T23:05:00Z",
  "homePlayer": "Giron M.",
  "homeFullName": "Marcos Giron",
  "homeRank": 89,
  "awayPlayer": "Chidekh C.",
  "awayFullName": "Clement Chidekh",
  "awayRank": 131,
  "score": "4-6 1-6",
  "winner": "away",
  "durationMinutes": 81,
  "statistics": [{"period": "Match", "group": "Service", "name": "Aces", "home": "2", "away": "4"}]
}
```

### How to use it

1. Pick **What to get**: the **Schedule and results** of one or more days, the **Live matches** right now, or **Matches by id**.
2. Optionally keep only some tours, singles or doubles, a status, a tournament or a player.
3. Turn on the detail blocks you want (round and rankings, statistics, point-by-point, head-to-head), set **Maximum matches** and press Start.

#### Input options

| Input | What it does |
|---|---|
| `mode` | `schedule` (matches of the chosen days), `live` (only matches in play now) or `match` (the ids you give) |
| `daysBack`, `daysAhead`, `dates` | Schedule mode: days before and after today (up to 7 each way), or exact days like `2026-11-07` |
| `tours` | Keep only these tours: `atp`, `wta`, `challenger`, `itf`, `davis_cup`, `bjk_cup`, `united_cup`, `exhibition`, `other` |
| `matchType`, `status` | Singles or doubles; scheduled, live or finished |
| `players`, `tournaments` | Keep matches of players or tournaments whose name contains one of these words |
| `matchIds` | Match mode: Flashscore match ids or match URLs |
| `includeMatchInfo` | Add the round, both players' ranking and full names |
| `includeStatistics` | Add match and per-set statistics |
| `includePointByPoint` | Add every game with its points |
| `includeHeadToHead` | Add both players' form and their previous meetings |
| `onlyNew` | Skip matches that earlier runs of this same search already returned |
| `maxItems` | Stop after this many matches |
| `maxConcurrency` | Requests at the same time (never more than 20 a second) |

### How much does it cost?

You pay per match returned, nothing else, and **every detail block is included**: no extra price for statistics, point-by-point or head-to-head. The first Apify plan includes free monthly credit to try it.

| Plan | Price per 1,000 matches |
|---|---|
| Free | $2.00 |
| Bronze | $1.80 |
| Silver | $1.60 |
| Gold | $1.40 |

### Use it via API, on a schedule, or with your tools

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("pshivam/flashscore-tennis-scraper").call(run_input={
    "mode": "schedule",
    "tours": ["atp", "wta"],
    "daysBack": 1,
    "includeStatistics": True,
    "maxItems": 100,
})
for match in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(match["homePlayer"], match["awayPlayer"], match["score"])
```

Schedule it in the Apify Console (Schedules) to poll live scores, and turn on **Only new matches** to receive only matches you have not had yet. Connect the result to Google Sheets, Make, Zapier, n8n or your own app with Apify's integrations.

### Good to know

- **Source.** The data is what Flashscore shows on its public pages and feeds. The scraper reads it the way the website does, at a modest pace, without logging in.
- **Seven days each way.** Flashscore's day lists reach 7 days back and 7 days ahead of today. For older matches use **Matches by id**.
- **Round and rankings need one more request per match**, so they are off for lists by default. Turn on **Add round and rankings** to get them.
- **Statistics, point-by-point and head-to-head exist only when the match has them.** A match that has not started has none, and those fields are empty.
- **Retirements and walkovers** are marked by Flashscore's own `statusCode`; the sets played are in `sets`.

### FAQ

#### How many matches does Flashscore have per day?

A normal day has about 450 professional matches in about 65 tournaments, across ATP, WTA, Challenger and ITF.

#### Can I get live scores every minute?

Yes. Schedule the Actor with **Live matches** every minute. Each run is one request and returns every match in play with the points of the current game and the server.

#### Do I need a proxy?

No. The scraper reads Flashscore's public data directly and needs no proxy and no account.

#### Where do the rankings come from?

From the Flashscore match page: the ATP or WTA ranking of each player, as shown there. They are in `homeRank`, `awayRank` and the list in `homeRankType`, `awayRankType`.

#### Is it legal to scrape Flashscore?

The scraper reads publicly visible pages at a modest pace and does not log in. You are responsible for using the data lawfully and in line with the website's terms, for example when you build a betting product.

#### How do I get only new matches every day?

Turn on **Only new matches** and schedule the Actor. It remembers what it returned in your key-value store.

# Actor input Schema

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

Schedule: every match of the chosen days, upcoming, live and finished. Live: only the matches in play right now. Matches by id: full detail for the match ids or URLs you give.

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

Schedule mode: also get this many days before today (finished matches). At most 7.

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

Schedule mode: also get this many days after today (upcoming matches). At most 7.

## `dates` (type: `array`):

Schedule mode: days like 2026-11-07, up to 7 days back and 7 days ahead of today. Added to the days above.

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

Keep only these tours. Leave empty for every tour. Grand Slams are listed under ATP and WTA.

## `matchType` (type: `string`):

Keep only singles or only doubles matches.

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

Keep only scheduled (not started), live or finished matches. Live mode always means live.

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

Keep matches where one of the players has one of these names (part of a name is enough: Djokovic, Swiatek).

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

Keep matches of tournaments whose name or tour contains one of these words (Paris, Challenger, Wimbledon).

## `matchIds` (type: `array`):

For 'Matches by id': Flashscore match ids (6yDYuIT9) or match URLs (https://www.flashscore.com/match/6yDYuIT9/).

## `includeMatchInfo` (type: `boolean`):

Open the match page for the round (Quarter-finals), both players' ranking and full names. On by default for 'Matches by id', off for lists (one more request per match).

## `includeStatistics` (type: `boolean`):

Aces, double faults, serve and return points, break points and more, for the match and for each set. On by default for 'Matches by id', off for lists.

## `includePointByPoint` (type: `boolean`):

Every game of every set: who served, who won, the points played and the break points. On by default for 'Matches by id', off for lists.

## `includeHeadToHead` (type: `boolean`):

Both players' last 10 matches and their previous meetings. On by default for 'Matches by id', off for lists.

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

Skip matches that earlier runs of this same search already returned, so you never get or pay for the same match twice. The first run works as usual and remembers what it returned, in your key-value store 'flashscore-tennis-scraper-only-new'.

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

Stop after this many matches. You are charged per match.

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

Requests at the same time (the scraper never sends more than 20 a second). More helps runs with detail blocks.

## Actor input object example

```json
{
  "mode": "schedule",
  "daysBack": 0,
  "daysAhead": 0,
  "matchType": "any",
  "status": "any",
  "onlyNew": false,
  "maxItems": 20,
  "maxConcurrency": 8
}
```

# Actor output Schema

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

One row per match, shown with the overview view.

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

Both players with their rankings and countries, for sorting and filtering.

## `runStats` (type: `string`):

Requests made, time spent and number of matches for this run (RUN_STATS record).

# 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 = {
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("pshivam/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 = { "maxItems": 20 }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pshivam/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/r5pSgbpXIjiSS2MrB/builds/3aTrEg78E6Jrd6qSi/openapi.json
