# TennisExplorer Scraper: Tennis Odds, Results, H2H & Line Moves (`roomy_tweet/tennisexplorer-scraper`) Actor

Tennis match data for betting models: ATP, WTA, Challenger and ITF schedules and results with average odds, plus bookmaker odds with opening prices and line movement, head-to-head, player cards and player match histories from TennisExplorer. Odds-movement alerts for scheduled runs.

- **URL**: https://apify.com/roomy_tweet/tennisexplorer-scraper.md
- **Developed by:** [roomy_tweet](https://apify.com/roomy_tweet) (community)
- **Categories:** Sports, Automation, 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 $0.80 / 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

## TennisExplorer Scraper: Tennis Odds, Results, H2H & Line Moves

Get **tennis match data for betting models and analytics**, from TennisExplorer:

- **Schedules and results** for ATP, WTA, Challenger, ITF and UTR events, any day, past or future, with **average odds**.
- **Bookmaker odds** for each match (about 15 books), with **opening odds** and the full **line-movement history**.
- **Head-to-head** record and past meetings.
- **Player cards**: ranking, age, height, weight and playing hand.
- **Player match histories** with odds, season by season.
- **Odds-movement alerts** for scheduled runs.

No account, no API key, no browser.

### What you can do with it

- **Build a betting model**: pull every finished match of a season with scores and closing average odds, then add bookmaker odds and opening prices for the matches you care about.
- **Track line movement**: see where each bookmaker opened and every price change with its time (`includeOddsHistory`).
- **Daily slate**: get today's and tomorrow's matches with odds, filtered to the levels and tournaments you bet on.
- **Odds alerts**: schedule a run every 30 minutes with an alert threshold, and get only the matches whose odds moved, by email, Slack or webhook.
- **Player research**: a player's season with surface, round, opponent, score and the odds on both sides.
- **Head-to-head**: the record and the list of past meetings with surface, round and score.

### Input examples

**Today and tomorrow, main tour and Challengers, with bookmaker odds:**

```json
{
  "dates": ["today", "tomorrow"],
  "tours": ["atp-single", "wta-single"],
  "levels": ["Tour", "Challenger"],
  "includeMatchDetails": true
}
```

**A whole month of ATP results with closing average odds (for backtests):**

```json
{ "dateFrom": "2026-10-01", "dateTo": "2026-10-31", "tours": ["atp-single"], "status": "finished", "onlyWithOdds": true, "maxMatches": 0 }
```

**Odds-movement alerts, for a run scheduled every 30 minutes:**

```json
{ "dates": ["today", "tomorrow"], "status": "upcoming", "levels": ["Tour"], "alertOddsMovePercent": 8, "onlyAlerts": true }
```

**Player seasons:**

```json
{ "players": ["Carlos Alcaraz", "Jannik Sinner"], "playerYears": ["2025", "2026"] }
```

**Specific matches with every market and the odds history:**

```json
{ "matchUrls": ["https://www.tennisexplorer.com/match-detail/?id=3371579"], "oddsMarkets": ["homeAway", "overUnder", "asianHandicap", "correctScore"], "includeOddsHistory": true }
```

### Output

Everything goes to one dataset. The `recordType` column tells rows apart: `match`, `player` and `player-match`. The dataset has ready views: Matches, Odds and details, Odds alerts, Players and Player matches.

**Finished match (day page):**

```json
{
  "recordType": "match",
  "matchId": "2844093",
  "url": "https://www.tennisexplorer.com/match-detail/?id=2844093",
  "type": "atp-single",
  "date": "2025-03-15",
  "time": "23:45",
  "startTime": "2025-03-15T22:45:00.000Z",
  "tournament": "Indian Wells",
  "tournamentCountry": "US",
  "level": "Tour",
  "status": "finished",
  "player1": "Draper J.", "player1Seed": "13",
  "player2": "Alcaraz C.", "player2Seed": "2",
  "setsWon1": 2, "setsWon2": 1,
  "winner": 1, "winnerName": "Draper J.",
  "score": "6-1 0-6 6-4",
  "incompleteScore": false,
  "avgOdds1": 3.47, "avgOdds2": 1.31
}
```

**Fields added by match details** (example: Alcaraz vs Ruud, Paris 2026 semifinal):

```json
{
  "round": "semifinal", "surface": "indoors",
  "player1FullName": "Alcaraz Carlos", "player1Ranking": 3, "player1BirthDate": "2003-05-05", "player1HeightCm": 185, "player1Plays": "right",
  "player2FullName": "Ruud Casper", "player2Ranking": 18,
  "h2hWins1": 7, "h2hWins2": 3,
  "h2hMatches": [{ "year": 2026, "tournament": "Paris", "surface": "Indoors", "round": "SF", "winner": "Alcaraz", "score": "6-4 6-4", "matchId": "3371579" }],
  "bookmakers": 15,
  "bestOdds1": 1.21, "bestOdds2": 5.56,
  "meanOdds1": 1.185, "meanOdds2": 4.804,
  "meanOpening1": 1.185, "meanOpening2": 4.692,
  "odds": {
    "homeAway": [
      { "bookmaker": "1xBet", "odds1": 1.2, "odds2": 4.82, "opening1": 1.19, "opening2": 4.92, "openedAt": "2026-11-07T00:20:00.000Z", "moved": true }
    ]
  }
}
```

With `includeOddsHistory`, each bookmaker row also has `history1` and `history2`: every price with its time, newest first, ending with the opening price.

**Player match:**

```json
{ "recordType": "player-match", "player": "Alcaraz Carlos", "date": "2025-11-16", "tournament": "Masters Cup ATP", "surface": "indoors", "round": "final", "opponent": "Sinner J.", "result": "L", "score": "7-6(4) 7-5", "playerOdds": 2.59, "opponentOdds": 1.51 }
```

**Statuses:**

| Status | Meaning |
|---|---|
| `upcoming` | Not started yet. |
| `live` | Today, score not complete. |
| `finished` | Final score. `incompleteScore: true` means the last set did not finish, usually a retirement. |
| `notPlayed` | A past match with no score: walkover, cancellation or postponement. |

**Times:** TennisExplorer shows Berlin time. `time` is as shown; `startTime` is UTC. Some matches have no time yet ("follows").

**Run report:** the `REPORT` record in the run's key-value store has every day page with its status and match count, the filters, what was skipped and why, the alerts and a quality check.

### Pricing

Pay per event:

| Event | When |
|---|---|
| match | Each match row saved. |
| match details | Added when the match page was read: bookmaker odds, player cards, head-to-head. |
| player | Each player profile. |
| player match | Each match in a player's season. |

Matches dropped by your filters, by **Only results not saved before** or by **Save only matches with an alert** are not charged. See the Pricing tab for current prices. The run stops cleanly at your maximum cost per run.

### FAQ

**Which matches are included?** Everything TennisExplorer lists for the day and draw: ATP and WTA events (WTA 125 included), ATP Challengers, ITF futures and UTR Pro Tennis Series. The level comes from the tournament name: Challenger, ITF, UTR, or Tour for everything else. Use **Levels** and **Tournaments** to narrow it down.

**What are the average odds?** TennisExplorer's average of the bookmakers it follows, shown on the day page. For past matches they are the closing average. Turn on match details for each bookmaker's own prices and opening odds.

**How far back can I go?** Day pages go back many years. Ranges are limited to 400 days per run; split longer periods into several runs.

**Are serve statistics included?** No. TennisExplorer does not publish point-by-point or serve statistics.

**How do odds alerts work?** The Actor remembers each upcoming match's average odds in a named key-value store. On the next run, a match whose odds moved by your threshold or more gets `alert: true` and an `alerts` text such as "Svrcina D. odds 1.52 → 1.38 (-9.21%)".

**Is scraping TennisExplorer allowed?** The Actor reads public pages that any visitor sees, slowly and without logging in, and the site's robots.txt does not block them. Check the site's terms and your local laws for your use case, especially before redistributing the data.

### Changelog

- **0.1**: first version. Day schedules and results, match details with bookmaker odds, opening odds and history, head-to-head, player cards and seasons, odds alerts.

# Actor input Schema

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

Days to read, one per line: 2026-11-07, today, tomorrow, yesterday, +3 or -2 (Berlin calendar, as on TennisExplorer). Past days give results with closing average odds; coming days give the schedule with current odds. Leave empty for today and tomorrow.

## `dateFrom` (type: `string`):

Optional range start (YYYY-MM-DD, or today, -30…). Adds every day up to "To day" (at most 400 days).

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

Optional range end (YYYY-MM-DD, or today, +7…).

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

Which draws to read.

## `levels` (type: `array`):

Leave empty for all. Read from the tournament name: Challenger = ATP Challengers; ITF = futures; UTR = UTR Pro Tennis Series; Tour = everything else (ATP and WTA events, including WTA 125).

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

Optional: keep only tournaments whose name contains one of these words (Paris, Australian Open, Taipei).

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

Upcoming = not started yet. Finished = with a final score.

## `onlyWithOdds` (type: `boolean`):

Skip matches that have no average odds on TennisExplorer (mostly small ITF matches).

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

Cap on match rows per run, earliest first. 0 = no cap. Busy days have 150–500 matches across both tours.

## `includeMatchDetails` (type: `boolean`):

One extra page per match.

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

Which bookmaker markets to keep (match details only).

## `includeOddsHistory` (type: `boolean`):

Every price change of every bookmaker, with its time, back to the opening odds. Large rows; best with few matches.

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

Names (Carlos Alcaraz), TennisExplorer player links or slugs (alcaraz-5ab70).

## `playerYears` (type: `array`):

Years of match history to read for each player (2026, 2025…). Defaults to this year.

## `playerMatchType` (type: `string`):

Which of the player's matches to list.

## `matchUrls` (type: `array`):

TennisExplorer match links (…/match-detail/?id=3371579) or ids. Always read with full details.

## `onlyNewResults` (type: `boolean`):

Finished matches saved by earlier runs are skipped and not charged.

## `trackOdds` (type: `boolean`):

Adds previousOdds1/2 and oddsChange1/2Percent to upcoming matches. Turned on by the alert below.

## `alertOddsMovePercent` (type: `number`):

For example 8: an upcoming match gets an alert when either player's average odds moved 8% or more since the last run.

## `onlyAlerts` (type: `boolean`):

Matches without an odds alert are not saved and not charged. Pair with an email, Slack or webhook integration.

## `stateStoreName` (type: `string`):

Named key-value store that keeps saved results and last odds. Use different names for different watchlists.

## `resetState` (type: `boolean`):

Starts from scratch for this memory name.

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

Pages read at the same time. Keep it low to be gentle with the site.

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

Optional. By default the Actor connects directly and switches to Apify Proxy by itself if the site refuses the connection.

## `failOnQualityDrop` (type: `boolean`):

Mark the run as failed when pages stop parsing, so a schedule alerts you.

## `debugSamples` (type: `boolean`):

For troubleshooting: keeps the first raw HTML of each page type in the run's key-value store.

## Actor input object example

```json
{
  "dates": [
    "today",
    "tomorrow"
  ],
  "tours": [
    "atp-single",
    "wta-single"
  ],
  "status": "all",
  "onlyWithOdds": false,
  "maxMatches": 1000,
  "includeMatchDetails": false,
  "oddsMarkets": [
    "homeAway"
  ],
  "includeOddsHistory": false,
  "playerMatchType": "singles",
  "onlyNewResults": false,
  "trackOdds": false,
  "onlyAlerts": false,
  "stateStoreName": "tennis-monitor",
  "resetState": false,
  "maxConcurrency": 3,
  "failOnQualityDrop": false,
  "debugSamples": false
}
```

# Actor output Schema

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

One row per match.

## `allRows` (type: `string`):

Matches, players and player matches (see recordType).

## `report` (type: `string`):

Per-day status, filters, alerts and quality checks.

# 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",
        "tomorrow"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("roomy_tweet/tennisexplorer-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 = { "dates": [
        "today",
        "tomorrow",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("roomy_tweet/tennisexplorer-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 '{
  "dates": [
    "today",
    "tomorrow"
  ]
}' |
apify call roomy_tweet/tennisexplorer-scraper --silent --output-dataset

```

## MCP server setup

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