# Tennis Scraper: Live Scores, Odds, Stats & Point-by-Point (`cycha/tennis-scraper`) Actor

ATP, WTA, Challenger & ITF tennis from Flashscore: live scores, results, fixtures, rankings, set & tiebreak scores, plus bookmaker odds (19 books), match stats, point-by-point and head-to-head. No browser, no proxy. From $1 per 1,000 matches.

- **URL**: https://apify.com/cycha/tennis-scraper.md
- **Developed by:** [Ken Digital](https://apify.com/cycha) (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 $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 Scraper — Live Scores, Odds, Stats & Point-by-Point (Flashscore)

Get every ATP, WTA, Challenger and ITF match from Flashscore as clean JSON: live scores, results and fixtures with rankings, countries, set and tiebreak scores. Add **bookmaker odds**, **match statistics**, **point-by-point** and **head-to-head** in the same run when you need them.

- **All tours in one actor:** ATP, WTA, Challenger, ITF men and women, team events. Singles and doubles (both players with their rankings).
- **Bookmaker odds:** up to 20 bookmakers (UK), with match winner, games over/under, set handicap, correct score and odd/even, for the match and each set, plus opening prices. A summary gives the best and average price and the implied probability. Finished matches keep their closing odds.
- **Match statistics:** aces, double faults, serve %, break points, return points, winners and errors, for the match and each set, plus set durations.
- **Point-by-point:** every game with server, winner, breaks, break points and the point sequence.
- **Head-to-head and form:** previous meetings and each player's last matches.
- **Fast and reliable:** reads Flashscore's own data feeds with plain HTTP requests. There's no browser and no proxy, and a day of matches loads in about a second. That makes it a good fit for schedules every few minutes.
- **Cheap:** $1 per 1,000 matches. Details are billed only for matches that have them.

### Quick start

Today's ATP and WTA singles with odds:

```json
{
  "dayOffsets": ["0"],
  "tours": ["ATP", "WTA"],
  "matchTypes": ["singles"],
  "includeOdds": true
}
```

Yesterday's results with full statistics and point-by-point:

```json
{
  "dayOffsets": ["-1"],
  "status": "finished",
  "includeStatistics": true,
  "includePointByPoint": true
}
```

Live matches only, for a bot that runs every few minutes:

```json
{ "status": "live", "tours": ["ATP", "WTA", "Challenger"] }
```

### Output

One row per match. This example is trimmed:

```json
{
  "matchId": "2uSbdwDj",
  "url": "https://www.flashscore.com/match/tennis/2uSbdwDj/",
  "startTime": "2026-10-22T06:40:00Z",
  "status": "finished",
  "statusDetail": "Finished",
  "result": "completed",
  "tour": "ATP",
  "category": "ATP - Singles",
  "gender": "men",
  "matchType": "singles",
  "tournament": "Almaty (Kazakhstan)",
  "surface": "hard",
  "indoor": true,
  "tournamentUrl": "https://www.flashscore.com/tennis/atp-singles/almaty/",
  "home": {"name": "Atmane T.", "country": "France", "ranking": 75, "rankingPoints": 787, "playerId": "6mkEQ279",
           "playerUrl": "https://www.flashscore.com/player/atmane-terence/6mkEQ279/"},
  "away": {"name": "Bellucci M.", "country": "Italy", "ranking": 62, "rankingPoints": 879, "playerId": "M9pojLqi"},
  "winner": "home",
  "setsHome": 2,
  "setsAway": 1,
  "score": "6-7(4) 7-6(2) 7-6(5)",
  "sets": [{"set": 1, "home": 6, "away": 7, "tiebreakHome": 4, "tiebreakAway": 7}],
  "live": null,
  "duration": "2:52",
  "setDurations": ["0:55", "0:56", "1:01"],
  "statistics": {
    "match": {"aces": {"home": "7", "away": "10"}, "firstServePointsWon": {"home": "78% (59/76)", "away": "84% (57/68)"}},
    "set1": {"aces": {"home": "3", "away": "1"}}
  },
  "pointByPoint": [
    {"set": 1, "gamesHome": 2, "gamesAway": 3, "server": "home", "winner": "away", "serviceBroken": true,
     "breakPoints": 1, "points": ["0:15", "15:15", "15:30", "15:40"]}
  ],
  "odds": {
    "summary": {"bookmakers": 19, "homeBest": 2.8, "homeBestBookmaker": "Unibetuk", "homeAverage": 2.692,
                "homeOpeningAverage": 2.453, "awayBest": 1.45, "awayAverage": 1.436,
                "homeImpliedProbability": 0.3479, "awayImpliedProbability": 0.6521},
    "markets": [{"bookmaker": "William Hill", "market": "HOME_AWAY", "period": "FIRST_SET",
                 "selections": [{"side": "home", "odds": 2.3, "opening": 2.2, "active": true},
                                {"side": "away", "odds": 1.57, "opening": 1.62, "active": true}]}]
  },
  "headToHead": {
    "meetings": [{"matchId": "2uSbdwDj", "date": "2026-10-22T06:40:00Z", "tournament": "Almaty", "surface": "hard",
                  "home": "Atmane T.", "away": "Bellucci M.", "score": "2:1", "winner": "home"}],
    "homeLastMatches": [],
    "awayLastMatches": []
  },
  "scrapedAt": "2026-10-23T18:00:00+00:00"
}
```

- `status`: `scheduled`, `live`, `finished`, `postponed`, `cancelled`, `interrupted` or `abandoned`. `result` on finished matches is `completed`, `retired` or `walkover`.
- `ranking` / `rankingPoints`: the player's current ATP or WTA ranking at the time of the run (the doubles ranking for doubles matches), or `null` if the player is unranked.
- `live` (live matches only): `server` (`home` or `away`) and the current game score (`gameScoreHome`, `gameScoreAway`, e.g. `40` and `A`).
- Doubles: `home.name` is `"Player A./Player B."`, and `home.players` lists both players with their rankings and countries.
- Odds `period`: `FULL_TIME`, `FIRST_SET`, `SECOND_SET`. For over/under and handicap, `handicap` holds the line (e.g. `21.5` games).

### Pricing

| Event | Price |
|---|---|
| Match row | $0.001 |
| Odds (per match with odds) | $0.002 |
| Statistics (per match with stats) | $0.001 |
| Point-by-point (per match that has it) | $0.001 |
| Head-to-head (per match) | $0.001 |

Example: all of today's ATP and WTA singles (about 40 matches) with odds costs about $0.12. A day of every tour (about 300–400 matches) without details costs about $0.35.

### Input

| Field | Default | Description |
|---|---|---|
| `dayOffsets` | `["0"]` | Days to collect, from `-7` (a week ago) to the published schedule (`1`–`2`). UTC days. |
| `status` | `all` | `live`, `finished`, `scheduled` or `all` |
| `tours` | all | `ATP`, `WTA`, `Challenger`, `ITF`, `Other` |
| `matchTypes` | both | `singles`, `doubles` |
| `includeOdds` / `oddsCountry` / `oddsMarkets` | off / `GB` / all | Bookmaker odds. The country sets which bookmakers appear (GB 19, IT 13, ES 10, FR 8, DE 7, US 5, AU 2). |
| `includeStatistics` | off | Match and per-set statistics, plus set durations |
| `includePointByPoint` | off | Game-by-game and point-by-point |
| `includeHeadToHead` / `headToHeadLimit` | off / 10 | Meetings and recent form |
| `tournaments`, `players` | – | Contains-filters, e.g. `Wimbledon`, `Sinner` |
| `matchIds` | – | Flashscore match IDs or URLs |
| `maxMatches` | 0 (all) | Cap on matches |

### Good to know

- **Coverage window:** Flashscore serves the last 7 days and the upcoming schedule (usually up to 2 days ahead). For a longer history, schedule a daily run.
- **Statistics and point-by-point** exist for most ATP, WTA and Challenger matches, and for fewer ITF matches. Matches without them aren't charged for them.
- **Live data** is a snapshot at the moment of the run. Schedule the actor (e.g. every 5 minutes) to follow matches.
- Not affiliated with Flashscore or Livesport.

# Actor input Schema

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

Which days to collect (UTC). Flashscore serves the last 7 days and the published schedule (usually 1–2 days ahead).

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

Only matches in this state.

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

Which tours to include.

## `matchTypes` (type: `array`):

Doubles rows list both players with their rankings.

## `includeOdds` (type: `boolean`):

Pre-match / closing odds per bookmaker: match winner, sets over/under, set handicap, correct score, odd/even, for the match and each set, with opening prices, plus a summary (best and average price, implied probability). Finished matches keep their closing odds.

## `oddsCountry` (type: `string`):

Bookmakers depend on the country.

## `oddsMarkets` (type: `array`):

Keep only these markets.

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

Aces, double faults, 1st/2nd serve %, break points, return points, winners, unforced errors… for the match and each set, plus set durations. Played matches only.

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

Every game: score after it, server, winner, break, break points and the point sequence (15:0, 30:0…). Played matches only.

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

Previous meetings of the two players and each player's last matches.

## `headToHeadLimit` (type: `integer`):

Maximum meetings and last matches per player.

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

Keep matches whose tournament or category contains one of these, e.g. 'Wimbledon', 'Brussels', 'ITF Women'.

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

Keep matches with one of these players, as Flashscore writes them (e.g. 'Sinner', 'Alcaraz C.').

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

Specific Flashscore matches (8-character ID or match URL). Looked up across the last 7 days and the schedule unless you pick days.

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

0 = all matches found.

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

Alternative to Days: exact dates within the last 7 days or the schedule.

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

Not needed: Flashscore's feeds answer directly. Only set one if requests start failing.

## Actor input object example

```json
{
  "dayOffsets": [
    "0"
  ],
  "status": "all",
  "tours": [
    "ATP",
    "WTA",
    "Challenger",
    "ITF",
    "Other"
  ],
  "matchTypes": [
    "singles",
    "doubles"
  ],
  "includeOdds": false,
  "oddsCountry": "GB",
  "oddsMarkets": [
    "HOME_AWAY",
    "OVER_UNDER",
    "ASIAN_HANDICAP",
    "CORRECT_SCORE",
    "ODD_OR_EVEN"
  ],
  "includeStatistics": false,
  "includePointByPoint": false,
  "includeHeadToHead": false,
  "headToHeadLimit": 10,
  "maxMatches": 0,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

# 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("cycha/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 = {}

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

```

## MCP server setup

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