# Tennis Scores, Stats & Odds: ATP, WTA, Challenger, ITF (`locaihost/tennis-scores`) Actor

Live and final tennis scores at $5 per 1,000 matches. ATP, WTA, Challenger and ITF singles with set scores and tiebreaks, seeds, match stats, duration, plus opening and latest odds from Pinnacle and Unibet with margin-free win chances. No login.

- **URL**: https://apify.com/locaihost/tennis-scores.md
- **Developed by:** [locaihost data](https://apify.com/locaihost) (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

Pay per event

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

## Tennis Scores, Stats & Odds: ATP, WTA, Challenger, ITF

Get one row per tennis match, from the big tour finals down to the ITF events, live or finished. Each row has both
players with country and seed, the score of every set with tie-break points, the winner, how long the match took,
the match stats (aces, double faults, serve and break point numbers and more), and match-winner odds from Pinnacle
and Unibet with the opening price, the closing price and a margin-free win chance.

**$5 per 1,000 matches.** No login, no API key, no setup.

### What can I use it for?

- **Live scoreboards and alerts.** Schedule it every few minutes with "Only new or changed matches" on, and you only
  get (and pay for) the matches whose score moved.
- **Results and stats databases.** Pull yesterday's results every morning for every tour, with set-by-set scores,
  durations and serve stats.
- **Betting models and research.** Every match carries the opening and closing price from two books and the win
  chance they imply, plus an upset flag when the outsider won.
- **Challenger and ITF coverage.** Most tennis feeds stop at ATP and WTA. This one carries the Challenger and ITF
  World Tennis Tour matches too, which is where most of the week's matches are played.

### How do I get tennis scores?

1. Open the Actor and pick the **dates** (today by default) and the **tours** you want.
2. Optionally type a tournament or a player's surname in **Tournament or player**, for example `Paris` or `Finals`.
3. Click **Start**. A full day of every tour takes a minute or two; ATP and WTA alone take seconds.
4. Download the rows as JSON, CSV or Excel, or read them from the API.

### What does a row look like?

Player and tournament names below are placeholders.

```json
{
    "matchId": "fs-AbCd1234",
    "tour": "Challenger",
    "gender": "men",
    "tournament": "Example City",
    "tournamentCountry": "Peru",
    "surface": "clay",
    "indoor": false,
    "round": "Quarter-final",
    "qualifying": false,
    "date": "2026-11-13",
    "startTime": "2026-11-13T18:30:00Z",
    "status": "finished",
    "statusDetail": null,
    "home": { "name": "Alex Example", "shortName": "Example A.", "country": "Spain", "seed": 3, "playerId": "aB12cD34" },
    "away": { "name": "Sam Sample", "shortName": "Sample S.", "country": "Chile", "seed": null, "playerId": "eF56gH78" },
    "score": "6-4 6-7(5) 7-5",
    "sets": [
        { "home": 6, "away": 4, "tiebreak": null },
        { "home": 6, "away": 7, "tiebreak": "5-7" },
        { "home": 7, "away": 5, "tiebreak": null }
    ],
    "setsWon": { "home": 2, "away": 1 },
    "winner": "home",
    "winnerName": "Alex Example",
    "server": null,
    "currentGamePoints": null,
    "durationMin": 150,
    "setDurationsMin": [58, 46, 46],
    "stats": {
        "aces": { "home": 6, "away": 13 },
        "doubleFaults": { "home": 1, "away": 4 },
        "firstServePct": { "home": 70, "away": 64 },
        "firstServePointsWonPct": { "home": 74, "away": 69 },
        "secondServePointsWonPct": { "home": 48, "away": 56 },
        "breakPointsSaved": { "home": "3/5", "away": "2/4" },
        "breakPointsConverted": { "home": "2/4", "away": "2/5" },
        "winners": { "home": 26, "away": 28 },
        "unforcedErrors": { "home": 23, "away": 43 },
        "netPointsWonPct": { "home": 100, "away": 60 },
        "totalPointsWon": { "home": 112, "away": 104 },
        "serviceGamesWonPct": { "home": 87, "away": 80 }
    },
    "odds": {
        "pinnacle": {
            "eventId": "1640000000",
            "open": { "home": 1.95, "away": 1.87, "at": "2026-11-12T21:00:00Z" },
            "close": { "home": 1.81, "away": 2.02, "at": "2026-11-13T18:20:00Z" },
            "last": { "home": 1.81, "away": 2.02, "at": "2026-11-13T18:20:00Z" }
        },
        "unibet": null
    },
    "impliedProbability": { "home": 0.5274, "away": 0.4726, "book": "pinnacle", "basis": "close" },
    "upset": false,
    "change": "new",
    "sources": ["flashscore", "espn", "pinnacle"],
    "scrapedAt": "2026-11-14T01:00:00Z"
}
```

`statsRaw` and `setStatsRaw` (not shown) hold every stat line as the scoreboard shows it, for the whole match and for
each set, in case you want a number the `stats` block doesn't name.

### What do the fields mean?

| Field | What it is |
|---|---|
| `matchId` | Stable id for the match. Use it to join runs together. |
| `tour` | `ATP`, `WTA`, `Challenger`, `ITF` or `Other` (exhibitions, team events, juniors). |
| `status` | `scheduled`, `live`, `interrupted`, `finished`, `retired`, `walkover`, `postponed` or `cancelled`. |
| `statusDetail` | The current set while live ("2nd set"), or extra detail on the ending. |
| `home`, `away` | The player listed first and second. `name` is the full name where a source gives one, `shortName` the scoreboard's "Last F." form. `seed` is the tournament seed. |
| `score` | The whole score on one line, with the loser's tie-break points in brackets. |
| `sets` | Games per set, and tie-break points as `"7-5"` when the set had one. |
| `server`, `currentGamePoints` | While live: who is serving and the points in the current game. |
| `durationMin`, `setDurationsMin` | Match length and each set's length, in minutes. |
| `stats` | Main match stats for each player. Percentages are whole numbers. |
| `odds` | Pinnacle and Unibet match-winner prices (decimal). `open` is the first price before the match, `close` the last one before it started, `last` the latest. |
| `impliedProbability` | Win chance for each player with the bookmaker margin taken out. Uses the closing price once a match has started, the latest price before that. |
| `upset` | `true` when the player who was less likely to win on the closing price won. |
| `change` | `new`, `changed` or `unchanged` compared with this task's last run. |
| `url` | The match page on the scoreboard site, when there is one. |

### How does "only new or changed" work?

The Actor remembers each match's status and score per saved task (or per input, if you run it without a task). With
**Only new or changed matches** on, a match is returned only if it is new or its status, score or winner moved since
the last run. Matches that didn't change are not returned and not charged. That makes a live feed every few minutes
cheap: you pay for score updates, not for the same rows again.

### Where do the opening and closing odds come from?

Bookmakers drop a match from their lists once it starts or ends, so the first and last pre-match prices only exist if
a run saw them. The Actor keeps every price it sees in a store in your own account and fills `open` and `close` from
it. If you schedule it every hour or so, finished matches come back with both. A match the Actor first saw after it
started has no pre-match price, so `impliedProbability` and `upset` stay empty for it.

### Where does the data come from?

- **Flashscore** pages for the full list of matches on every tour, live scores, set scores, stats and durations.
- **ESPN** scoreboards for ATP and WTA tour-level matches: full player names, seeds and rounds. Dates more than 7 days
  from today come from here only.
- **Pinnacle** and **Unibet** public odds lists for match-winner prices.

All of these are public pages any visitor can open without an account. Matches are joined across sources by the two
players' names and the start time.

### Which inputs can I set?

| Input | Default | What it does |
|---|---|---|
| `dates` | today | UTC days as `YYYY-MM-DD`, `today`, `yesterday`, `tomorrow` or an offset like `-2`. Up to 8 per run. |
| `tours` | ATP, WTA, Challenger, ITF | Any of `ATP`, `WTA`, `Challenger`, `ITF`, `Other`. |
| `search` | none | Keeps matches whose tournament or player name contains one of the words. |
| `includeOdds` | on | Adds the Pinnacle and Unibet prices and win chances. |
| `onlyChanged` | off | Returns only new or changed matches (see above). |
| `maxMatches` | 1000 | Stops after this many matches. `0` means no limit. |

A typical live feed:

```json
{ "dates": ["today"], "tours": ["ATP", "WTA", "Challenger"], "onlyChanged": true }
```

Yesterday's results for one event:

```json
{ "dates": ["yesterday"], "search": ["Finals"], "includeOdds": true }
```

### How much does it cost?

**$5 per 1,000 matches** on the Starter plan, less on higher plans, plus a tiny start fee per run. You pay only for
the rows you get: a run with "only new or changed" that finds nothing new costs next to nothing. The run summary (the
`SUMMARY` record in the run's storage) shows the matches per feed and what was left out.

On the Apify free plan, each run returns at most 1,000 matches. Any paid plan removes that cap.

### What are the limits?

- **Singles only.** Doubles and team ties are left out.
- **Challenger, ITF and match stats cover 7 days either side of today.** Older or later dates return ATP and WTA
  tour-level matches only, without stats.
- **Stats depend on the event.** Smaller ITF matches often have no stats feed; those rows have `stats: null`.
- **Rankings are not included**, only tournament seeds.
- **Odds cover the matches the two books list**, which is most tour-level and Challenger matches and some ITF ones.
- If one source can't be read during a run, the run still delivers what the others gave and says so in its status
  message. For example, without Flashscore you still get ATP and WTA matches from ESPN.

### Is it legal to use this data?

The Actor reads public pages that anyone can open without logging in, at a polite pace. Scores and match facts are
facts; how you use and republish the data is your responsibility, so check the rules that apply to you, especially
for betting or commercial use.

### Did it help?

If the Actor saved you time, a short rating on its Apify page helps other people find it. Problems or ideas are
welcome in the Issues tab.

# Actor input Schema

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

Days to read, in UTC. Use YYYY-MM-DD, "today", "yesterday", "tomorrow" or a day offset such as "-2". Up to 8 dates per run. Challenger, ITF and match stats cover 7 days either side of today; older or later dates return ATP and WTA tour-level matches only. Empty means today.

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

Which levels of the game to include. Empty means ATP, WTA, Challenger and ITF. "Other" covers exhibitions, team events and juniors.

## `search` (type: `array`):

Optional. Keep only matches whose tournament or player name contains one of these words, for example "Paris", "Finals" or a player's surname. Accents and capitals are ignored.

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

Attach Pinnacle and Unibet match-winner prices and margin-free win chances. Opening prices are kept from earlier runs, so schedule the Actor to build a price history.

## `onlyChanged` (type: `boolean`):

Return only matches that are new or whose status, score or winner moved since this task's last run. Good for polling live scores every few minutes without paying twice for the same result.

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

Stop after this many matches. 0 means no limit.

## Actor input object example

```json
{
  "dates": [
    "today"
  ],
  "tours": [
    "ATP",
    "WTA"
  ],
  "search": [],
  "includeOdds": true,
  "onlyChanged": false,
  "maxMatches": 100
}
```

# Actor output Schema

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

One row per match: players, status, score by set, winner.

## `stats` (type: `string`):

Aces, double faults, serve and break point numbers, duration.

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

Opening, closing and latest prices from Pinnacle and Unibet, and margin-free win chances.

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

Matches per feed, what was left out and why, and the run's cost.

# 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 = {
    "dates": [
        "today"
    ],
    "tours": [
        "ATP",
        "WTA"
    ],
    "search": [],
    "maxMatches": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("locaihost/tennis-scores").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 = {
    "dates": ["today"],
    "tours": [
        "ATP",
        "WTA",
    ],
    "search": [],
    "maxMatches": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("locaihost/tennis-scores").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 '{
  "dates": [
    "today"
  ],
  "tours": [
    "ATP",
    "WTA"
  ],
  "search": [],
  "maxMatches": 100
}' |
apify call locaihost/tennis-scores --silent --output-dataset

```

## MCP server setup

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

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/xXHXuecsrTVP8cYef/builds/ulmPgSCMaUxTidh9Q/openapi.json
