# Tennis Scraper & API: ATP, WTA, ITF Results + Pinnacle Odds (`axeforce00/tennis-feed`) Actor

Tennis scraper & API for ATP, WTA, Challenger and ITF: match results, live scores, set scores, stats and Pinnacle odds (no-vig). Modes: daily, live, history since 2009, rankings, player profiles, h2h, point-by-point. From $1 per 1,000 matches. Unofficial.

- **URL**: https://apify.com/axeforce00/tennis-feed.md
- **Developed by:** [AxeForce](https://apify.com/axeforce00) (community)
- **Categories:** Sports, Developer tools
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 match result rows

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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 Scraper & API: ATP, WTA, ITF Results + Pinnacle Odds

**Tennis scraper and tennis API** that returns one JSON row per match for ATP, WTA, Challenger, ITF Men and ITF
Women: fixtures, results, live and set-by-set scores, players, tournament level, surface and **Pinnacle odds** with
the no-vig fair probability, plus match statistics and point-by-point data on request. Which mode to use:
`daily` (default) for one day or a date range, `live` for current live scores, `history` for past matches back to
January 2009, `match` to refresh `matchIds`, `rankings` for an ATP/WTA ranking list, `player` for a career profile,
`h2h` for head-to-head and `pointByPoint` for a match's point-by-point. Pricing:
**$1 per 1,000 rows** ($2 per 1,000 with statistics or point-by-point), $0.003 per live snapshot. Built and
maintained by **AxeForce**.

> **Unofficial.** Not affiliated with, endorsed by or sponsored by the ATP, WTA, ITF, Flashscore, Pinnacle, Kambi or
> any tournament organiser. Data is read from publicly available endpoints with rate limits, a circuit breaker and a
> daily request budget; every price carries its book and observation time.

### Modes

| `mode` | Input you must give | What you get | Cost per row |
|---|---|---|---|
| `daily` (default) | `date` (default today), optional `dateTo` | every match on the day/range, all statuses | $0.001 ($0.002 with `stats`/`pbp`) |
| `live` | nothing | matches in play right now | one flat $0.003 per run |
| `match` | `matchIds` | refresh those matches (score, odds, optional `stats`/`pbp`) | $0.001 ($0.002 with `stats`/`pbp`) |
| `history` | `date` | past matches back to January 2009 | $0.001 ($0.002 with `stats`/`pbp`) |
| `rankings` | `list` (`atp_singles`, `atp_doubles`, `wta_singles`, `wta_doubles`), optional `date` | an official ATP/WTA ranking list (latest, or a specific week) | $0.0005 |
| `player` | `playerIds` | a career profile per player (W-L, titles, Elo, best rank) | $0.003 |
| `h2h` | two `playerIds`, or one `matchId` | head-to-head meetings, summary and form | $0.003 |
| `pointByPoint` | `matchIds` | each match's point-by-point data | $0.002 |

`rankings`, `player`, `h2h` and `pointByPoint` are API-only: they read the stored archive and have no
source fallback, so they never run when the data API is unreachable (they report `ok: false` and charge nothing).

#### Chain modes with IDs

Every mode hands you the ids the next mode wants, so you can chain runs:

- `daily` (or `history`) → `matchId` → `pointByPoint`: a match row carries `matchId`; pass it to `pointByPoint`
  for that match's point-by-point.
- `daily` → `matchId` → `h2h`: one `matchId` to `h2h` returns that match's stored head-to-head.
- `player` → `playerId` → `h2h`: a profile row's `playerId` (and an opponent's) to `h2h` returns their head-to-head.

### For AI agents

Call the Actor `axeforce00/tennis-feed` with one of these inputs. Every field is optional. Rows land in the default
dataset; a run summary (`ok`, `reason`, `rowsPushed`, `chargedEvents`, `nextSince`) lands in the key-value record
`OUTPUT`.

Today's matches, small sample (10 rows, **$0.01**):

```json
{}
```

Live scores right now (one flat **$0.003** per run, whatever the number of matches; free when nothing is live; 39
live matches on 10 Nov 2026 at 20:53 UTC):

```json
{ "mode": "live" }
```

Past results for one tour and day (up to 200 rows, at most **$0.20**):

