# Tennis Abstract Scraper: ATP & WTA Career Matches (`luzivanlt/tennisabstract-matches-scraper`) Actor

Tennis Abstract match history, ATP and WTA, every match of a career with serve and return numbers. $3.00 per 1,000 matches. Date, tournament, level, surface, round, score, both rankings, opponent, dominance ratio and charting link. Up to 50 players per run. No login needed.

- **URL**: https://apify.com/luzivanlt/tennisabstract-matches-scraper.md
- **Developed by:** [Luzi](https://apify.com/luzivanlt) (community)
- **Categories:** Sports
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.10 / 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.
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 Abstract Scraper: ATP & WTA Career Matches

Every match of a tennis player's career, men's or women's, from Grand Slams
down to Challengers and juniors, with the serve and return numbers the site
records for each match. Give it player names or player links and it saves one
row per match: date, tournament, level, surface, round, score, result, both
players' rankings, aces, double faults, service and return points, a dominance
ratio, a charting link where the match has one, and the player's rank, peak
rank, Elo and height on every row. Up to 50 players in one run. One row per
match. No Tennis Abstract account or cookies needed.

Tested daily. Latest check on 2026-11-18: 50 matches from one player in 3
seconds, 6,829 matches from 10 players' whole careers in 9 seconds, and 10,000
matches from 50 players in 63 seconds. Women's careers are read in full too:
3,607 matches from six women's careers in the 10-player run, from Ons Jabeur's
2008 matches onward.

### What does this Actor do?

You give it one or more players, men or women, as names the way the site spells
them (`JannikSinner`, `IgaSwiatek`) or as player page links. It reads each
player's whole career and saves every match it finds, newest first. Three
players' whole careers measured 2,539 matches; a long career alone is more than
1,500.

Each match comes with:

- **When and where**: date, year, tournament, level in words (Grand Slam,
  Masters, Tour, Challenger, Futures, Qualifying, Juniors, Olympics, Davis Cup,
  Tour Finals), surface and round.
- **The result**: win or loss, the score as the site writes it (tie-breaks in
  brackets), best of three or five, and match length in minutes.
- **Both rankings**: the player's rank and seed at that match, and the
  opponent's rank, seed and how they entered (qualifier, wild card, lucky
  loser, protected ranking).
- **The opponent**: name, hand, date of birth, height and country.
- **The serve and return line**: aces, double faults, service points, first
  serves in, first- and second-serve points won, service games, break points
  saved and faced, return points, and the opponent's side of the same numbers.
- **Derived percentages**: ace %, double-fault %, first-serve in %, first-serve
  won %, second-serve won % and dominance ratio, worked out from the counters
  on the same row.
- **The player**: full name, current rank, peak rank, Elo rating, Elo rank,
  hand, height, date of birth and country, on every row so a row stands alone.
- **Charting**: the site's charting id and link when the match has a
  shot-by-shot page.

A match that both players' careers contain is saved once and charged once. A
match your filters leave out is free.

### Why use it?

- **A whole career, not a form page.** One player gives you every match the
  site lists, from the first to the last, in one run.
- **Men's and women's tennis in the same run.** Type ATP and WTA names
  together; a mixed run of 10 players saved 6,829 matches, 3,607 of them from
  six women's careers.
- **Many players at once.** Up to 50 players per run, so a queue of names
  becomes one dataset instead of fifty runs.
- **The numbers a model needs.** Serve, return, ranking and Elo fields on the
  same row, with percentages worked out for you, ready for a dataframe.
- **Priced for bulk.** $3.00 per 1,000 matches, with a whole career in one
  run and up to 50 players in that run.
- **Export anywhere.** Download as JSON, CSV or Excel, or read the dataset
  through Apify's API.

### How to use it

1. Open **Players** and type one or more names the way the site spells them,
   such as `CarlosAlcaraz` or `IgaSwiatek`, or paste player page links, one
   per line.
2. Optionally set **Matches per player**, **From year**, **Surface** and
   **Tournament levels** to narrow what is saved.
3. Press Start. The run reports how many matches it saved from how many
   players, and names any player the site did not answer for.

Run with no changes and you get Novak Djokovic's 50 most recent matches.

#### Links that work

A player page link from tennisabstract.com, for example
`https://www.tennisabstract.com/cgi-bin/player-classic.cgi?p=NovakDjokovic`.
Only the `p=` player in the link is used; anything else in the link is
ignored. A link to another site, or a line that is neither a name nor a
Tennis Abstract player link, stops the run before anything is read and names
the line.

### Input

| Field | What it does | Default |
| --- | --- | --- |
| **Players** (`players`) | Player names or player page links, one per line, men's or women's. Spaces in a typed name are dropped, so "Novak Djokovic" works. Up to 50 players; a name written twice is read once. | `NovakDjokovic` |
| **Matches per player** (`maxMatchesPerPlayer`) | How many of each player's most recent matches to save. 0 saves the whole career. A lower number saves rows and charge, not time, because the whole career is read either way. | `200` |
| **From year** (`sinceYear`) | Keep only matches played in this year or later, such as 2024. | empty |
| **Surface** (`surface`) | Keep only hard, clay, grass or carpet. | any surface |
| **Tournament levels** (`levels`) | Keep only the levels you pick. | every level |

