# Get closing odds for past football matches

**Use case:** 

Opening and closing prices for every market and every line on football matches you already know, from 20 UK bookmakers. The current price of a finished match is its last pre-match price, so this is the closing line for closing-line-value analysis and model backtesting. Replace the match ids with your own, of any age.

## Input

```json
{
  "mode": "matches",
  "outrightUrls": [
    "https://www.flashscore.com/football/england/premier-league/",
    "https://www.flashscore.com/team/arsenal/hA1Zm19f/"
  ],
  "sports": [
    "football"
  ],
  "days": [
    "0",
    "1"
  ],
  "status": "all",
  "leagues": [
    "https://www.flashscore.com/football/england/premier-league/",
    "SPAIN: LaLiga"
  ],
  "matchIds": [
    "MNThRu6l"
  ],
  "bookmakerCountries": [
    "GB"
  ],
  "bookmakers": [
    "bet365",
    "Betfair",
    "William Hill"
  ],
  "markets": [],
  "periods": [],
  "lines": "all",
  "maxMatches": 3,
  "maxItems": 3000,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "homeName": {
    "label": "Home",
    "format": "string"
  },
  "awayName": {
    "label": "Away",
    "format": "string"
  },
  "bookmakerName": {
    "label": "Bookmaker",
    "format": "string"
  },
  "market": {
    "label": "Market",
    "format": "string"
  },
  "line": {
    "label": "Line",
    "format": "number"
  },
  "homeOpeningOdds": {
    "label": "Home open",
    "format": "number"
  },
  "homeOdds": {
    "label": "Home now",
    "format": "number"
  },
  "drawOpeningOdds": {
    "label": "Draw open",
    "format": "number"
  },
  "drawOdds": {
    "label": "Draw now",
    "format": "number"
  },
  "awayOpeningOdds": {
    "label": "Away open",
    "format": "number"
  },
  "awayOdds": {
    "label": "Away now",
    "format": "number"
  },
  "overOpeningOdds": {
    "label": "Over open",
    "format": "number"
  },
  "overOdds": {
    "label": "Over now",
    "format": "number"
  },
  "underOpeningOdds": {
    "label": "Under open",
    "format": "number"
  },
  "underOdds": {
    "label": "Under now",
    "format": "number"
  }
}
```

## About this Actor

This example demonstrates how to use [Flashscore Betting Odds & Opening Lines Scraper](https://apify.com/incognito_mode/flashscore-odds-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/incognito_mode/flashscore-odds-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/flashscore-odds-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`).