```json
{ "mode": "history", "date": "2025-07-13", "tours": ["atp"], "maxRows": 200 }
```

An official ATP singles ranking (100 rows, **$0.10**):

```json
{ "mode": "rankings", "list": "atp_singles", "maxRows": 100 }
```

A player's career profile (one row, **$0.001**):

```json
{ "mode": "player", "playerIds": ["MTQ5CPOR"] }
```

Head-to-head of two players, or of one match (one row, **$0.001**):

```json
{ "mode": "h2h", "playerIds": ["MTQ5CPOR", "2JWHPUUb"] }
```

Point-by-point for one match (one row, **$0.002**):

```json
{ "mode": "pointByPoint", "matchIds": ["203038293551040"] }
```

Tips: `maxRows` caps the cost of `daily`, `history` and `rankings` runs (rows x $0.001, or $0.002 with
`include: ["stats"]` or `["pbp"]`; ranking rows are $0.0005). `history` needs `date`; `rankings` needs `list`; `player`/`h2h` need
`playerIds` (or one `matchId` for `h2h`); `pointByPoint` needs `matchIds`. Filter
players by id, not by name: take `homePlayers[].id` / `awayPlayers[].id` from an earlier row and pass it in
`playerIds`. Filter tournaments with `tournament` (a case-insensitive substring of the name). A run that returns
nothing is not charged.

### How to scrape tennis results, live scores and odds

1. Click **Start** with the default input: you get a 10-row sample of today's matches (about $0.01).
2. Pick a `mode`: `daily` for a date or date range, `live` for matches in play, `match` to refresh known
   `matchIds`, `history` for the archive back to 2009.
3. Narrow it with `tours`, `playerIds`, `tournament`, `surfaces`, `indoor` or ITF `categories`, and add
   `include: ["stats", "pbp"]` for match statistics and point-by-point data.
4. Raise `maxRows` (for example to 1000) to get a full day: we measured 145 matches on Sunday 1 Nov 2026, 587 on
   28 Oct and 392 on 10 Nov across all tours.
5. Download the dataset as JSON, CSV or Excel, or read it through the Apify API.

From Python with the official `apify-client` package (Node.js works the same way with `apify-client` for JavaScript):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("axeforce00/tennis-feed").call(
    run_input={"mode": "daily", "date": "2026-11-09", "tours": ["atp", "wta"], "maxRows": 1000})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["tournament"], row["playerHome"], "vs", row["playerAway"], row["status"], row["score"])
