# Flashscore Match Betting Odds (`automation-lab/flashscore-match-betting-odds`) Actor

Export Flashscore betting odds as flat rows: one bookmaker price per selection with match, competition, kickoff, status, market, line, current and opening price. 24 sports, 11 bookmaker countries, scheduled, live and finished matches.

- **URL**: https://apify.com/automation-lab/flashscore-match-betting-odds.md
- **Developed by:** [Automation Lab](https://apify.com/automation-lab) (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 $0.09 / 1,000 odds rows

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

## Flashscore Match Betting Odds

### What does Flashscore Match Betting Odds do?

**Flashscore Match Betting Odds** exports the bookmaker odds that [Flashscore](https://www.flashscore.com) shows for scheduled, live and finished matches. Pick sports and days, or paste match links, and get **one flat row per bookmaker price**: match, competition, teams, kickoff, status, bookmaker, market, period, line, selection, current price, opening price and price movement.

Flat rows go straight into a spreadsheet, a database table or a price-comparison script. No nested JSON to unpack, no login and no API key.

The easiest way to try it is to click **Start** with the prefilled input. It lists today's football matches, takes the 10 that kick off soonest and exports the 1X2 and Over/Under prices of every bookmaker in the United Kingdom list, usually in under a minute.

### Who is Flashscore Match Betting Odds for?

**Odds comparison and tipster sites**

- Show the best price per selection across 20+ bookmakers
- Refresh prices on a schedule for today's and tomorrow's fixtures

**Sports bettors and arbitrage hunters**

- Compare the same selection across bookmakers to spot surebets and value
- Track how the line moved from the opening price to now

**Sports data analysts and modellers**

- Collect opening and closing prices as model features or as a market benchmark
- Build a history of odds by running the Actor every hour and keeping each run's rows

**Media and content teams**

- Pull the current favourite and market prices into match previews and odds tables

### Why use Flashscore Match Betting Odds?

- **Flat rows, ready for analysis** — each row is one bookmaker's price for one selection, so filtering, pivoting and best-price lookups are one step in a spreadsheet or SQL
- **Every market Flashscore lists** — 1X2, Home/Away, Over/Under, both teams to score, double chance, draw no bet, Asian and European handicap, correct score, half time/full time and odd/even
- **Opening price and movement** — every row carries the opening price and whether the price went up, down or stayed the same
- **24 sports** — football, tennis, basketball, ice hockey, American football, baseball, handball, volleyball, cricket, darts, esports, MMA and more
- **Bookmakers by country** — choose the United Kingdom, Ireland, United States, Canada, Germany, Italy, Spain, Poland, Nigeria, India or Australia list
- **Two ways in** — discover matches by sport, day, status and competition, or fetch exact matches by link or ID
- **Pay per odds row** — you choose how many markets and bookmakers you want, and pay only for the rows you get

### What data can you extract from Flashscore?

| Field | Description |
|---|---|
| `matchId` | Flashscore 8-character match ID |
| `matchUrl` | Flashscore match page link |
| `sport` | Sport, for example `football`, `tennis`, `basketball` |
| `country` | Country or region of the competition |
| `competition` | Competition name, for example `Premier League` |
| `homeTeam` / `awayTeam` | Teams or players |
| `kickoffAt` | Scheduled start, UTC ISO 8601 |
| `matchStatus` | `scheduled`, `live` or `finished` |
| `matchStage` | Detailed stage, for example `1st half`, `Half time`, `Finished` |
| `homeScore` / `awayScore` | Current or final score (discovery mode) |
| `bookmaker` / `bookmakerId` | Bookmaker name and Flashscore ID |
| `market` / `marketCode` | Market, for example `1X2` / `HOME_DRAW_AWAY` |
| `period` / `periodCode` | `Full time`, `Full time incl. overtime`, `First half`, ... |
| `line` | Total for Over/Under, or the handicap of the selected team |
| `selection` | `Home`, `Draw`, `Away`, `Over`, `Under`, `Yes`, `No`, `1X`, `12`, `X2`, `2:1`, `X/1`, ... |
| `selectionTeam` | Team the selection refers to, when it refers to one |
| `price` | Current decimal odds (the closing price once the match has started) |
| `openingPrice` | Opening decimal odds |
| `priceMovement` | `up`, `down` or `unchanged` against the opening price |
| `isActive` | `false` when the bookmaker has suspended the price |
| `bookmakerCountry` | Bookmaker list used |
| `scrapedAt` | When the prices were read |

### How much does it cost to export Flashscore betting odds?

You pay a small fee when a run starts and a fee per odds row saved. The current prices are on the **Pricing** tab of this page. Matches with no odds for your filters cost nothing.

How many rows a match gives depends on your filters and on how many bookmakers price it (top leagues have the most):

| Filters | Typical rows per football match (UK list) |
|---|---|
| Match winner only, full time (the default) | about 10–60 |
| 1X2 + Over/Under, full time (the prefill) | about 50–250 |
| Every market, every period | about 300–1,200 |

Examples at the current Free and Starter plan price of **$0.108 per 1,000 odds rows** plus the **$0.001** start fee (higher plans pay less per row):

- **100 matches of football, tennis and basketball, winner market only** — about 1,800 rows, about **$0.20**
- **10 football matches, 1X2 + Over/Under** — about 850 rows, about **$0.09**
- **One match, every market and period** — about 300–1,200 rows, about **$0.03–$0.13**

To keep costs low, choose only the markets and bookmakers you need. Set **Maximum charge per run** in the run options to cap any run.

### How to export Flashscore betting odds

1. Open **Flashscore Match Betting Odds** in Apify Console.
2. Pick one or more **Sports** and the **Start day** (0 = today, 1 = tomorrow).
3. Choose the **Match status**: scheduled, live, finished, or a mix.
4. Optionally type **Competitions** such as `England: Premier League` or `NBA`.
5. Choose the **Markets** and, if you want, the **Bookmakers**.
6. Pick the **Bookmaker country** whose list you want.
7. Set **Maximum matches** and click **Start**.
8. Download the rows as CSV, Excel, JSON or XML, or read them through the API.

To fetch exact matches instead, paste Flashscore match links or IDs into **Match URLs or IDs**.

### Input parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `sports` | array | `["football"]` | Sports to list. Ignored when match URLs are given |
| `startDay` | integer | `0` | First UTC day to list: 0 today, 1 tomorrow, -1 yesterday (-7 to 7) |
| `numberOfDays` | integer | `1` | How many consecutive days to list; the last must be at most 7 days ahead |
| `matchStatuses` | array | `["scheduled","live"]` | `scheduled`, `live`, `finished`. Postponed and cancelled matches are left out |
| `competitions` | array | `[]` | Keep matches whose "Country: Competition" contains any entry (case-insensitive) |
| `matchUrls` | array | `[]` | Flashscore match links or 8-character IDs. When set, the four filters above are ignored |
| `markets` | array | `["HOME_DRAW_AWAY","HOME_AWAY"]` | Market codes to export. Empty list = every market |
| `includeAllPeriods` | boolean | `false` | Also export half, quarter, period and set markets |
| `bookmakers` | array | `[]` | Keep bookmakers whose name contains any entry (case-insensitive) |
| `bookmakerCountry` | string | `GB` | `GB`, `IE`, `US`, `CA`, `DE`, `IT`, `ES`, `PL`, `NG`, `IN`, `AU` |
| `maxMatches` | integer | `20` | Most matches to read odds for, soonest kickoff first, across all sports and days |

Example: tomorrow's Premier League and LaLiga 1X2 and Over/Under prices from bet365 and William Hill:

```json
{
    "sports": ["football"],
    "startDay": 1,
    "competitions": ["England: Premier League", "Spain: LaLiga"],
    "markets": ["HOME_DRAW_AWAY", "OVER_UNDER"],
    "bookmakers": ["bet365", "William Hill"],
    "bookmakerCountry": "GB",
    "maxMatches": 50
}
```

### Output example

```json
{
    "matchId": "zeR1vbel",
    "matchUrl": "https://www.flashscore.com/match/zeR1vbel/",
    "sport": "football",
    "country": "Algeria",
    "competition": "Ligue 2",
    "homeTeam": "Djijel",
    "awayTeam": "CR Beni Thour",
    "kickoffAt": "2026-11-10T14:00:00.000Z",
    "matchStatus": "scheduled",
    "matchStage": "Not started",
    "homeScore": null,
    "awayScore": null,
    "bookmaker": "Ladbrokes",
    "bookmakerId": 28,
    "market": "1X2",
    "marketCode": "HOME_DRAW_AWAY",
    "period": "Full time",
    "periodCode": "FULL_TIME",
    "line": null,
    "selection": "Home",
    "selectionTeam": "Djijel",
    "price": 1.5,
    "openingPrice": 1.65,
    "priceMovement": "down",
    "isActive": true,
    "bookmakerCountry": "GB",
    "scrapedAt": "2026-11-10T07:08:14.417Z"
}
```

### Markets and selections

| Market code | Market | Selections |
|---|---|---|
| `HOME_DRAW_AWAY` | 1X2 | Home, Draw, Away |
| `HOME_AWAY` | Home/Away (2-way, including overtime where it exists) | Home, Away |
| `OVER_UNDER` | Over/Under | Over, Under, with the total in `line` |
| `BOTH_TEAMS_TO_SCORE` | Both teams to score | Yes, No |
| `DOUBLE_CHANCE` | Double chance | 1X, 12, X2 |
| `DRAW_NO_BET` | Draw no bet | Home, Away |
| `ASIAN_HANDICAP` | Asian handicap | Home, Away, with that team's handicap in `line` |
| `EUROPEAN_HANDICAP` | European handicap | Home, Draw, Away, with the handicap in `line` |
| `CORRECT_SCORE` | Correct score | Scores such as 2:1 |
| `HALF_FULL_TIME` | Half time/full time | Pairs such as X/1 |
| `ODD_OR_EVEN` | Odd/Even total | Odd, Even |

Which markets exist depends on the sport, the match and the bookmaker list. Tennis, basketball and baseball use Home/Away; football, ice hockey and handball use 1X2.

### Tips for best results

- **Start small.** Try 5–10 matches with the default markets, then widen the filters.
- **Best price per selection.** Group rows by `matchId`, `marketCode`, `periodCode`, `line` and `selection`, then take the highest `price`.
- **Line movement over time.** Schedule the Actor every 15–60 minutes and keep every run's rows; `scrapedAt` separates the snapshots.
- **Closing odds.** Set **Match status** to `finished` and **Start day** to `-1` to collect yesterday's closing prices.
- **Competition filter.** Use the "Country: Competition" form (`England: Premier League`) to avoid matching a same-named league in another country.
- **Bookmaker list.** The United Kingdom list has the most bookmakers. Some lists (for example Australia or India) carry few or no prices for many matches.
- **Live prices.** For a live match `price` is the latest price Flashscore shows for that bookmaker; refresh with a new run to see newer prices.

### Limits and failure behaviour

- Flashscore lists matches from 7 days back to 7 days ahead; the Actor follows the same window.
- In **Match URLs** mode, scores are not filled in (`homeScore` and `awayScore` are null).
- A match without prices for your filters gives no rows and costs nothing.
- If some matches fail to load, the rows already saved are kept and the status message names how many failed. If nothing could be loaded, the run fails with the reason.
- The run stops cleanly at your **Maximum charge per run**.

### Integrations

- **Google Sheets** — send each run's rows to a sheet and build a best-price pivot table.
- **Make, Zapier and n8n** — start a run on a schedule and alert when a price crosses your threshold.
- **Databases** — load the CSV or JSON export into PostgreSQL, BigQuery or Snowflake and keep a history of odds.
- **Webhooks** — let Apify call your endpoint when a run finishes, then fetch the dataset.

### Using the Apify API

**cURL**

```bash
curl -X POST "https://api.apify.com/v2/acts/automation-lab~flashscore-match-betting-odds/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"sports":["football"],"markets":["HOME_DRAW_AWAY"],"maxMatches":10}'
```

**JavaScript**

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });
const run = await client.actor('automation-lab/flashscore-match-betting-odds').call({
    sports: ['football', 'tennis'],
    markets: ['HOME_DRAW_AWAY', 'HOME_AWAY'],
    bookmakerCountry: 'GB',
    maxMatches: 20,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, items[0]);
```

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("automation-lab/flashscore-match-betting-odds").call(run_input={
    "sports": ["basketball"],
    "competitions": ["NBA"],
    "markets": ["HOME_AWAY", "OVER_UNDER"],
    "bookmakerCountry": "US",
    "maxMatches": 15,
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["homeTeam"], row["awayTeam"], row["bookmaker"], row["selection"], row["price"])
```

### Use with AI agents via MCP

Flashscore Match Betting Odds is available through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp), so Claude, Cursor and other MCP clients can run it.

