# Yesterday's tennis results with opening and closing odds

**Use case:** 

Yesterday's ATP, WTA and Challenger singles with the final score, the winner and the opening and final decimal odds for match winner, first-set winner and total games, each side marked won or lost. Schedule it daily to build a historical tennis odds dataset for betting models and backtests.

## Input

```json
{
  "tours": [
    "atp",
    "wta",
    "challenger"
  ],
  "matchType": "singles",
  "liveOnly": false,
  "dateFrom": "yesterday",
  "matchDetails": [
    "odds"
  ],
  "playerProfiles": false,
  "maxTournamentsPerDate": 10,
  "maxDiscoveryPages": 2,
  "maxItems": 200,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "startTimeIso": {
    "label": "Start (UTC)",
    "format": "string"
  },
  "tour": {
    "label": "Tour",
    "format": "string"
  },
  "tournamentName": {
    "label": "Tournament",
    "format": "string"
  },
  "round": {
    "label": "Round",
    "format": "object"
  },
  "player1": {
    "label": "Player 1",
    "format": "object"
  },
  "player2": {
    "label": "Player 2",
    "format": "object"
  },
  "scoreString": {
    "label": "Score",
    "format": "string"
  },
  "resultType": {
    "label": "Result",
    "format": "string"
  },
  "surface": {
    "label": "Surface",
    "format": "string"
  },
  "matchUrl": {
    "label": "Match",
    "format": "string"
  }
}
```

## How it works

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

The Tennis Scraper & API — ATP, WTA Stats, Point-by-Point, Odds Actor is ready to run with the inputs already set for "Yesterday's tennis results with opening and closing odds". [Sign up or log in](https://console.apify.com/create-task-from-example/tsoB18WoHYXyeKeBb) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Yesterday's tennis results with opening and closing odds" task

The Tennis Scraper & API — ATP, WTA Stats, Point-by-Point, Odds Actor will start running based on the input automatically. You can also change all the input fields, like tours, match type, and more, to match your specific use case.

### 3. Receive the "Yesterday's tennis results with opening and closing odds" 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 start (utc), tour, tournament, 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 "Yesterday's tennis results with opening and closing odds" task via API](https://apify.com/incognito_mode/sofascore-tennis-scraper.md).

## FAQ

### What results does the task output for yesterday's tennis matches?

The task outputs the final scores, match winners, and the opening and closing odds for match winners and first-set winners.

### What tours does the task cover for tennis results?

The task covers results from ATP, WTA, and Challenger tours.

### What does the 'resultType' field indicate in the output?

The 'resultType' field indicates how the match ended, e.g., completed, retired, or canceled.

### Can I schedule this task to run daily?

This task can be scheduled to run automatically in Apify Console on a daily basis.

### What kind of odds information does the task provide?

The task provides opening and closing decimal odds for match winners and first-set winners.

### Is there any requirement for an API key to run the task?

No API key is required to run this task.

## About this Actor

This example demonstrates how to use [Tennis Scraper & API — ATP, WTA Stats, Point-by-Point, Odds](https://apify.com/incognito_mode/sofascore-tennis-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/incognito_mode/sofascore-tennis-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/sofascore-tennis-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`).