```

### What tennis data you get

| | |
|---|---|
| Tours | ATP, WTA, Challenger, ITF Men and ITF Women (ITF from October 2026), plus `other` (Davis Cup, BJK Cup, UTR, juniors, exhibitions) |
| Per match | tournament, tour level, ranking points, city, country, surface, indoor, round, best-of, start time, players with stable ids and countries, status, set-by-set score, live game score, server, winner, retirements |
| Odds | every Pinnacle market carried for the match (match winner, set handicaps, game totals and more, up to about 40), the no-vig fair probability, Elo win probability; closing odds with opening prices for finished matches |
| Extras | match statistics and point-by-point data (`include`) |
| History | back to January 2009 (`mode: history`); older matches carry the market-average closing price |

Set-by-set score coverage, measured on 9 Nov 2026 over finished singles matches since 2015: ATP 45,714 of 47,887
(95.5%), WTA 44,146 of 46,112 (95.7%), Challenger 70,943 of 84,891 (83.6%).

### Why this tennis data feed

1. **Every tour, not just the top two.** ITF Men/Women, Challenger and WTA 125 are first-class tours (`tour` is one
   of `atp`, `wta`, `challenger`, `wta125`, `itf_men`, `itf_women`, `other`; WTA 125 from 14 Nov 2026), in the same
   row shape as ATP/WTA. On 10 Nov 2026,
   367 of 392 matches were Challenger or ITF.
2. **Odds inside the match row.** Every Pinnacle market the feed carries for that match (full-time `h2h` plus set
   handicaps, game totals and more, up to about 40 quote records per match: measured maximum `marketCount` 39 on
   10 Nov 2026), and `fairProbNoVig`, the power-devigged Pinnacle full-time h2h probability (the sharp anchor). Soft
   books are never mixed in and never mislabelled as Pinnacle.
3. **Honest flags instead of failed runs.** A degraded source produces `partial: true` rows, a loud status message
   and a `degraded` list in the `OUTPUT` record. A run with nothing to serve exits `ok: false` with a reason and
   never charges.
4. **A stable, documented row contract** (`schemaVersion` `1.0`) plus `sourceMode`.
5. **Player identity and venue metadata, not just names.** Every row carries `homePlayers`/`awayPlayers` (stable
   player ids, names, slugs, countries, photo URLs) plus `tournamentCategory`, `tournamentPoints` (ranking points
   the singles champion got that season: one level number comparable across 2009-2026), `tournamentCity`,
   `tournamentCountry`, `indoor` and `bestOf`, so you can filter by player, official tour level, ITF tier, surface
   or indoor courts without fuzzy name matching.
6. **Closing lines and history.** A past match (status neither `scheduled` nor `live`: finished, cancelled,
   unknown) carries its closing odds with `include: ["odds"]`; see "Closing odds" below.

### Tennis scraper input modes

| `mode` | What you get | Cost |
|---|---|---|
| `daily` (default) | every match on `date`..`dateTo` (`date` alone = that one day; empty = today), all statuses | $0.001 per row ($0.002 with stats/pbp) |
| `live` | matches in play right now; with `since` only changed rows | $0.003 per run, any row count; free when nothing is live |
| `match` | targeted refresh of the `matchIds` you pass (up to `maxMatches`) | $0.001 per row ($0.002 with stats/pbp) |
| `history` | past matches for `date`..`dateTo` (`date` required), back to January 2009, with `stats`/`pbp` when requested and present | $0.001 per row ($0.002 with stats/pbp) |
| `rankings` | one official ranking list (`list`, optional `date`), each row a player's rank | $0.0005 per row |
| `player` | a career profile per `playerIds` id (W-L, titles, Elo, best rank) | $0.003 per row |
| `h2h` | head-to-head for two `playerIds` or one `matchId` | $0.003 per row |
| `pointByPoint` | each `matchIds` match's point-by-point data | $0.002 per row |

`include` adds `odds` (default), `stats`, `pbp`. If statistics or point-by-point data cannot be served (only in the
fallback mode described under "API mode and fallback"), the keys are omitted, rows are `partial: true` and the
status message says `DEGRADED: include=stats/pbp ...`.

#### Row filters

Every mode accepts the same filters and selects exactly the same rows with them.

| input | selects | notes |
|---|---|---|
| `playerIds` (array) | matches with any of these players on either side | `id` from a row's `homePlayers`/`awayPlayers`, 8 letters/digits, max 20 |
| `tournament` (string) | case-insensitive substring of the tournament name | 2-80 characters |
| `surfaces` (array) | `hard`, `clay`, `grass`, `carpet` | omit for all |
| `indoor` (boolean) | `true` indoor only, `false` outdoor only | rows with an unknown venue match neither |
| `categories` (array) | ITF tiers (`M15`, `M25`, `W15`, `W35`, `W50`, `W75`, `W100`) | ATP/WTA/Challenger rows carry their tour level instead (`ATP 500`, `Challenger 75`, ...), which this input does not accept, so they are excluded when set |

#### More example inputs

A full day, every active tour, odds included:

```json
{ "mode": "daily", "date": "2026-11-10", "tours": ["atp", "wta", "challenger", "itf_men", "itf_women"], "include": ["odds"], "maxRows": 1000 }
```

Targeted refresh with statistics and point-by-point:

```json
{ "mode": "match", "matchIds": ["258683"], "include": ["odds", "stats", "pbp"], "maxMatches": 10 }
```

Change-only live polling (pass `nextSince` from the previous run's `OUTPUT` record):

```json
{ "mode": "live", "since": 236082266 }
```

### Tennis API output: one match row (schema 1.0 + `sourceMode`)

```json
{
  "matchId": 712,
  "tour": "atp",
  "tournament": "Vienna Open",
  "tournamentCategory": "ATP 500",
  "tournamentPoints": 500,
  "tournamentCity": "Vienna",
  "tournamentCountry": "Austria",
  "indoor": true,
  "surface": "hard",
  "round": "Quarter-final",
  "bestOf": 3,
  "startTime": "2026-10-20T09:00:00Z",
  "playerHome": "Alex Example",
  "playerAway": "Blair Example",
  "homePlayers": [{"id": "MTQ5CPOR", "name": "Alex Example", "slug": "alex-example", "country": "Austria", "photoUrl": "https://static.flashscore.com/res/image/data/6iVSfhne-vmtNCDo1.png"}],
  "awayPlayers": [{"id": "2JWHPUUb", "name": "Blair Example", "slug": "blair-example", "country": "Australia", "photoUrl": null}],
  "status": "live",
  "statusDetail": "2nd set",
  "isDoubles": false,
  "score": {"setsHome": 1, "setsAway": 0, "sets": [[6,4],[3,2]], "tiebreaks": [null,null],
            "gamePointsHome": "30", "gamePointsAway": "15", "server": "home"},
  "winner": null,
  "retired": false,
  "odds": [{"book":"pinnacle","marketKey":"h2h","period":"ft","line":0,"homePrice":1.62,"awayPrice":2.35,
            "homePriceAmerican":-161,"awayPriceAmerican":135,"limit":5000,
            "cutoffAt":"2026-10-20T08:55:00Z","updatedAt":"2026-10-20T08:59:44Z","isMainLine":true,
            "isClosing":false,"homeOpenPrice":1.70,"awayOpenPrice":2.20,"closingQuality":null}],
  "fairProbNoVig": {"home": 0.61, "away": 0.39},
  "eloProbHome": 0.66,
  "eloProbAway": 0.34,
  "marketCount": 26,
  "sourceUpdatedUtc": "2026-10-20T08:59:44Z",
  "partial": false,
  "schemaVersion": "1.0",
  "sourceMode": "api"
}
```

`stats` and `pbp` (with `statsSource` / `pbpSource`, the source each came from) appear only when requested. Every
timestamp is UTC ISO-8601 ending in `Z`; prices are decimal, with American prices alongside.

#### Closing odds

Every `odds` object has four more fields after `isMainLine`: `isClosing`, `homeOpenPrice`, `awayOpenPrice`,
`closingQuality`. Upcoming and live matches show current quotes (`isClosing: false`, `closingQuality: null`). Past
matches (status neither `scheduled` nor `live`) show their closing rows instead (`include: ["odds"]`):

- `isClosing` is `true`; `homePrice`/`awayPrice` are the closing prices; `cutoffAt` is `null`;
- `updatedAt` is when this closing price was last seen before the match started. A book's closing is its last
  pre-match price before the start. The start is the first in-play quote from any book. For Pinnacle it is its own
  first in-play quote, up to 30 min later, because its feed reaches us up to about 15 min late. A short in-play
  flag followed by an hour of silence while Pinnacle keeps quoting pre-match is treated as a false start, so the
  start is then the first in-play quote after that silence. When we never saw the match in play, it is the listed
  start;
- `closingQuality`: `good` = last seen at most 15 min before the match started (same start as above), `ok` = at
  most 60 min, `stale` = earlier (often the book pulled the market early). When Pinnacle never shows an in-play
  price of its own, quality is counted from the match's first in-play quote from any book;
- `homeOpenPrice`/`awayOpenPrice` are the first prices seen for that book/market/period/line (`null` when not stored);
- `fairProbNoVig` comes from Pinnacle's closing full-time h2h line (`null` without one) and `marketCount` counts
  the closing rows.

Live-era matches (since 20 Oct 2026) have Pinnacle and paf closing lines; older `history` rows carry the BetExplorer
market average (`book: "betexplorer_avg"`, no opening prices, so `fairProbNoVig` stays `null`). A closing line
written after a match finished re-emits the match to `since` pollers.

### Ids

- `matchId` is stable across runs and modes; pass it to `mode: match`.
- **Player ids** (`homePlayers[].id` / `awayPlayers[].id`) are stable participant ids, not match-local ids: they work
  as `playerIds` in every mode.
- In the rarely used fallback mode (`sourceMode: "direct"`) `matchId` is derived from the source's own event id
  instead: stable for the same match and accepted by `mode: match`, but not the same number as the normal `matchId`.

### Requests and charges per run

| run | event | price |
|---|---|---|
| `daily`, `match`, `history` | `match-result` per pushed row | $0.001 ($1 per 1,000 matches) |
| same, with `stats`/`pbp` included | `match-result-stats` per pushed row | $0.002 ($2 per 1,000 matches) |
| `pointByPoint` | `match-result-stats` per pushed row | $0.002 ($2 per 1,000 matches) |
| `rankings` | `ranking-row` per pushed row | $0.0005 ($0.50 per 1,000 ranking rows) |
| `player` | `player-row` per pushed row | $0.003 ($3 per 1,000 profiles) |
| `h2h` | `h2h-row` per pushed row | $0.003 ($3 per 1,000 head-to-heads) |
| `live` (batch run) | **one** `live-snapshot` per run with at least one live match, any row count | $0.003 |
| Standby request (`GET /matches`, `/live`) | `standby-poll` per successful response | $0.001 + platform usage |

Apify also charges its standard `apify-actor-start` event ($0.00005 per run start, one per GB of memory). Nothing else
is billed: no per-dataset-item fee, no platform usage on batch runs. Higher Apify plans (Silver and up) get tier
discounts on every event; the Pricing tab shows them.

Examples:

- A full weekday, all tours (28 Oct 2026, measured: 587 matches): 587 x $0.001 = **$0.587**; in the stats tier
  587 x $0.002 = **$1.174**. A quiet Sunday (1 Nov 2026: 145 matches): 145 x $0.001 = **$0.145**. The default
  `maxRows` is 10 (a $0.01 sample): set it to 1000 or more for a full day, or narrow `tours` to cap the cost. There
  is no per-run free allowance for match rows, but the $5 monthly credit of Apify's free plan covers 5,000 match rows
  ($5 / $0.001).
- Reference modes: a full ATP singles list (500 ranked players) is 500 x $0.0005 = **$0.25**; a top-100 page is
  100 x $0.0005 = **$0.05**. A player profile or a head-to-head is one row each, **$0.003** each.
  A match's point-by-point rides the stats tier: **$0.002** per match.
- One live snapshot of 39 matches (score, Pinnacle odds, fair probability, Elo; measured 10 Nov 2026): **$0.003**
  (per-row billing would be 39 x $0.001 = $0.039).
- Polling that snapshot every 5 min for 12 h: 12 x 60 / 5 = 144 runs x $0.003 = **$0.432**. Hours with no live match
  cost nothing: an empty live snapshot is free.
- The same 144 polls through the Standby URL: 144 x $0.001 = **$0.144**, plus the platform usage of the Standby
  container for the 12 h it stays up (memory x time, billed by Apify at your plan's compute-unit price, e.g.
  0.25 GB x 12 h = 3 CU). Standby is cheaper only when you poll about once a minute or faster (at $0.30-0.40 per
  CU, break-even is a poll every 1.2-1.6 min); `mode: live` batch runs win for slower polling. Live rows refresh
  about once a minute, so polling faster than every 30-60 s mostly returns unchanged data.

Live-mode rules: the snapshot is charged once, **before** its rows are pushed. A run with no live match, or one that
fails before the first row, is free. A partial snapshot (a degraded source, or a page failing after some rows
arrived) is charged and says `PARTIAL` in the status message and `partial: true` in `OUTPUT`. If the run's maximum
cost (`maxTotalChargeUsd`) cannot cover one snapshot, nothing is pushed and the run ends `ok: false` with
`chargeLimitReached: true`.

### Tennis live scores API: Standby

With Standby on, the Actor also answers plain HTTP requests at its Standby URL:

- `GET /` - readiness: `200 {"status":"ready", ...}` when the data API answers, `503` with an `error` object
  otherwise (free);
- `GET /matches?date=&date_to=&tz=&tour=&status=&include=&player=&tournament=&tournament_ref=&surface=&indoor=&category=&since=&limit=`
  - matches for a day or a range;
- `GET /live?tour=&include=&player=&tournament=&tournament_ref=&surface=&indoor=&category=&since=&limit=` - matches
  in play.

Each **successful** request charges one `standby-poll`; failed requests and 503 answers are free. Once the run's
maximum charge is reached, data requests answer **`402`** `{"error":{"code":"charge_limit_reached","message":"..."}}`
(not charged) and the run finishes; start a new run or raise `maxTotalChargeUsd` to serve more. Responses are the API
envelope with `meta.sourceMode: "api"` and `meta.standby` (`chargedEvent`, `charged`, `polls`, `chargeLimitReached`).
Only whitelisted query parameters are forwarded, and `limit` is capped at 1,000 rows per request (or at `maxRows`
when you set it higher). On `/matches`, `date` without `date_to` means that day and every later one; send both for
one day.

Freshness: `/live`, `/matches` with no date, today's date or `since` are served from a 2 s cache. A past or future
`date` with no live match is cached for up to 300 s; poll with `since` to stay on the 2 s cache.

### `OUTPUT` record

Every run writes a JSON summary to the key-value store under `OUTPUT` (this one is from a real run on 10 Nov 2026):

```json
{"ok": true, "actor": "tennis-feed", "mode": "api", "reason": "source: SDF API (ok)",
 "partial": false, "nextSince": 236082266,
 "rowsAvailable": 392, "rowsPushed": 392, "freeRows": 0, "chargeLimitReached": false,
 "chargedEvents": {"match-result": 392}, "requests": {}, "sources": {}, "skipped": {},
 "counts": {}, "degraded": [], "notes": [], "schemaVersion": "1.0",
 "generatedAt": "2026-11-10T20:53:29.901640Z"}
