# Tennis Results & Odds Scraper (ATP, WTA, Challenger, ITF) (`chain_link/tennisexplorer-results-scraper`) Actor

Extract completed tennis match results from TennisExplorer for any date range: tournament, players, final score, set-by-set games, and closing odds. Covers ATP, WTA, Challenger and ITF singles and doubles.

- **URL**: https://apify.com/chain_link/tennisexplorer-results-scraper.md
- **Developed by:** [James White](https://apify.com/chain_link) (community)
- **Categories:** Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 1,000 match result scrapeds

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 Results & Odds Scraper (ATP, WTA, Challenger, ITF)

Pull every completed tennis match from **TennisExplorer** for any date or date range - one clean row per match with the tournament, both players, sets won, set-by-set games and the odds shown next to the result.

It covers everything TennisExplorer lists in its results pages: ATP and WTA tour events, Challengers, ITF/Futures and other pro events, in singles and doubles.

### What you can use it for

- Building historical datasets for betting models and backtesting
- Checking closing-odds value against actual results
- Player and tournament form analysis
- Feeding dashboards, spreadsheets or databases with daily results

### Price

**$0.002 per match result** saved to the dataset (that is $2 per 1,000 matches). You only pay for rows you receive, and the run never saves more than your **Max results** setting.

### Input

| Field | What it means |
|---|---|
| **Start date** (`startDate`, required) | First day to collect, in YYYY-MM-DD format. |
| **End date** (`endDate`) | Last day to collect (included). Leave empty to collect only the start date. |
| **Match types** (`matchTypes`) | Which result lists to read: `atp-single`, `wta-single`, `atp-double`, `wta-double`. Leave empty to read all four. The ATP lists include men's Challenger and Futures events; the WTA lists include women's ITF events. |
| **Include odds** (`includeOdds`) | When on, the two odds shown next to each result are added (`odds1`, `odds2`). When off, those fields are left empty. |
| **Max results** (`maxItems`) | The run stops once this many matches are saved. The input form suggests 1000; if the field is removed from the input entirely, 50 is used. |

#### Example input

```json
{
  "startDate": "2024-06-10",
  "endDate": "2024-06-16",
  "matchTypes": ["atp-single", "wta-single"],
  "includeOdds": true,
  "maxItems": 1000
}
```

### Output

Each match is one row with these fields:

| Field | Description |
|---|---|
| `date` | Day the match is listed under (YYYY-MM-DD, as shown by TennisExplorer, which uses Central European time). |
| `matchType` | The list it came from, e.g. `atp-single`. |
| `tournament` | Tournament name as listed (e.g. Stuttgart, Perugia challenger, Futures 2024). |
| `tournamentUrl` | Link to the tournament page (empty for groupings without their own page, such as Futures). |
| `player1` | Player or team listed first - normally the winner. |
| `player2` | Player or team listed second. Seed numbers are removed from names. |
| `setsWon1`, `setsWon2` | Sets won by each side. |
| `setScores` | Games per set, e.g. `6-4`. Tie-breaks are written like `7-6(3)`, where the number is the tie-break points of the player who lost that set. |
| `status` | `completed`, `retired` (the match ended early, e.g. retirement), `walkover`, or `unknown` when a result is listed without games. |
| `odds1`, `odds2` | Decimal odds shown on the results page for player1 and player2 (empty when the site shows none). |
| `matchUrl` | Link to the match detail page. |
| `scrapedAt` | When the row was collected (UTC, ISO format). |

#### Example row

```json
{
  "date": "2024-06-10",
  "matchType": "atp-single",
  "tournament": "Stuttgart",
  "tournamentUrl": "https://www.tennisexplorer.com/stuttgart/2024/atp-men/",
  "player1": "Medjedovic H.",
  "player2": "Marozsan F.",
  "setsWon1": 2,
  "setsWon2": 1,
  "setScores": ["6-7(3)", "6-1", "6-4"],
  "status": "completed",
  "odds1": 1.61,
  "odds2": 2.29,
  "matchUrl": "https://www.tennisexplorer.com/match-detail/?id=2635227",
  "scrapedAt": "2025-01-15T09:30:12.345678+00:00"
}
```

You can download the dataset as JSON, CSV, Excel or connect it to other tools through the Apify platform.

### How it works

The tool reads TennisExplorer's public daily results pages - one page per day per match type - with a short pause between requests. No browser is needed, so runs are quick: roughly one to two seconds per day and match type.

### Limits and notes

- Only matches that appear on TennisExplorer's results pages are returned; rows with no score at all are skipped.
- Player names are shown the way the site shows them (surname plus initial).
- `status` is worked out from the score: a match that ended before a full final set is marked `retired`. In rare cases (for example a best-of-five match abandoned right at the start of a set) this can be imperfect.
- Odds are the two numbers TennisExplorer displays next to the result; they are not always available, especially for lower-level events.
- Dates in the future return nothing, and today's date may be incomplete.
- If TennisExplorer refuses access or rate-limits the requests, the run stops and says so in the log instead of retrying endlessly. Already-saved rows are kept.

### Terms

This tool collects publicly displayed sports results and odds. You are responsible for how you use the data and for respecting TennisExplorer's terms of use. Do not republish the site's editorial content. This tool is not affiliated with or endorsed by TennisExplorer.

# Actor input Schema

## `startDate` (type: `string`):

First day to collect results for, in YYYY-MM-DD format.

## `endDate` (type: `string`):

Last day (inclusive) to collect results for, in YYYY-MM-DD format. Defaults to the start date.

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

TennisExplorer result categories to include, e.g. atp-single, wta-single, atp-double, wta-double. Leave empty for all categories.

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

Extract the home/away odds shown next to each result when available.

## `maxItems` (type: `integer`):

Maximum number of match results to output.

## Actor input object example

```json
{
  "startDate": "2024-06-10",
  "endDate": "",
  "matchTypes": [
    "atp-single",
    "wta-single"
  ],
  "includeOdds": true,
  "maxItems": 1000
}
```

# Actor output Schema

## `results` (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 = {
    "startDate": "2024-06-10",
    "endDate": "",
    "matchTypes": [
        "atp-single",
        "wta-single"
    ],
    "includeOdds": true,
    "maxItems": 1000
};

// Run the Actor and wait for it to finish
const run = await client.actor("chain_link/tennisexplorer-results-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 = {
    "startDate": "2024-06-10",
    "endDate": "",
    "matchTypes": [
        "atp-single",
        "wta-single",
    ],
    "includeOdds": True,
    "maxItems": 1000,
}

# Run the Actor and wait for it to finish
run = client.actor("chain_link/tennisexplorer-results-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 '{
  "startDate": "2024-06-10",
  "endDate": "",
  "matchTypes": [
    "atp-single",
    "wta-single"
  ],
  "includeOdds": true,
  "maxItems": 1000
}' |
apify call chain_link/tennisexplorer-results-scraper --silent --output-dataset

```

## MCP server setup

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