# WTA Rankings Scraper — Current & Historical Tennis Rankings (`hipersoft/wta-rankings-scraper`) Actor

Scrape official WTA tennis rankings: singles and doubles, current or any past week. Rank, points, movement, tournaments played, player name, country, birth date and age. Filter by country, top-N. Export CSV, JSON or Excel.

- **URL**: https://apify.com/hipersoft/wta-rankings-scraper.md
- **Developed by:** [hiper soft](https://apify.com/hipersoft) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.0015 / ranking row

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

## WTA Rankings Scraper: Current & Historical Women's Tennis Rankings

**WTA Rankings Scraper** exports the **official WTA tennis rankings**, both **singles and doubles**, for the **current week or any past week**. Every row has the **rank, ranking points, weekly movement, tournaments played, player name, country, date of birth and age** at that date. Get the top 10, the top 100 or all 1,500+ ranked players, filter by country, and export to **CSV, Excel or JSON**.

### What does WTA Rankings Scraper do?

- 🎾 **Singles and doubles** WTA rankings.
- 🗓️ **Historical rankings**: any past ranking week, so you can rebuild rankings history for analysis.
- 🌍 **Country filter**: e.g. the top American, Spanish or Chinese players.
- 🔢 **Top N or everyone**, from the top 10 to the full ranking list.
- 👤 **Player details**: country, date of birth, age at the ranking date and profile link.

### What data can you scrape?

| Field | Description |
|---|---|
| `rankingType` | `singles` or `doubles` |
| `rankingDate` | Ranking week (YYYY-MM-DD) |
| `ranking` | Rank |
| `points` | Ranking points |
| `movement` | Change since the previous week |
| `tournamentsPlayed` | Tournaments counted |
| `playerId`, `name`, `firstName`, `lastName` | Player |
| `country` | 3-letter country code |
| `dateOfBirth`, `age` | Birth date and age at the ranking date |
| `profileUrl` | WTA player page |

### Use cases

- **Sports betting and fantasy tennis**: player strength features and ranking trends.
- **Sports journalism and data viz**: top-10 history, national rankings and rising stars.
- **Tennis analytics**: ranking trajectories, age curves and points distribution.
- **Apps and websites**: keep ranking tables up to date with a weekly schedule.

### How to scrape WTA rankings

1. Click **Try for free** to open WTA Rankings Scraper in Apify Console.
2. Choose **singles** and/or **doubles**.
3. Optionally add **past ranking dates**, a **country** and **Top N**.
4. Click **Start** and download the rankings as **CSV, Excel or JSON**.

### Input

#### Example input

```json
{
  "rankingTypes": ["singles", "doubles"],
  "rankingDates": ["2024-01-08", "2025-01-06"],
  "countryCode": "",
  "maxRank": 100
}
```

| Field | Description |
|---|---|
| **Rankings** | Singles and/or doubles. |
| **Ranking dates** | Past weeks (YYYY-MM-DD). Empty = current ranking. |
| **Country** | 3-letter country code filter. |
| **Top N** | Number of players (0 = all ranked players). |

### Output

```json
{
  "rankingType": "singles",
  "ranking": 1,
  "points": 9880,
  "movement": 0,
  "tournamentsPlayed": 18,
  "rankingDate": "2024-01-08",
  "playerId": "326408",
  "name": "Iga Swiatek",
  "country": "POL",
  "dateOfBirth": "2001-05-31",
  "age": 22,
  "profileUrl": "https://www.wtatennis.com/players/326408/iga-swiatek"
}
```

### How much does it cost?

WTA Rankings Scraper uses **pay-per-row** pricing: a small fixed price per ranked player, with automatic discounts on higher Apify plans. The full top 100 costs a fraction of a dollar. See the **Pricing** tab for the exact price.

### More tennis and sports data

- [TennisExplorer Scraper](https://apify.com/hipersoft/tennisexplorer-scraper): ATP/WTA match results, fixtures, odds and head-to-heads.
- [Action Network Odds Scraper](https://apify.com/hipersoft/actionnetwork-odds-scraper): betting lines and public betting splits.
- [ESPN Sports Scraper](https://apify.com/hipersoft/espn-sports-scraper): scores, schedules and standings.

### FAQ

**How far back do historical rankings go?**
Many years. Enter any past date and you get the ranking valid that week.

**When are rankings updated?**
The WTA publishes new rankings every Monday. Schedule the scraper weekly to keep your data current.

**Can I get only one country's players?**
Yes. Use the 3-letter code, e.g. `USA`, `ESP`, `CHN`.

**Is the ATP (men's) ranking included?**
This actor covers the WTA. For men's match results and fixtures, see the TennisExplorer Scraper.

**What formats can I export?**
CSV, Excel, JSON, XML, HTML and RSS, or read the results through the Apify API.

**Can I integrate WTA Rankings Scraper with other apps?**
WTA Rankings Scraper can be connected with almost any cloud service or web app thanks to [integrations on the Apify platform](https://apify.com/integrations). It works with [Make](https://apify.com/integrations/make), [Zapier](https://apify.com/integrations/zapier), [Slack](https://docs.apify.com/platform/integrations/slack), [Airbyte](https://docs.apify.com/platform/integrations/airbyte), [GitHub](https://docs.apify.com/platform/integrations/github), [Google Drive](https://docs.apify.com/platform/integrations/drive) and [many more](https://apify.com/integrations), plus the [Apify API](https://docs.apify.com/api/v2), JS/Python clients and MCP. Or use [webhooks](https://docs.apify.com/platform/integrations/webhooks) to trigger an action whenever a run finishes.

### Related Actors

- [TennisExplorer Scraper](https://apify.com/hipersoft/tennisexplorer-scraper)
- [Action Network Odds Scraper](https://apify.com/hipersoft/actionnetwork-odds-scraper)

### Notes

Original clean-room implementation. Returns only public data; you are responsible for compliance with the WTA's terms. Not affiliated with the WTA.

# Actor input Schema

## `rankingTypes` (type: `array`):

Singles and/or doubles rankings.

## `rankingDates` (type: `array`):

Past ranking weeks to fetch, as YYYY-MM-DD (e.g. 2024-01-08). Rankings are published on Mondays; any date returns the ranking valid that week. Leave empty for the current ranking.

## `countryCode` (type: `string`):

Only players from this country, as a 3-letter code: USA, GBR, ESP, FRA, CZE, POL, CHN…

## `maxRank` (type: `integer`):

How many ranked players to return (e.g. 100 for the top 100). With a country filter, the top N players of that country. 0 means everyone ranked (1,500+).

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

Not required for normal use.

## Actor input object example

```json
{
  "rankingTypes": [
    "singles"
  ],
  "maxRank": 100,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

The results as dataset items.

# 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 = {
    "rankingTypes": [
        "singles"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("hipersoft/wta-rankings-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 = { "rankingTypes": ["singles"] }

# Run the Actor and wait for it to finish
run = client.actor("hipersoft/wta-rankings-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 '{
  "rankingTypes": [
    "singles"
  ]
}' |
apify call hipersoft/wta-rankings-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hipersoft/wta-rankings-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/gygaWYWgjkp7ba9uH/builds/Ebl47peGOD8GMG5Vn/openapi.json
