# Closing odds and results of yesterday's tennis

**Use case:** 

Yesterday's finished ATP and WTA matches with the result, the closing and opening odds of every UK bookmaker, the fair probability and serve statistics: back-testing data for a betting model.

## Input

```json
{
  "mode": "matches",
  "dateFrom": "yesterday",
  "matchIds": [],
  "playerUrls": [],
  "rankingLists": [
    "atp",
    "wta"
  ],
  "tournamentUrls": [],
  "years": [],
  "statsSplitBy": "season",
  "eloTour": "atp",
  "eloSurface": "all",
  "tours": [
    "atp",
    "wta"
  ],
  "matchType": "singles",
  "status": "finished",
  "tournaments": [],
  "players": [],
  "surfaces": [],
  "includeOdds": true,
  "oddsCountry": "GB",
  "oddsMarkets": "match-winner",
  "includeH2H": true,
  "includeStatistics": true,
  "includePointByPoint": false,
  "includeRankings": true,
  "sortBy": "tour",
  "maxItems": 100
}
```

## Output

```json
{
  "startTime": {
    "label": "Start",
    "format": "date"
  },
  "tournament": {
    "label": "Tournament",
    "format": "text"
  },
  "player1Name": {
    "label": "Player 1",
    "format": "text"
  },
  "player2Name": {
    "label": "Player 2",
    "format": "text"
  },
  "status": {
    "label": "Status",
    "format": "text"
  },
  "odds.bookmakerCount": {
    "label": "Bookmakers",
    "format": "number"
  },
  "odds.player1Best": {
    "label": "Best 1",
    "format": "number"
  },
  "odds.player1BestBookmaker": {
    "label": "at",
    "format": "text"
  },
  "odds.player2Best": {
    "label": "Best 2",
    "format": "number"
  },
  "odds.player2BestBookmaker": {
    "label": "at",
    "format": "text"
  },
  "odds.player1Average": {
    "label": "Avg 1",
    "format": "number"
  },
  "odds.player2Average": {
    "label": "Avg 2",
    "format": "number"
  },
  "odds.player1OpeningAverage": {
    "label": "Opening 1",
    "format": "number"
  },
  "odds.player2OpeningAverage": {
    "label": "Opening 2",
    "format": "number"
  },
  "odds.player1MovePct": {
    "label": "Move 1 %",
    "format": "number"
  },
  "odds.averageMarginPct": {
    "label": "Margin %",
    "format": "number"
  },
  "odds.bestPricesMarginPct": {
    "label": "Best-price margin %",
    "format": "number"
  },
  "odds.oddsUrl": {
    "label": "Odds page",
    "format": "link"
  }
}
```

## About this Actor

This example demonstrates how to use [Flashscore Tennis Scraper - Live Scores, Odds, H2H & History](https://apify.com/crawlplant/flashscore-tennis.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/crawlplant/flashscore-tennis.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/crawlplant/flashscore-tennis.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`).