**Claude Code**

```bash
claude mcp add --transport http apify \
  "https://mcp.apify.com?tools=automation-lab/flashscore-match-betting-odds"
```

**Claude Desktop, Cursor or VS Code** (JSON configuration)

```json
{
    "mcpServers": {
        "apify": {
            "url": "https://mcp.apify.com?tools=automation-lab/flashscore-match-betting-odds"
        }
    }
}
```

Selecting this Actor also gives the client the `get-actor-run`, `get-dataset-items`, `get-key-value-store-record` and `abort-actor-run` tools. A good run-to-result routine:

1. Start one run and keep the returned run ID and dataset ID.
2. If the run is not finished when the call returns, check the same run with `get-actor-run` every few seconds up to a deadline you choose (for example 2 minutes). Do not start a new run just to poll.
3. When it succeeds, read rows with `get-dataset-items` in pages (for example 20 rows at a time, at most 100 rows) and request only the fields you need, such as `homeTeam`, `awayTeam`, `bookmaker`, `selection`, `price`.

Example prompts:

- "Get the 1X2 odds for today's Premier League matches from the UK bookmakers and tell me the best price for each result."
- "Which NBA game tonight has the biggest spread between bookmakers on the moneyline?"
- "List yesterday's finished tennis matches and their closing Home/Away prices at bet365."

