# Flashscore Scraper: Live Scores, Odds, xG & Match Stats (`scrapemint/flashscore-scraper`) Actor

Flashscore data for 30+ sports: fixtures, live scores and results for any day (-7 to +7), with optional xG and match stats, goals and cards, head-to-head and odds from 20+ bookmakers. No API key.

- **URL**: https://apify.com/scrapemint/flashscore-scraper.md
- **Developed by:** [Ken M](https://apify.com/scrapemint) (community)
- **Categories:** Automation, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## 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 Scraper: Live Scores, Odds, xG & Match Stats

Pull Flashscore data for **30+ sports** in one run: football (soccer), tennis, basketball, hockey, American football, baseball, handball, rugby, volleyball, cricket, darts, snooker, esports, MMA and more.

- **Fixtures, live scores and results** for any day from 7 days ago to 7 days ahead
- **Match stats**: xG, xGOT, shots, shots on target, possession, corners, big chances, passes, cards (tennis: aces, break points, service points...)
- **Bookmaker odds**: opening and current odds from 15-20 bookmakers per match (bet365, William Hill, Betfair, Unibet, Betway, Ladbrokes, Paddy Power and more, depending on country), 1X2, moneyline, over/under, BTTS, Asian handicap, correct score and more, each with its settled result
- **Match timeline**: goals, cards and substitutions with minute and player
- **Head-to-head and form**: each side's last matches and their previous meetings

No API key, no login, no browser. Uses the same data feeds the Flashscore site loads.

### Who uses it

- **Bettors and tipsters**: today's fixtures with the best price per outcome across bookmakers, and opening vs current odds to spot moves
- **Betting model builders**: results + closing odds + xG for backtesting, refreshed daily on a schedule
- **Telegram / Discord score bots**: a clean live-score feed every few minutes
- **Fantasy, media and data teams**: match stats and timelines without paying for a sports data API

### Example input

Today's top-5 league football with xG and odds:

```json
{
  "sports": ["football"],
  "days": ["0"],
  "leagues": ["ENGLAND: Premier League", "SPAIN: LaLiga", "ITALY: Serie A", "GERMANY: Bundesliga", "FRANCE: Ligue 1"],
  "includeStats": true,
  "includeOdds": true
}
```

Yesterday's NBA and tennis results, scores only (cheapest):

```json
{ "sports": ["basketball", "tennis"], "days": ["-1"], "leagues": ["USA: NBA", "ATP - SINGLES", "WTA - SINGLES"], "status": "finished" }
```

League filters match on the league name Flashscore shows (`COUNTRY: League`), partial and case-insensitive. `Premier League` also matches `Premier League Cup`; write `ENGLAND: Premier League` and add `teams` if you need tighter filtering.

### Example output

```json
{
  "matchId": "OluRZ1ie",
  "sport": "football",
  "country": "England",
  "league": "Premier League",
  "startTime": "2026-11-22T14:00:00.000Z",
  "status": "finished",
  "stage": "Finished",
  "homeTeam": "Hull",
  "awayTeam": "Brighton",
  "homeScore": 2,
  "awayScore": 0,
  "periods": [{ "home": 0, "away": 0 }, { "home": 2, "away": 0 }],
  "winner": "home",
  "homeXg": 1.83,
  "awayXg": 2.23,
  "homePossessionPct": 30,
  "awayPossessionPct": 70,
  "homeShots": 11,
  "awayShots": 15,
  "bookmakerCount": 20,
  "bestHomeOdds": { "odds": 6.6, "bookmaker": "10bet" },
  "bestDrawOdds": { "odds": 4.75, "bookmaker": "Unibetuk" },
  "bestAwayOdds": { "odds": 1.5, "bookmaker": "William Hill" },
  "odds": [
    { "bookmaker": "bet365", "market": "HOME_DRAW_AWAY", "scope": "FULL_TIME", "selection": "home", "line": null, "odds": 6.25, "openingOdds": 6.0, "active": true, "result": "WON" },
    { "bookmaker": "bet365", "market": "OVER_UNDER", "scope": "FULL_TIME", "selection": "over", "line": 2.5, "odds": 1.67, "openingOdds": 1.62, "active": true, "result": "LOST" }
  ],
  "events": [
    { "period": "2nd Half", "minute": "90+2'", "team": "home", "type": "Goal", "player": "McBurnie O.", "secondPlayer": "Gourna-Douath L.", "detail": null }
  ],
  "url": "https://www.flashscore.com/match/OluRZ1ie/#/match-summary"
}
```

`periods` holds the score per half, set, quarter or period in order (null when Flashscore has not published it). `stats` (every stat Flashscore shows, as text), `headToHead` and the full `odds` list are included when you turn those options on.

### Pricing

Pay per result, no monthly fee:

| Event | Price |
|---|---|
| Match row (scores, teams, status) | $0.001 |
| Match details (stats, odds, timeline or head-to-head, any combination) | +$0.002 |

The first row of every run is free. 1,000 matches with scores only cost $1; 1,000 matches with xG and odds cost $3.

### Tips

- **Schedules**: run every 5-15 minutes with `status: "live"` for a live-score feed, or once a day with `days: ["-1"]` and `includeOdds` to log closing odds and results.
- **Bookmakers by country**: `oddsCountry` decides which bookmakers you get (GB, US, DE, KE, NG, AU...).
- **Single matches**: paste Flashscore match URLs or IDs into `matchIds` to refresh only those.

### Related actors

- [Sports Odds Scraper](https://apify.com/scrapemint/sports-odds-scraper): US sportsbook odds for NFL, NBA, MLB, NHL
- [Pinnacle Odds Scraper](https://apify.com/scrapemint/pinnacle-odds-scraper): sharp lines from Pinnacle
- [Football xG Stats](https://apify.com/scrapemint/football-xg-stats): season xG tables for teams and players
- [Historical Football Odds](https://apify.com/scrapemint/historical-football-odds): 25 years of closing odds and results for backtesting

# Actor input Schema

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

Sports to pull: football, tennis, basketball, hockey, american-football, baseball, handball, rugby, rugby-league, volleyball, cricket, darts, snooker, esports, mma, boxing, golf, table-tennis, futsal, aussie-rules and more.

## `days` (type: `array`):

Days relative to today (UTC): 0 = today, -1 = yesterday, 1 = tomorrow. Flashscore keeps -7 to +7.

## `leagues` (type: `array`):

Keep only leagues whose name or country contains one of these, e.g. Premier League, ENGLAND, LaLiga, NBA, Champions League, ATP. Empty = every league.

## `teams` (type: `array`):

Keep only matches with one of these team or player names (partial match), e.g. Arsenal, Real Madrid, Sinner.

## `matchIds` (type: `array`):

Specific Flashscore matches: the 8-character ID or the match URL. Up to 500.

## `status` (type: `string`):

Which matches to keep.

## `includeStats` (type: `boolean`):

Add xG, xGOT, shots, possession, corners, cards, passes and every other stat Flashscore shows. Charged as match details.

## `includeOdds` (type: `boolean`):

Add opening and current odds from every bookmaker Flashscore lists for your country, plus the best price per outcome. Charged as match details.

## `oddsMarkets` (type: `array`):

HOME_DRAW_AWAY (1X2), HOME_AWAY (moneyline for tennis, basketball and other no-draw sports), OVER_UNDER, BOTH_TEAMS_TO_SCORE, ASIAN_HANDICAP, EUROPEAN_HANDICAP, DOUBLE_CHANCE, DRAW_NO_BET, CORRECT_SCORE, HALF_FULL_TIME, ODD_OR_EVEN. Empty = all.

## `oddsScope` (type: `array`):

FULL_TIME, FIRST_HALF, SECOND_HALF, FIRST_SET, SECOND_SET. Empty = all.

## `oddsCountry` (type: `string`):

Two-letter country code that decides which bookmakers are listed, e.g. GB, US, DE, KE, NG, AU.

## `includeEvents` (type: `boolean`):

Add the match timeline: minute, team, player and type of every goal, card and substitution. Charged as match details.

## `includeH2H` (type: `boolean`):

Add each team's last matches and their previous meetings. Charged as match details.

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

Cap on rows returned (earliest kick-off first). Controls cost.

## Actor input object example

```json
{
  "sports": [
    "football"
  ],
  "days": [
    "0"
  ],
  "leagues": [
    "ENGLAND: Premier League",
    "SPAIN: LaLiga",
    "ITALY: Serie A",
    "GERMANY: Bundesliga",
    "FRANCE: Ligue 1"
  ],
  "status": "all",
  "includeStats": false,
  "includeOdds": false,
  "oddsMarkets": [
    "HOME_DRAW_AWAY",
    "HOME_AWAY",
    "OVER_UNDER",
    "BOTH_TEAMS_TO_SCORE"
  ],
  "oddsScope": [
    "FULL_TIME"
  ],
  "oddsCountry": "GB",
  "includeEvents": false,
  "includeH2H": false,
  "maxMatches": 200
}
```

# Actor output Schema

## `results` (type: `string`):

One row per match.

## `summary` (type: `string`):

Matches found and returned.

# 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"
    ],
    "days": [
        "0"
    ],
    "leagues": [
        "ENGLAND: Premier League",
        "SPAIN: LaLiga",
        "ITALY: Serie A",
        "GERMANY: Bundesliga",
        "FRANCE: Ligue 1"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapemint/flashscore-scraper").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"],
    "days": ["0"],
    "leagues": [
        "ENGLAND: Premier League",
        "SPAIN: LaLiga",
        "ITALY: Serie A",
        "GERMANY: Bundesliga",
        "FRANCE: Ligue 1",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("scrapemint/flashscore-scraper").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"
  ],
  "days": [
    "0"
  ],
  "leagues": [
    "ENGLAND: Premier League",
    "SPAIN: LaLiga",
    "ITALY: Serie A",
    "GERMANY: Bundesliga",
    "FRANCE: Ligue 1"
  ]
}' |
apify call scrapemint/flashscore-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapemint/flashscore-scraper"
        }
    }
}
```

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/tg5x8uNNallFD2ZkU/builds/KaBbC8YTRODKmkMrK/openapi.json
