# Tennis Odds & Stats Scraper (`insanedev/tennis-data`) Actor

Tennis scores, stats and odds from Flashscore for ATP, WTA, Challenger and ITF: live matches, results, fixtures and past seasons. Odds from up to 175 bookmakers with opening and closing prices, point-by-point, H2H and form for backtests, player profiles and rankings. First 10 matches free.

- **URL**: https://apify.com/insanedev/tennis-data.md
- **Developed by:** [Insane Developer](https://apify.com/insanedev) (community)
- **Categories:** Sports, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.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/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

### What does Tennis Odds & Stats Scraper do?

**It returns tennis matches from Flashscore, one row per match: score and sets, match and per-set statistics, point-by-point, head-to-head and form, player profiles, ATP and WTA rankings, and odds from about 175 bookmakers.** It covers ATP, WTA, Challenger, WTA 125, ITF, Davis Cup and more. Ask for yesterday's results, live matches, fixtures for the next 7 days, or any past tournament edition. Odds go back at least to 2012.

**Price:** the first 10 matches of every account are free. After that a match costs **$3 per 1,000**, statistics and the other match details add $4 per 1,000, and odds add $5 per 1,000. A match with no data costs nothing. Yesterday's 60 ATP, WTA and Challenger matches with everything on cost about $0.72.

**Try it:** click **Try for free** and press **Start**. The prefilled input returns 30 of yesterday's matches with statistics, player profiles and odds in under a minute. No login or API key is needed, and the rows come as JSON, CSV or Excel, or go to Google Sheets, n8n, Make or Zapier.

![145 bookmakers per match on median; on the same 10 Wimbledon 2026 matches 152 against 106 for sports-odds-lab with all its bookmakers on](https://api.apify.com/v2/key-value-stores/AHoAQnVNLgyNJHsXi/records/tennis-bookmakers.png)

### Who uses it

- Betting and trading models: closing odds from up to 175 bookmakers, no-vig probabilities, line movement and leak-free form, ready for backtests.
- Odds monitoring: schedule fixtures with odds every hour and see which bookmaker moved first and who pays the best price.
- Live score apps, bots and widgets: live point score, server, set scores and TV channels on a schedule that returns only changed matches.
- Analysts, journalists and fantasy players: serve and return statistics per set, point-by-point, player age, injuries, titles and season records.
- Researchers: any tournament edition from the archive, plus full ATP and WTA rankings.

### What you get per match

Match: tour, tournament, surface, indoor or outdoor, round, best of 3 or 5, start and end time, status (scheduled, live, finished, retired, walkover and others), score with tiebreak points, games per set, match and set durations, and TV channels.

Players: short and full name, country, current rank and ranking points, and the player page. Turn on player profiles to add birth date and age, the current injury and injury history, every title with its prize money, and win/loss records per season on hard, clay and grass with the year-end rank.

Statistics: aces, double faults, first serve %, points won on serve and return, break points saved and converted, and games won, for the whole match and for each set. Ratios come as a value and a total, so `3/4` becomes 3 and 4.

Point-by-point: every game with the server, the winner and whether serve was broken, plus every point score with flags for break, set and match points. Tiebreaks are included.

Head-to-head and form: previous meetings on all surfaces and on this surface, each player's last matches, wins on this surface and rest days since the last match. The lists leave out the match itself and anything played after it, so you can backtest a model without look-ahead.

Odds: opening and current match-winner odds from up to about 175 bookmakers. After the match these are closing odds. Each region shows its own bookmakers, so the Actor reads all 48 regions that Flashscore serves, including US states and Canadian provinces, and merges them. A top Challenger match gets 140 to 150 prices. The summary gives the median price, the best price and its bookmaker, no-vig fair probabilities, how far the fair probability moved since the opening, the overround, and a table of bookmakers sorted by margin. With `oddsDetail: full` you also get every bookmaker and market line (sets, total games, handicaps, correct score, odd/even), with WON or LOST after the match.

Live: current point score and who is serving.

Rankings mode: the full ATP and WTA lists with rank, points and player id. ATP has about 2,300 ranked players.

### How it compares

![Feature table: Tennis Odds & Stats Scraper against sports-odds-lab and lergassy](https://api.apify.com/v2/key-value-stores/AHoAQnVNLgyNJHsXi/records/tennis-compare.png)

We ran the same day and the same filters on the Apify platform in November 2026:

| | Tennis Odds & Stats Scraper | sports-odds-lab | lergassy |
| --- | --- | --- | --- |
| Bookmakers per match (median, same 10 Wimbledon 2026 matches) | 152 | 106 | none |
| Markets | all lines (winner, sets, games, handicaps, correct score) | match winner | none |
| Opening and closing odds, line move | yes | yes | no |
| Match statistics and point-by-point | yes, per set | yes | yes |
| H2H and form without look-ahead | yes | yes | H2H |
| Rank, round, full names | yes | rank and round | round and names |
| Age, injuries, titles, season records | yes | no | no |
| TV channels | yes | no | no |

### How to use it

#### Yesterday's results for a model

1. Keep **What to scrape** on *Matches* and `daysBack` at 1.
2. Pick tours and turn on statistics, point-by-point, head-to-head, player profiles and odds.
3. Run it. 15 matches with everything on take about 15 seconds. With **Bookmaker coverage** set to *Fast* they take about 5.

#### Live scores and in-play odds

Set **What to scrape** to *Live* and schedule the task every few minutes. With **Only new or changed matches** on, each run returns only matches whose status or score changed since the last run, so you don't pay twice for the same state.

#### Fixtures with odds

Set `daysBack` to 0, `daysAhead` to 2, statuses to `scheduled`, and turn on odds. You get opening and current prices for the next two days, with ranks and form for both players.

#### A whole tournament or a player's history

Use *Tournament* with Flashscore tournament links of any year, such as `https://www.flashscore.com/tennis/atp-singles/wimbledon-2015/results/`, or *Player* with player links.

### Input

| Field | Default | What it does |
| --- | --- | --- |
| `mode` | `matches` | `matches` (by day), `live`, `tournament`, `player`, `rankings` |
| `daysBack` / `daysAhead` | 1 / 0 | Matches mode: days back and ahead, up to 7 each |
| `tours` | ATP, WTA, Challenger, WTA 125 | Also ITF_MEN, ITF_WOMEN, TEAMS, EXHIBITION, JUNIORS, UTR, OTHER |
| `disciplines` | singles and doubles | `singles`, `doubles` |
| `statuses` | all | For example `finished`, `live`, `scheduled`, `retired` |
| `playerNames` / `tournamentNames` | none | Keep only matching players or tournaments |
| `tournamentUrls` / `playerUrls` | none | For the tournament and player modes |
| `includeStatistics` / `includePointByPoint` / `includeH2H` | off | Detail blocks |
| `h2hMatches` | 10 | Matches kept in each H2H and form list |
| `includePlayerProfile` | off | Age, injuries, titles with prize money, season records per surface |
| `includeRanking` / `includeRound` | on | Rank, points and full names; round from the tournament page |
| `includeOdds` / `oddsDetail` | off / `summary` | Odds summary, or every bookmaker and market line with `full` |
| `oddsCoverage` | `all` | `all` reads 48 regions (about 175 bookmakers); `fast` reads the 10 biggest |
| `oddsCountries` | none | Your own region list, for example `GB`, `US:USNJ`, `CA:CAON` |
| `onlyNew` | off | For schedules: skip matches already delivered with the same status and score |
| `maxMatches` | 1000 | Upper limit of match rows per run |
| `rankingTours` / `rankingTop` | ATP, WTA / 100 | Rankings mode |

### Output

One dataset row per match. A field the source doesn't publish is `null`. From a real run, shortened:

```json
{
  "matchId": "p8FkzKpR",
  "matchUrl": "https://www.flashscore.com/match/tennis/p8FkzKpR/",
  "startTime": "2026-11-24T21:00:00.000Z",
  "endTime": "2026-11-24T22:39:16.000Z",
  "status": "finished",
  "tour": "CHALLENGER",
  "discipline": "singles",
  "tournament": "San Salvador",
  "surface": "hard",
  "indoor": false,
  "round": "1/16-finals",
  "bestOf": 3,
  "homePlayer": "Nefve A.",
  "homeFullName": "Axel Nefve",
  "homeRank": 951,
  "homeRankPoints": 22,
  "homeAge": 26,
  "homeInjury": null,
  "awayPlayer": "Rubio Fierros A. F.",
  "awayFullName": "Alan Fernando Rubio Fierros",
  "awayRank": 894,
  "awayAge": 27,
  "winner": "home",
  "score": "6-4 6-4",
  "matchDurationMinutes": 100,
  "setDurationsMinutes": [
    54,
    46
  ],
  "h2hHomeWins": 0,
  "h2hAwayWins": 0,
  "homeForm": {
    "matches": 10,
    "wins": 4,
    "last": "WLLWLLLLWW",
    "surfaceMatches": 7,
    "surfaceWins": 4,
    "lastMatch": "2026-11-23T18:00:00.000Z",
    "restDays": 1.1
  },
  "statisticsSummary": {
    "acesHome": 5,
    "acesAway": 5,
    "doubleFaultsHome": 7,
    "doubleFaultsAway": 6
  },
  "homeProfile": {
    "name": "Axel Nefve",
    "birthDate": "2000-07-22",
    "age": 26,
    "currentInjury": null,
    "injuries": [],
    "titles": [
      {
        "year": 2026,
        "tournament": "M25 Kigali (ITF)",
        "surface": "clay",
        "country": "Rwanda",
        "prizeMoney": "$30,000",
        "discipline": "doubles",
        "date": "2026-09-29T11:30:00.000Z"
      }
    ],
    "seasons": [
      {
        "discipline": "singles",
        "season": 2026,
        "rank": 951,
        "titles": 0,
        "wins": 16,
        "losses": 17,
        "hardWins": 12,
        "hardLosses": 12,
        "clayWins": 4,
        "clayLosses": 5,
        "grassWins": null,
        "grassLosses": null
      }
    ]
  },
  "odds": {
    "bookmakers": 141,
    "bookmakersListed": 156,
    "closing": true,
    "homeOdds": 2,
    "awayOdds": 1.72,
    "homeOpening": 2.2,
    "awayOpening": 1.6,
    "bestHome": {
      "odds": 2.25,
      "bookmaker": "Skybet"
    },
    "bestAway": {
      "odds": 1.8,
      "bookmaker": "Lobbet"
    },
    "homeFairProbability": 0.4624,
    "awayFairProbability": 0.5376,
    "marginPct": 8.14,
    "homeOpeningFairProbability": 0.4211,
    "homeProbabilityMovePts": 4.13,
    "byBookmaker": [
      {
        "bookmaker": "Momobet",
        "home": 2.05,
        "away": 1.79,
        "homeOpening": 2.27,
        "awayOpening": 1.6,
        "marginPct": 4.65,
        "active": true
      },
      {
        "bookmaker": "Betxchange",
        "home": 2.11,
        "away": 1.74,
        "homeOpening": 2.23,
        "awayOpening": 1.63,
        "marginPct": 4.86,
        "active": false
      }
    ]
  }
}
```

The run also saves `RUN_SUMMARY` in the key-value store with matches found, rows pushed, rows skipped by `onlyNew`, billed events and request counts.

### Pricing

![$7 per 1,000 matches with stats, point-by-point and H2H, against $21.60 at lergassy](https://api.apify.com/v2/key-value-stores/AHoAQnVNLgyNJHsXi/records/tennis-price.png)

Your first 10 matches are free, with every detail and odds, so you can check the data before you pay. After that you pay per event, and only for data you get. Prices per 1,000 on the Bronze plan:

| Event | Price | When it is charged |
| --- | --- | --- |
| Match | $3 | each match row |
| Match details | $4 | a match with statistics, point-by-point, head-to-head or a player profile |
| Odds | $5 | a match with at least one bookmaker price |
| Ranking row | $0.50 | each ranking row |

What typical runs cost:

| Run | Cost |
| --- | --- |
| Yesterday's 60 ATP, WTA and Challenger matches, scores only | $0.18 |
| The same 60 matches with stats, point-by-point, H2H and profiles | $0.42 |
| The same 60 matches with everything and odds | $0.72 |
| Live scores every 5 minutes for a day, about 400 changed matches | $1.20 |
| Top 500 ATP and top 500 WTA ranking | $0.50 |

Silver plans get 10% off and Gold and above 20% off. A match with no statistics doesn't pay for details, and a match no bookmaker priced doesn't pay for odds. Errors and duplicates are free. Set a maximum cost per run in the run options and the run stops cleanly when it reaches it. The Apify free plan's monthly credit covers several hundred full matches.

### Use it from your code, AI agents and no-code tools

Call the Actor through the Apify API or the `apify-client` package for JavaScript and Python, and read the dataset as JSON, CSV or Excel. It also works in Make, n8n, Zapier and Google Sheets through the Apify integrations, and in AI agents through the Apify MCP server (`https://mcp.apify.com`), where an assistant can ask for "yesterday's ATP results with odds" and get rows back.

### Limitations

- Doubles have no rank, ranking points or player profiles, because the rankings cover singles.
- Small ITF and Challenger matches can have only a handful of bookmakers or none.
- Point-by-point and statistics exist only where Flashscore publishes them, mostly ATP, WTA and Challenger.
- Live data is as fresh as your schedule. The Actor reads on demand and doesn't push updates.

### FAQ

**Where does the data come from?** Flashscore's public pages and feeds, read at run time. Odds come from the same public odds service, one region at a time, and are merged.

**How fresh is it?** Every run reads the sources live, so live scores are as fresh as your schedule.

**Is it legal?** The Actor collects publicly available sports data. Check the terms that apply to how you use it, especially for commercial betting products.

**Do I need proxies?** No. The Actor connects directly and spreads odds requests over Apify datacenter proxies on its own when your plan includes them.

**How far back can I go?** Day mode covers 7 days back and 7 ahead. For older matches use tournament links of any year or player links.

**Can I backtest a betting model?** Yes. H2H and form leave out the match itself and later matches, and finished matches carry closing odds.

**Something is wrong or missing?** Open an issue on the Actor page with the match link. Happy with the data? A short review on the Store page helps other people find it.

# Changelog

This Actor's version history is a separate document: https://apify.com/insanedev/tennis-data/changelog.md

# Actor input Schema

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

matches: results, fixtures and live matches by day (up to 7 days back and 7 ahead). live: only matches in play now. tournament: every match of a tournament edition, any year (Flashscore tournament URL). player: a player's recent results (Flashscore player URL). rankings: weekly ATP / WTA singles rankings.

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

Matches mode: how many past days to include (0 = today only, max 7).

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

Matches mode: how many future days of fixtures to include (max 7).

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

Which tours to keep. Values: ATP, WTA, CHALLENGER, WTA_125, ITF_MEN, ITF_WOMEN, TEAMS (Davis Cup, BJK Cup, United Cup), EXHIBITION, JUNIORS, OTHER.

## `disciplines` (type: `array`):

Keep singles, doubles or both.

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

Keep only these statuses. Empty = all.

## `playerNames` (type: `array`):

Keep only matches with one of these players (e.g. "Sinner", "Swiatek I."). Case-insensitive.

## `tournamentNames` (type: `array`):

Keep only tournaments whose name contains one of these words (e.g. "Wimbledon", "Ankara").

## `tournamentUrls` (type: `array`):

Flashscore tournament pages, any edition, e.g. https://www.flashscore.com/tennis/atp-singles/wimbledon-2015/results/ or https://www.flashscore.com/tennis/atp-singles/stockholm/ (current edition).

## `playerUrls` (type: `array`):

Flashscore player pages, e.g. https://www.flashscore.com/player/sinner-jannik/6HdC3z4H/

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

Aces, double faults, serve and return points, break points, games won, per match and per set.

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

Every game with server, winner, breaks and point sequence, incl. tiebreaks, with break / set / match point flags.

## `includeH2H` (type: `boolean`):

Previous meetings plus each player's last matches.

## `h2hMatches` (type: `integer`):

How many previous matches to keep in each list.

## `includePlayerProfile` (type: `boolean`):

Age and birth date, current injury and injury history, titles with prize money, and win/loss records per season and surface (hard, clay, grass) with the year-end rank.

## `includeRanking` (type: `boolean`):

Add each player's current ATP / WTA rank and points (singles), plus full name and player URL.

## `includeRound` (type: `boolean`):

Add the round ("1/8-finals", "Quarter-finals", "Final") from the tournament page.

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

Opening and current (or closing) odds from up to ~175 bookmakers: match winner, sets, games over/under, handicaps, correct score; median, best price, no-vig probability and per-bookmaker margin.

## `oddsDetail` (type: `string`):

summary: one odds block per match (median, best, opening, fair probability). full: also every bookmaker × market line.

## `oddsCoverage` (type: `string`):

all: every bookmaker region we know (48 regions, about 175 bookmakers; a top match gets 130–160 prices). fast: the 10 biggest regions (about 100 bookmakers), quicker on large runs.

## `oddsCountries` (type: `array`):

Advanced: your own list of regions instead of the coverage setting. Two-letter country codes, or country:subdivision for US states and Canadian provinces (US:USNJ, CA:CAON). Up to 60.

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

For schedules: skip matches this input already delivered with the same status and score. Finished matches are sent once; live ones each time the score changes.

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

Upper limit of match rows per run. It also caps the cost: 30 matches with statistics and odds cost about $0.36 after the 10 free ones.

## `rankingTours` (type: `array`):

Rankings mode: which tours.

## `rankingTop` (type: `integer`):

Rankings mode: top N players per tour (ATP has about 2,300 ranked players).

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

How many requests run at once.

## Actor input object example

```json
{
  "mode": "matches",
  "daysBack": 1,
  "daysAhead": 0,
  "tours": [
    "ATP",
    "WTA",
    "CHALLENGER",
    "ITF_MEN",
    "ITF_WOMEN",
    "UTR"
  ],
  "disciplines": [
    "singles",
    "doubles"
  ],
  "includeStatistics": true,
  "includePointByPoint": false,
  "includeH2H": false,
  "h2hMatches": 10,
  "includePlayerProfile": true,
  "includeRanking": true,
  "includeRound": true,
  "includeOdds": true,
  "oddsDetail": "summary",
  "oddsCoverage": "all",
  "onlyNew": false,
  "maxMatches": 30,
  "rankingTours": [
    "ATP",
    "WTA"
  ],
  "rankingTop": 100,
  "maxConcurrency": 16
}
```

# Actor output Schema

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

No description

## `odds` (type: `string`):

No description

## `statistics` (type: `string`):

No description

## `summary` (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 = {
    "mode": "matches",
    "daysBack": 1,
    "tours": [
        "ATP",
        "WTA",
        "CHALLENGER",
        "ITF_MEN",
        "ITF_WOMEN",
        "UTR"
    ],
    "includeStatistics": true,
    "includePlayerProfile": true,
    "includeOdds": true,
    "maxMatches": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("insanedev/tennis-data").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 = {
    "mode": "matches",
    "daysBack": 1,
    "tours": [
        "ATP",
        "WTA",
        "CHALLENGER",
        "ITF_MEN",
        "ITF_WOMEN",
        "UTR",
    ],
    "includeStatistics": True,
    "includePlayerProfile": True,
    "includeOdds": True,
    "maxMatches": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("insanedev/tennis-data").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 '{
  "mode": "matches",
  "daysBack": 1,
  "tours": [
    "ATP",
    "WTA",
    "CHALLENGER",
    "ITF_MEN",
    "ITF_WOMEN",
    "UTR"
  ],
  "includeStatistics": true,
  "includePlayerProfile": true,
  "includeOdds": true,
  "maxMatches": 30
}' |
apify call insanedev/tennis-data --silent --output-dataset

```

## MCP server setup

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

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/yhXVgRr5CbhfYElEK/builds/R9RIgFtusKNSccXFI/openapi.json