### Is it legal to scrape Flashscore odds?

The Actor reads publicly shown match and odds information from Flashscore pages, without logging in. It collects no personal data. Odds are factual prices published for the public.

You are responsible for how you use the data. Check Flashscore's terms and the rules in your country, especially if you republish odds commercially or use them for gambling. Gambling can be addictive; bet responsibly and only where it is legal for you. This Actor is not affiliated with or endorsed by Flashscore or any bookmaker.

Failed operations send sanitized diagnostic input, exceptions, and Actor/build/run IDs to our private GlitchTip service for repair. Secret fields and URL query strings are removed; reports are retained for 30 days.

### FAQ

**Why does a match return no rows?**
The bookmaker list for your chosen country may not price that match, or the match has none of your chosen markets. Try the `GB` list, clear the **Bookmakers** filter, or clear **Markets** to see everything.

**Why do I see fewer bookmakers than on the Flashscore website?**
Flashscore shows a different list in each country. Pick the matching **Bookmaker country**. Some listed bookmakers carry no prices for smaller leagues.

**Are the prices live?**
Each row is the price at the time of the run (`scrapedAt`). For a live match it is the latest price Flashscore shows; run again for newer prices.

**What is `line` for Asian handicap?**
It is the handicap applied to the team in `selectionTeam`. For example `line: -0.5` with `selection: Home` means the home team must win.