Give at least one player. Example input:

```json
{
  "players": ["CarlosAlcaraz", "JannikSinner"],
  "maxMatchesPerPlayer": 0,
  "sinceYear": 2024,
  "surface": "clay"
}
```

### Output

One row per match. Example row:

```json
{
  "match_key": "2026-540-603",
  "player": "JannikSinner",
  "player_name": "Jannik Sinner",
  "date": "2026-06-29",
  "year": 2026,
  "tournament": "Wimbledon",
  "level": "G",
  "level_name": "Grand Slam",
  "surface": "Grass",
  "round": "F",
  "result": "W",
  "score": "6-7(7) 7-6(2) 6-3 6-4",
  "best_of": 5,
  "minutes": 226,
  "player_rank": 1,
  "opponent_name": "Alexander Zverev",
  "opponent_rank": 3,
  "aces": 8,
  "double_faults": 3,
  "dominance_ratio": 1.12
}
```

| Field | What it holds |
| --- | --- |
| `match_key` | The site's own match id, the same on both players' pages, so two runs can be joined on it. |
| `player` | The player as the site spells it in the page address, such as `NovakDjokovic`. |
| `player_name` | The player's full name. |
| `player_current_rank` | The player's ranking on the day of the run; empty for a retired player. |
| `player_peak_rank` | The player's best career ranking. |
| `player_elo_rating` | The player's Tennis Abstract Elo rating at the time of the run. |
| `player_elo_rank` | Where that Elo rating sits on the site's Elo table. |
| `player_hand` | `R` right-handed, `L` left-handed, `U` unknown. |
| `player_height_cm` | The player's height in centimetres. |
| `player_dob` | The player's date of birth. |
| `player_country` | The player's three-letter country code, such as `SRB`. |
| `date` | The first day of the tournament week. |
| `year` | That date's year, as a number for grouping. |
| `tournament` | The tournament name as the site prints it. |
| `level` | The site's one-letter tournament level. |
| `level_name` | That code in words, such as "Masters". |
| `surface` | Hard, Clay, Grass or Carpet. |
| `round` | The round, such as R32, QF, SF or F. |
| `result` | `W` for a win, `L` for a loss. |
| `score` | The score as the site writes it; tie-break scores stay in brackets. |
| `best_of` | 3 or 5. |
| `minutes` | Match length; older matches often have none. |
| `player_rank` | The player's ranking when the match was played. |
| `player_seed` | The player's seed in that tournament; empty when unseeded. |
| `opponent_name` | The opponent as the site prints it. |
| `opponent_rank` | The opponent's ranking when the match was played. |
| `opponent_seed` | The opponent's seed; empty when unseeded. |
| `opponent_entry` | How the opponent entered: `Q` qualifier, `WC` wild card, `LL` lucky loser, `PR` protected ranking. |
| `opponent_hand` | `R` or `L`. |
| `opponent_dob` | The opponent's date of birth. |
| `opponent_height_cm` | The opponent's height in centimetres. |
| `opponent_country` | The opponent's three-letter country code. |
| `aces` | Aces the player served. |
| `double_faults` | Double faults the player served. |
| `serve_points` | Service points the player played. |
| `first_serves_in` | First serves that landed in. |
| `first_serve_points_won` | Points won behind the first serve. |
| `second_serve_points_won` | Points won behind the second serve. |
| `service_games` | Service games played. |
| `break_points_saved` | Break points saved. |
| `break_points_faced` | Break points faced. |
| `return_points` | Points played on the opponent's serve. |
| `opponent_first_serves_in` | First serves the opponent landed in. |
| `opponent_first_serve_points_won` | Points the opponent won behind the first serve. |
| `opponent_second_serve_points_won` | Points the opponent won behind the second serve. |
| `opponent_service_games` | Service games the opponent played. |
| `ace_pct` | Aces divided by service points, as a percentage. |
| `df_pct` | Double faults divided by service points, as a percentage. |
| `first_serve_pct` | First serves in divided by service points, as a percentage. |
| `first_serve_won_pct` | First-serve points won divided by first serves in, as a percentage. |
| `second_serve_won_pct` | Second-serve points won divided by second serves played, as a percentage. |
| `dominance_ratio` | Return points won as a share of return points, over service points lost as a share of service points. |
| `charting_slug` | The site's id for the match's shot-by-shot charting page. |
| `charting_url` | The charting page for the match; empty when the site has not charted it. |
| `source_url` | The player page this match was read from. |
| `scraped_at` | When the row was read. |

The serve and return counters are filled on about 82% of rows, match length on
about 79%, the opponent's seed on about 37% and a charting link on about 39%:
the site records those for newer and bigger matches, and the field is empty
elsewhere rather than guessed. Those rates are from 6,829 matches of ten
players' whole careers, men and women.

