# Novak Djokovic career match history: every tour-level match

**Use case:** 

Every ATP and team-event singles match of Novak Djokovic's career that Sofascore lists, about 1,180 matches since 2009: date, tournament, round, surface, opponent and their ranking, score from Djokovic's side and win or loss. A full run costs about $3. Set a number in Matches per player for just the latest matches, or swap in any other player.

## Input

```json
{
  "players": [
    "Novak Djokovic"
  ],
  "matchups": [],
  "maxMatchesPerPlayer": 0,
  "maxItems": 1500,
  "surface": [],
  "tourLevels": [
    "atp",
    "team"
  ],
  "includeExhibitions": false,
  "matchDetails": [],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "startTimeIso": {
    "label": "Date (UTC)",
    "format": "string"
  },
  "perspectivePlayer": {
    "label": "Player",
    "format": "object"
  },
  "opponent": {
    "label": "Opponent",
    "format": "object"
  },
  "won": {
    "label": "Won",
    "format": "boolean"
  },
  "scoreForPlayer": {
    "label": "Score",
    "format": "string"
  },
  "tournamentName": {
    "label": "Tournament",
    "format": "string"
  },
  "round": {
    "label": "Round",
    "format": "object"
  },
  "surfaceCategory": {
    "label": "Surface",
    "format": "string"
  },
  "tour": {
    "label": "Tour",
    "format": "string"
  },
  "matchup": {
    "label": "Pair",
    "format": "string"
  },
  "matchUrl": {
    "label": "Match",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Tennis Player Stats & H2H Scraper — ATP, WTA Match History Actor is ready to run with the inputs already set for "Novak Djokovic career match history: every tour-level match". [Sign up or log in](https://console.apify.com/create-task-from-example/V3fxVKgSgN8s7lebJ) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Novak Djokovic career match history: every tour-level match" task

The Tennis Player Stats & H2H Scraper — ATP, WTA Match History Actor will start running based on the input automatically. You can also change all the input fields, like players, head-to-head pairs, and more, to match your specific use case.

### 3. Receive the "Novak Djokovic career match history: every tour-level match" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as date (utc), player, opponent, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Novak Djokovic career match history: every tour-level match" task via API](https://apify.com/incognito_mode/tennis-player-stats-h2h-scraper.md).

## FAQ

### What output data can I expect from Novak Djokovic's career match history task?

The Novak Djokovic career match history task returns data including match date, tournament, round, surface, opponent name and ranking, score, and whether Djokovic won or lost.

### How extensive is the match history for Djokovic's career?

The task provides match history for about 1,180 ATP and team-event singles matches starting from 2009.

### What is the cost for running this task?

You pay per match row: $2.50 per 1,000 matches. The full career of about 1,180 matches comes to about $3. Set Matches per player to 50 to get only his latest 50 matches, for about $0.13.

### Can I automate the running of this task?

Yes, this task can be scheduled to run automatically in Apify Console as per users' needs.

### What input does this task require to fetch Novak Djokovic's match history?

Just the player: a name such as "Novak Djokovic", his Sofascore ID (14882) or his Sofascore player link. Matches per player set to 0 means the whole career; any other number keeps only the most recent matches.

### How can I retrieve the match details using the Apify API?

This task can be called through the Apify API to retrieve match details in a structured format.

### Why does the history start in 2009?

Sofascore's records of Djokovic's matches before 2009 are sparse, so the career in this dataset effectively starts in 2009. From 2009 on, Grand Slams, Masters, the ATP Finals and Davis Cup are all covered.

## About this Actor

This example demonstrates how to use [Tennis Player Stats & H2H Scraper — ATP, WTA Match History](https://apify.com/incognito_mode/tennis-player-stats-h2h-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/incognito_mode/tennis-player-stats-h2h-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/incognito_mode/tennis-player-stats-h2h-scraper.md

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`).