**Can I get American or fractional odds?**
Prices are decimal. American odds are `(price − 1) × 100` when the price is 2.0 or more, and `−100 / (price − 1)` below 2.0.

**The run says some matches failed to load. What now?**
The rows already saved are kept and charged; run again with the same input for the rest. If every match fails, open an issue on the Issues tab with the run link.

### Related Actors

- [ESPN Multi-League Sports Odds Scraper](https://apify.com/automation-lab/espn-multi-league-odds-scraper) — odds from ESPN for US leagues
- [Action Network Sports Odds & Line Movement Scraper](https://apify.com/automation-lab/action-network-sports-odds-line-movement-scraper) — US sportsbook lines and movement
- [Bovada Sportsbook Odds Scraper](https://apify.com/automation-lab/bovada-sportsbook-odds-scraper) — Bovada prices by sport
- [Sofascore Live Tennis Scraper](https://apify.com/automation-lab/sofascore-live-tennis-scraper) — live tennis scores and statistics

# Changelog

This Actor's version history is a separate document: https://apify.com/automation-lab/flashscore-match-betting-odds/changelog.md

# Actor input Schema

## `sports` (type: `array`):

Sports whose matches are listed for the chosen days. Ignored when Match URLs are given.

## `startDay` (type: `integer`):

First day to list, relative to today in UTC: 0 is today, 1 is tomorrow, -1 is yesterday. Flashscore lists 7 days back and 7 days ahead. Ignored when Match URLs are given.

## `numberOfDays` (type: `integer`):

How many consecutive UTC days to list, starting at Start day. The last day must be no later than 7 days ahead. Ignored when Match URLs are given.

## `matchStatuses` (type: `array`):

Which matches to keep from the daily lists: not started, in progress, or finished (finished matches keep their closing odds). Postponed and cancelled matches are always left out. Empty means scheduled and live. Ignored when Match URLs are given.

## `competitions` (type: `array`):

Keep only matches whose "Country: Competition" text contains any of these words, case-insensitive (for example "England: Premier League", "Premier League", "NBA" or "ATP"). A match is kept when any one entry matches. Empty keeps every competition. Ignored when Match URLs are given.

## `matchUrls` (type: `array`):

Flashscore match links (for example https://www.flashscore.com/match/football/arsenal-hA1Zm19f/chelsea-4fGZN2oK/?mid=AbCd1234) or 8-character match IDs. When given, only these matches are fetched, and Sports, days, Match status and Competitions are ignored.

## `markets` (type: `array`):

Bet types to export. The default is the match-winner markets: 1X2 for sports with draws and Home/Away for the rest. Clear the list to export every market Flashscore lists for the match. A match that has none of the chosen markets gives no rows.

## `includeAllPeriods` (type: `boolean`):

Off: only whole-match markets (full time, and full time including overtime). On: also first half, second half, quarters, periods and sets.

## `bookmakers` (type: `array`):

Keep only bookmakers whose name contains any of these words, case-insensitive (for example "bet365", "William Hill"). Empty keeps every bookmaker Flashscore shows for the chosen country.

## `bookmakerCountry` (type: `string`):

Flashscore shows a different bookmaker list in each country. Choose whose list to export. The United Kingdom has the most bookmakers.

## `maxMatches` (type: `integer`):

Most matches to fetch odds for in this run, across all sports and days. Matches with no odds for the chosen filters count toward it but produce no rows. You pay per odds row, not per match.

## Actor input object example

```json
{
  "sports": [
    "football"
  ],
  "startDay": 0,
  "numberOfDays": 1,
  "matchStatuses": [
    "scheduled",
    "live"
  ],
  "competitions": [],
  "matchUrls": [],
  "markets": [
    "HOME_DRAW_AWAY",
    "HOME_AWAY",
    "OVER_UNDER"
  ],
  "includeAllPeriods": false,
  "bookmakers": [],
  "bookmakerCountry": "GB",
  "maxMatches": 10
}
```

# Actor output Schema

## `overview` (type: `string`):

All saved odds rows in the Odds table view: kickoff, sport, competition, teams, status, bookmaker, market, period, line, selection, price, opening price and movement.

# 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 = {
    "sports": [
        "football"
    ],
    "markets": [
        "HOME_DRAW_AWAY",
        "HOME_AWAY",
        "OVER_UNDER"
    ],
    "maxMatches": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("automation-lab/flashscore-match-betting-odds").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 = {
    "sports": ["football"],
    "markets": [
        "HOME_DRAW_AWAY",
        "HOME_AWAY",
        "OVER_UNDER",
    ],
    "maxMatches": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("automation-lab/flashscore-match-betting-odds").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 '{
  "sports": [
    "football"
  ],
  "markets": [
    "HOME_DRAW_AWAY",
    "HOME_AWAY",
    "OVER_UNDER"
  ],
  "maxMatches": 10
}' |
apify call automation-lab/flashscore-match-betting-odds --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,automation-lab/flashscore-match-betting-odds"
        }
    }
}
```

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/bzGa13jymwp8ve86a/builds/VSZzgz4uyRunrErHN/openapi.json