```

`partial` is true when a row-feeding source is degraded or the data API reports a partial answer; `nextSince` is the
highest revision served, so the next `since` poll continues exactly where this run stopped.

`ok: false` + `reason` is the loud failure path (invalid input, `history` without `date`, a source that could not be
read at all). The run still exits successfully so the platform keeps the dataset and the message, and nothing is
charged.

### Pricing: tennis API cost per 1,000 rows

$1 per 1,000 match rows, $2 per 1,000 stats-tier rows (incl. `pointByPoint`), $0.50 per 1,000 ranking rows,
$3 per 1,000 player or head-to-head rows, $0.003 per live snapshot, $1 per 1,000 Standby requests (plus Apify's $0.00005
`apify-actor-start` per run). Default input: an empty input is a 10-row `daily` sample of today's matches, so it
costs 10 x $0.001 = $0.01 plus the $0.00005 start. A `live` snapshot and `mode: match` are not cut by that sample
default (a live snapshot returns up to 1,000 rows for its one $0.003 charge; `match` returns every id up to
`maxMatches`). Your maximum charge per run (`maxTotalChargeUsd`) is enforced by the Apify SDK: batch runs stop
pushing and exit cleanly when it is reached; Standby runs refuse further data requests with HTTP 402 and finish.

### API mode and fallback

On Apify the Actor reads our own collector's data API (`sourceMode: "api"`): stable ids, closing lines, history,
statistics and change-only polling. If that API is unreachable, `daily`, `live` and `match` runs fall back to reading
the public sources directly (`sourceMode: "direct"`: Flashscore + Pinnacle, dates within +/-7 days of today, no
stored closing lines, `stats`/`pbp` only in `mode: match`); `history` and `since` then report `ok: false` or
`degraded` instead of guessing. Run inputs never carry credentials (an old `apiUrl`/`apiKey` input is ignored).

### Limits and honesty

- `tournament`, `playerIds`, `surfaces`, `indoor` and `categories` narrow a date range: they cannot walk the archive
  without `date`/`dateTo`.
- Pinnacle events are joined to matches with a fuzzy name matcher plus a 12 h time window and a confidence margin,
  never plain name equality; unmatched events are counted in `OUTPUT.counts`, never attached to a different match.
- A few `live` rows can lag behind: each row's `sourceUpdatedUtc` says when it was last refreshed (27 of 39 live rows
  on 10 Nov 2026 had been refreshed within the last minute).

### FAQ

**Is this tennis scraper official? Is it legal to use?**
It is unofficial and not affiliated with the ATP, WTA, ITF, Flashscore or Pinnacle. It reads publicly available
data politely (rate limits, a circuit breaker and a daily request budget) and does not log in anywhere. You are
responsible for how you use the data, so check the rules that apply to your use case and country.

**How fresh is the data?**
Live rows refresh about once a minute (measured data age 61-64 s on 2 Nov 2026), and every row carries
`sourceUpdatedUtc`. Live requests are served from a 2-second cache; a past or future date with no live match can be
cached for up to 5 minutes. Use `since` to poll only the matches that changed.

**How much does the tennis API cost?**
$1 per 1,000 match rows, $2 per 1,000 rows with statistics or point-by-point data, $0.50 per 1,000 ranking rows,
$3 per 1,000 player or head-to-head rows, $0.003 per live snapshot (any number of live matches) and $1 per 1,000 Standby requests
plus Standby platform usage. The default 10-row sample costs $0.01. A run that returns nothing costs nothing beyond
Apify's $0.00005 start event.

**Can I use it from Python, Node.js or no-code tools?**
Yes. Call it through the Apify API or the official `apify-client` packages for Python and JavaScript (example above),
poll the Standby URL as a plain HTTP API, or connect it to Zapier, Make, n8n or webhooks through Apify's
integrations. AI agents can find and call it through the Apify MCP server.

**How far back does the tennis history go?**
To January 2009 with `mode: history` (a live run for 5 Jan 2009 returned ATP and WTA matches). ITF Men and ITF Women
are covered from October 2026. Closing odds for finished matches: Pinnacle and paf since 20 Oct 2026, the BetExplorer
market average for older matches. Archive matches can carry statistics and point-by-point data too (a live run for
ATP on 13 Jul 2025 returned both).

**Which bookmakers are in the odds?**
Pinnacle, the sharp book, inside the match row whenever Pinnacle prices the match. For Pinnacle plus the Kambi book
paf and the Polymarket and Kalshi prediction markets on six sports, with edge vs Pinnacle and closing lines, use the
odds Actor below.

### More from AxeForce

- [Pinnacle Odds API: Sports Betting Odds Scraper + Closing Lines](https://apify.com/axeforce00/odds-feed):
  Pinnacle, Kambi (paf), Polymarket and Kalshi odds for soccer, tennis, basketball, baseball, ice hockey and American
  football as one row per outcome, with no-vig fair odds, edge vs Pinnacle, closing lines and line movement. The
  first 100 odds rows of every run are free.
- Apify docs: [run an Actor through the API](https://docs.apify.com/api/v2),
  [integrations](https://docs.apify.com/platform/integrations), [Apify MCP server](https://docs.apify.com/mcp).

# Actor input Schema

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

Which data to return. daily (default): matches on date..dateTo, $0.001/row ($0.002 with stats/pbp). live: in play now, ONE flat $0.003/run. history: past matches back to 2009. match: refresh matchIds. rankings: an ATP/WTA list, $0.0005/row. player: profile per playerIds, $0.003. h2h: two playerIds or one matchId, $0.003. pointByPoint: per matchId, $0.002. Poll faster than once a minute via the Standby URL ($0.001/request).

## `date` (type: `string`):

First day, UTC, YYYY-MM-DD (e.g. 2026-11-10). Default: today for daily and live. Required for history (e.g. 2025-07-13). Not used by mode=match, player, h2h or pointByPoint. In mode=rankings it is the ranking date; leave it empty (or "latest") for the current list. Days back to January 2009 come from the archive.

## `dateTo` (type: `string`):

Last day, inclusive, UTC, YYYY-MM-DD. Default: the same day as date. Use it with daily or history for a range, e.g. a tournament week. Cost grows with the number of matches: roughly 150-600 per day across all tours.

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

Required for mode=match and mode=pointByPoint (and one id is an option for mode=h2h), ignored by the other modes: matchId values from earlier rows, as strings (e.g. "203038293551040"). mode=match: each id returns the match's latest score, odds and, with include stats/pbp, statistics. mode=pointByPoint: each id returns the match row with its point-by-point data. mode=h2h: one id returns its head-to-head ($0.003). Otherwise $0.001 per id ($0.002 with stats/pbp); at most maxMatches ids per run.

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

Tours to include. Valid values: atp, wta, challenger, wta125 (the WTA 125 series), itf_men, itf_women, other (Davis Cup, BJK Cup, UTR, juniors, exhibitions). Default: atp, wta, challenger, wta125, itf_men, itf_women. Fewer tours means fewer rows and a lower cost. ITF Men and ITF Women are covered from October 2026, WTA 125 from November 2026.

## `include` (type: `array`):

Extra data in each match row. odds (default): the Pinnacle markets of the match (up to about 40) plus the no-vig fair probability; finished matches carry closing odds. stats: match statistics. pbp: point-by-point. Adding stats or pbp makes every row $0.002 instead of $0.001. An empty list returns rows without odds. If stats/pbp cannot be served, the status message says so and rows carry partial=true.

## `playerIds` (type: `array`):

In daily/live/match/history: only matches with at least one of these players. In mode=player: one career profile per id. In mode=h2h: exactly two ids (head-to-head of those two players). Use the 8-character player id from homePlayers\[].id or awayPlayers\[].id of an earlier row (names are not accepted), e.g. MTQ5CPOR. At most 20. Default: no player filter.

## `list` (type: `string`):

mode=rankings only (required there): which official ranking list to return. atp_singles / atp_doubles come from atptour, wta_singles / wta_doubles from wtatennis. $0.0005 per ranking row.

## `tournament` (type: `string`):

Only tournaments whose name contains this text, case-insensitive, 2-80 characters, e.g. Almaty or Santa Margherita. Default: all tournaments.

## `surfaces` (type: `array`):

Only these court surfaces. Valid values: hard, clay, grass, carpet. Default (empty): all surfaces.

## `indoor` (type: `boolean`):

true: indoor courts only. false: outdoor courts only. Default (unset): both. When set, matches whose venue is unknown are left out.

## `categories` (type: `array`):

Only these ITF tiers, e.g. M15, M25, W15, W35, W50, W75, W100. ATP, WTA and Challenger matches have no ITF tier, so they are left out when this filter is set. Default (empty): no tier filter.

## `since` (type: `integer`):

Change-only polling: return only matches changed after this revision number. Pass nextSince from the previous run's OUTPUT record. Default (unset): all matches. Needs API mode, the normal mode on Apify.

## `maxRows` (type: `integer`):

Maximum match rows per run, so it caps the cost of daily and history runs: rows x $0.001 ($0.002 with stats/pbp). Default 10, a $0.01 sample; set 1000 for a full day (roughly 150-600 matches). It does not shrink flat-priced requests: a live snapshot and a Standby request return up to 1,000 rows (more if maxRows is higher), and mode=match returns every id up to maxMatches.

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

mode=match only: the most matchIds refreshed in one run. 1-200, default 25.

## Actor input object example

```json
{
  "mode": "daily",
  "tours": [
    "atp",
    "wta",
    "challenger",
    "wta125",
    "itf_men",
    "itf_women"
  ],
  "include": [
    "odds"
  ],
  "maxRows": 10,
  "maxMatches": 25
}
```

# Actor output Schema

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

Dataset items: one row per tennis match (fixtures, results, live scores, statistics and Pinnacle odds), or per ranking entry, player profile, head-to-head or tournament draw in the reference modes.

## `runSummary` (type: `string`):

JSON run summary: ok/reason, rows pushed, charged events, source health, partial flag and nextSince.

# 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": "daily",
    "tours": [
        "atp",
        "wta",
        "challenger",
        "wta125",
        "itf_men",
        "itf_women"
    ],
    "maxRows": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("axeforce00/tennis-feed").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": "daily",
    "tours": [
        "atp",
        "wta",
        "challenger",
        "wta125",
        "itf_men",
        "itf_women",
    ],
    "maxRows": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("axeforce00/tennis-feed").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": "daily",
  "tours": [
    "atp",
    "wta",
    "challenger",
    "wta125",
    "itf_men",
    "itf_women"
  ],
  "maxRows": 10
}' |
apify call axeforce00/tennis-feed --silent --output-dataset

```

## MCP server setup

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

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/hWEdgo7ifQlfMzm2m/builds/UNz6pTSZGvSetZC5J/openapi.json