### How much does it cost?

You pay for what you get:

- **$3.00 per 1,000 matches** ($0.003 per match). One row saved is one match,
  with every field above.
- **A match saved twice is charged once.** When both players in a run played
  the same match, only the first save is charged.
- **A match your filters leave out is free.** So is a player the site did not
  answer for.

The default sample, one player's 50 most recent matches, costs $0.15. A run of
10 players' whole careers that saved 6,829 matches costs $20.49. A run of 50
players that saved 10,000 matches at 200 matches each costs $30.00.

Bronze plans pay 10% less, Silver 20% less and Gold 30% less: $2.70, $2.40 and
$2.10 per 1,000 matches.

### How long does a run take?

- 50 matches from one player: about 3 seconds.
- A whole career, 1,526 matches from one player: about 3 seconds.
- 10 players' whole careers, 6,829 matches: about 9 seconds.
- 50 players, 10,000 matches: about 63 seconds.
- 25 players' whole careers, 16,345 matches: about 93 seconds.

A larger run scales with the number of players, not matches, because each
player's career is read in one go.

### Good to know

- **The history is the site's.** A career starts where the site's records
  start, and a tournament the site has not catalogued is not in the output.
- **Live and upcoming matches are not in the output.** The site's match
  history is finished matches only.
- **No draws or head-to-head tables.** One row is one match, and the
  head-to-head is what you get by joining two players' rows on `match_key` or
  on the opponent's name.
- **The charting link opens the site's own page.** Point-by-point data stays on
  that page; the row carries the link, not the points.
- **Men's and women's careers both work.** A mixed run of 10 players saved
  3,607 matches from six women's careers, from Ons Jabeur's 2008 matches to
  2026\. Women's careers go back as far as the site's women's records do.
- **A player name must be the site's spelling.** Use the full name as the site
  writes it, such as `NovakDjokovic`; a name the site does not know is
  reported by name.
- **Doubles matches are not in the output.** The site's career lists here are
  singles.
- **Up to 50 players per run.** Run twice for more.
- **A run that saves nothing fails and says why**, rather than reporting
  success with an empty dataset.

### FAQ

**What does one row cost?**
$0.003, so $3.00 per 1,000 matches. A duplicate and a filtered-out match are
free.

**Can I get only Grand Slams or only clay?**
Yes. Set **Tournament levels** and **Surface**; the match count drops and you
pay only for the rows saved.

**Can I track a player's new matches daily?**
Yes. Save the input as a task and schedule it, then keep only the matches whose
`date` is newer than your last export. Each run saves the matches it reads and
charges those rows once.

**Can I mix men's and women's players in one run?**
Yes. Type `CarlosAlcaraz` and `IgaSwiatek` in the same **Players** list; both
careers come back in one dataset, and a match they played against each other is
saved once.

**Why is a field empty on an old match?**
The site does not record serve and return numbers, match length or charting
for every match, usually the oldest ones. The field is left empty instead of
guessed.

# Actor input Schema

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

Player names as Tennis Abstract writes them, for the men's or women's tour, such as NovakDjokovic or IgaSwiatek, or a player page link copied from tennisabstract.com. Spaces in a typed name are dropped, so "Novak Djokovic" works too. Up to 50 players in one run; a name written twice is read once. A name the site does not know is reported by name at the end instead of stopping the other players.

## `maxMatchesPerPlayer` (type: `integer`):

How many of each player's most recent matches to save. 0 saves the whole career, which for a long career is more than 1,500 rows. The page is read once either way, so a lower number saves only rows and charge, not time.

## `sinceYear` (type: `integer`):

Keep only matches played in this year or later, such as 2024. Leave empty for the whole career.

## `surface` (type: `string`):

Keep only matches on one court surface. Leave Any surface to keep hard, clay, grass and carpet together.

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

Keep only the tournament levels you pick. Leave empty for every level, from Grand Slams down to juniors and qualifying.

## Actor input object example

```json
{
  "players": [
    "NovakDjokovic"
  ],
  "maxMatchesPerPlayer": 50,
  "surface": "",
  "levels": []
}
```

# Actor output Schema

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

Every match read from the players you named, one row each.

## `summary` (type: `string`):

How many matches were saved, how many players were read, how many matches were shared between players, filtered or above the per-player limit, and why the run stopped.

## `misses` (type: `string`):

Player names the site did not answer for, with the reason.

# 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 = {
    "players": [
        "NovakDjokovic"
    ],
    "maxMatchesPerPlayer": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("luzivanlt/tennisabstract-matches-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 = {
    "players": ["NovakDjokovic"],
    "maxMatchesPerPlayer": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("luzivanlt/tennisabstract-matches-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 '{
  "players": [
    "NovakDjokovic"
  ],
  "maxMatchesPerPlayer": 50
}' |
apify call luzivanlt/tennisabstract-matches-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,luzivanlt/tennisabstract-matches-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/gy8bruWmNSq7hO3PI/builds/bfZDKuVRUO1dUdwCy/openapi.json
