# Tennis Explorer Players Scraper (`dadhalfdev/tennisexplorer-players-scraper`) Actor

Scrape tennis player rankings from tennisexplorer.com. Filter by tour, year, and country, or paste a Tennis Explorer URL.

- **URL**: https://apify.com/dadhalfdev/tennisexplorer-players-scraper.md
- **Developed by:** [Marco Rodrigues](https://apify.com/dadhalfdev) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 results

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 Explorer Players Scraper

Want [Tennis Explorer Players](https://www.tennisexplorer.com/ranking/atp-men/) player rankings in a spreadsheet? This scraper makes it easy.

Use **structured filters** — better for AI agents — **or** paste an **`input_url`**, **`start_urls`**, or player pages. A URL overrides the filters. If you set more than one URL list, all of them are scraped.

Tennis Explorer ranks ATP and WTA players with country, points and the ranking date. This actor returns up to 2000 rows per run.

### 💡 Perfect for...

- **Fans:** Export the ATP or WTA ranking, including an older snapshot.
- **Media:** Track points, movement and the date of the list.
- **Data analysts:** Slice rankings by country, season, or a single player page.
- **🤖 AI Agents:** Power Claude, Cursor, Codex, the Hermes Agent, and OpenClaw workflows with live results.

### ✨ Why you'll love this scraper

- 🔗 **Input URL or Filters:** Paste a ranking or player page, or type the same filters as the site. URLs override the filters.
- 🎯 **Website-Matched Filters:** Tour, ranking, year, ranking date, country, sort and keyword.
- 🌐 **Listing rows:** Rank, previous rank, rank change, points, season and snapshot date. Player pages add height, balance, titles and injuries.

### 📦 What's inside the data?

Ranking rows: `id`, `url`, `name`, `rank`, `previous_rank`, `rank_change`, `country`, `points`, `tour`, `season`, `snapshot_date`

Player pages also include `height_cm`, `weight_kg`, `age`, `birthdate`, `plays`, `rank_singles`, `rank_singles_highest`, `rank_doubles`, `rank_doubles_highest`, `career_balance`, `season_balance`, `titles`, `injuries` and `recent_tournaments` when the page shows them.

### 🚀 Quick start

**Option A:** paste `https://www.tennisexplorer.com/ranking/atp-men/`.
**Option B:** set tour to ATP men, then set `max_results`.

**Input Example (filters):**

```
{
  "tour": "ATP men",
  "max_results": 100
}
```

**Input Example (URL):**

```
{
  "input_url": "https://www.tennisexplorer.com/player/sinner-8b8e8/",
  "max_results": 1
}
```

**Output Example:**

```
{
  "id": "sinner-8b8e8",
  "url": "https://www.tennisexplorer.com/player/sinner-8b8e8/",
  "name": "Sinner Jannik",
  "rank": 1,
  "previous_rank": null,
  "rank_change": null,
  "country": "Italy",
  "points": 10450,
  "tour": "ATP men",
  "season": "2026",
  "snapshot_date": "2026-10-26"
}
```

**Output fields:**

| Field | Description |
|-------|-------------|
| `id` | Player id. |
| `url` | Public player page. |
| `name` | Player name. |
| `rank` | Ranking place. |
| `previous_rank` | Place before the latest move, when the list shows a move. |
| `rank_change` | Places gained since the previous rank. Positive means the player moved up. |
| `country` | Country. |
| `points` | Ranking points. |
| `tour` | ATP men or WTA women. |
| `season` | Season year shown on the ranking. |
| `snapshot_date` | Date of this ranking list. |
| `height_cm` | Height in centimeters, from a player page. |
| `weight_kg` | Weight in kilograms, from a player page. |
| `age` | Age, from a player page. |
| `birthdate` | Birth date, from a player page. |
| `plays` | Playing hand, from a player page. |
| `rank_singles` | Current singles rank, from a player page. |
| `rank_singles_highest` | Best singles rank, from a player page. |
| `rank_doubles` | Current doubles rank, from a player page. |
| `rank_doubles_highest` | Best doubles rank, from a player page. |
| `career_balance` | Career singles wins and losses, from a player page. |
| `season_balance` | This season's singles wins and losses, from a player page. |
| `titles` | Titles listed on the player page. |
| `injuries` | Retirements and walkovers listed on the player page. |
| `recent_tournaments` | Tournaments from this season's played matches. |

### 📋 Input reference

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `input_url` | string | No | — | Ranking page or player page. Overrides the filters. |
| `start_urls` | array | No | — | Ranking or player pages. Overrides the filters. Combined with the other URL fields. |
| `player_urls` | array | No | — | Player pages. Each one returns profile fields. |
| `player_slugs` | array | No | — | Player ids such as `sinner-8b8e8`. Each one returns profile fields. |
| `tour` | string | No | ATP men | ATP men or WTA women. |
| `ranking` | string | No | Singles | Singles, Doubles, or Race. |
| `year` | string | No | — | Season year, such as 2025. Empty uses the current ranking. |
| `ranking_date` | string | No | — | Snapshot date as YYYY-MM-DD. Selects that ranking list. |
| `country` | string | No | — | Country name, such as Italy. |
| `sort` | string | No | — | Rank, Name, Country, or Points. |
| `query` | string | No | — | Words matched against the name and country. |
| `include_profiles` | boolean | No | `false` | Open player pages for the ranking rows you return. |
| `max_results` | integer | No | `50` | How many rows to return (1–2000). |

### 🔧 Custom scrapers and agents

If you need a custom web scraper, or custom AI agents and workflows, contact me through [tuik.ai](https://www.tuik.ai). We help businesses cut costs and time by up to 10x.

# Actor input Schema

## `input_url` (type: `string`):

Paste a Tennis Explorer ranking page or player page. Overrides the filters when set. If start URLs or player URLs are set too, all of them are scraped.

## `start_urls` (type: `array`):

Tennis Explorer ranking or player pages. Overrides the filters. Combined with the other URL fields when more than one is set.

## `player_urls` (type: `array`):

Tennis Explorer player pages. Each page returns the profile fields shown on that page.

## `player_slugs` (type: `array`):

Player ids from Tennis Explorer player URLs, such as sinner-8b8e8. Each one returns that player's profile.

## `tour` (type: `string`):

ATP men or WTA women.

## `ranking` (type: `string`):

Singles, Doubles, or Race.

## `year` (type: `string`):

Season year, such as 2025. Leave empty for the current ranking.

## `ranking_date` (type: `string`):

Historical ranking snapshot as YYYY-MM-DD. When set, that date is used instead of the latest list.

## `country` (type: `string`):

Country name as shown on the ranking, such as Italy or Spain.

## `sort` (type: `string`):

Rank, Name, Country, or Points.

## `query` (type: `string`):

Words from the player name or country. A name such as Sinner returns Jannik Sinner.

## `include_profiles` (type: `boolean`):

Open each ranking player's page and add height, rank history, balance, titles, and injuries. Leave off for a fast ranking list. Player URLs always include the profile.

## `max_results` (type: `integer`):

How many rows to return (1-2000).

## Actor input object example

```json
{
  "tour": "ATP men",
  "ranking": "Singles",
  "include_profiles": false,
  "max_results": 50
}
```

# Actor output Schema

## `overview` (type: `string`):

Table view of scraped players.

## `results` (type: `string`):

All scraped players from the default dataset.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("dadhalfdev/tennisexplorer-players-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("dadhalfdev/tennisexplorer-players-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 '{}' |
apify call dadhalfdev/tennisexplorer-players-scraper --silent --output-dataset

```

## MCP server setup

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