# Flashscore Scraper – Live Scores, Results & Fixtures by Sport (`budoucnost-ai/flashscore-scraper`) Actor

Fixtures, live scores and results from Flashscore for football, tennis, basketball, hockey and 20 more sports, straight from the data feed. Period scores, tiebreaks, status, TV channels; add-ons: match summary with goals/cards, statistics, head-to-head, tennis point-by-point. Dedupe and 24 h cache.

- **URL**: https://apify.com/budoucnost-ai/flashscore-scraper.md
- **Developed by:** [Budoucnost AI](https://apify.com/budoucnost-ai) (community)
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.90 / 1,000 match scrapeds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 Scraper – live scores, results and fixtures for 21 sports

Get every match Flashscore lists for a sport and a day – fixtures, live scores and final results – as clean JSON, straight from the same data feed the Flashscore website uses. No browser, no HTML parsing, no residential proxies: the actor is fast, cheap and does not break when the page layout changes.

Football, tennis, basketball, ice hockey, American football, baseball, handball, volleyball, cricket, darts, snooker, badminton, table tennis, esports and more are covered with one actor and one output format. Optional add-ons return the match summary (goals, cards, substitutions, referee, venue), full match statistics, head-to-head history and, for tennis, the complete point-by-point record of every game.

### What you get

One dataset item per unique match:

| Field | Example |
|-------|---------|
| `id`, `url` | `nXaLgXBD`, `https://www.flashscore.com/match/nXaLgXBD/#/match-summary` |
| `sport`, `sportId` | `tennis`, `2` |
| `startTime`, `startTimestamp` | `2026-11-11T12:00:00.000Z` (ISO 8601, UTC), `1794398400` |
| `stage` | `scheduled`, `live` or `finished` |
| `status`, `statusCode` | `set 2` / `18`, `finished` / `3`, `postponed` / `4`, `walkover` / `9` … |
| `tournament` | `{ name: "ATP - SINGLES: Stockholm (Sweden), hard (indoor)", category: "ATP - Singles", country, id, stageId, url, isTopLeague }` |
| `home`, `away` | `{ id, name, shortName, slug, country, countryId, logo, url }` |
| `score` | `{ home: 6, away: 7 }` – sets in tennis, goals in football, points in basketball |
| `periods` | `[ { period: 1, home: 16, away: 29 }, … ]` – sets, halves, quarters or periods |
| `tiebreaks` | `[ { period: 1, home: 3, away: 7 } ]` (tennis) |
| `winner`, `serving`, `isLive`, `note` | `away`, `home`, `true`, `"Andrade Andres - withdrawn."` |
| `lastUpdated` | time of the last score change |
| `tvChannels` | `[ { name: "beIN Sports 2 (Aus)", url } ]` |
| `foundOnDays`, `scrapedAt` | which day feeds the match appeared in, scrape time |

With the add-ons switched on, the item also carries:

- `summary` – period scores with durations, total match duration, `incidents` (goals, cards, substitutions, penalties… with minute, side, player, player id/URL, running score), `info` (referee, venue, town, capacity, attendance) and the TV channel list.
- `stats` – every statistic Flashscore shows for the match, grouped: `{ scope: "Match", group: "Service", name: "Aces", home: "5", away: "1" }`, or ball possession, shots, corners, fouls in team sports.
- `h2h` – sections "Last matches: <home>", "Last matches: <away>", "Head-to-head matches", each with date, competition, surface (tennis), both names, score, win/loss from the participant's view and the match URL.
- `pointByPoint` (tennis) – every game of every set with the games score after it, server, game winner, break-point markers and the point sequence (`"15:0, 30:0, 30:15, 30:30, 30:40 |B1|"`).

Failed detail requests still store the base match row (without details, not charged for details). Day-feed errors are stored as `{ sport, day, url, error }` rows.

### Input

| Field | Default | Description |
|-------|---------|-------------|
| `sports` | `["tennis","football"]` | Any of the 21 sports (names or Flashscore ids). Aliases such as `soccer`, `ice hockey` work. |
| `days` | `["0"]` | Day offsets from today in UTC (`-1`, `0`, `1` …, Flashscore keeps -7 to +7) or dates `YYYY-MM-DD`. |
| `dateFrom` / `dateTo` | – | Date range alternative to `days`. |
| `leagues` | – | Regex on competition name, category and country – `ATP|WTA`, `Premier League`, `^CZECH`. |
| `liveOnly` / `finishedOnly` | `false` | Only in-progress matches, or only results. |
| `matchIds` | – | Specific match ids or URLs; the selected sports/days are scanned and only these matches returned. |
| `includeSummary`, `includeStats`, `includeH2H`, `includePointByPoint` | `false` | Add-ons, one extra feed request each per match. |
| `maxItems` | `100` | Stop after this many saved matches. |
| `excludeIds` | – | Match ids you already have – skipped before any request, never charged. |
| `includeRegex` / `excludeRegex` | – | Regex on competition, category, country, participants and status: `Djokovic|Alcaraz`, `U19|Women|Doubles`. |
| `cacheHours` | `24` | Details of finished matches are cached in the key-value store `flashscore-cache` in your account and reused for this long. |
| `useSharedCache` | `true` | Also reuse details of finished matches that any user fetched within `cacheHours` (see Shared cache). |
| `maxConcurrency`, `requestDelayMs` | `5`, `200` | Politeness settings. |
| `feedSign` | – | Advanced: override the feed signature header if Flashscore changes it (see Maintenance). |
| `proxyConfiguration` | Apify datacenter proxy | Residential proxies are not needed. |

Example – all live tennis matches with statistics and point by point:

```json
{
    "sports": ["tennis"],
    "days": ["0"],
    "liveOnly": true,
    "includeStats": true,
    "includePointByPoint": true,
    "leagues": "ATP|WTA"
}
```

Example – yesterday's football results of the big leagues with goals and cards:

```json
{
    "sports": ["football"],
    "days": ["-1"],
    "finishedOnly": true,
    "includeSummary": true,
    "leagues": "ENGLAND: Premier League|SPAIN: LaLiga|GERMANY: Bundesliga|ITALY: Serie A|FRANCE: Ligue 1",
    "excludeRegex": "Women|U21|U19|Reserve"
}
```

Example – full week of fixtures for ice hockey and basketball, nothing else:

```json
{ "sports": ["hockey", "basketball"], "dateFrom": "2026-11-11", "dateTo": "2026-11-17" }
```

### Server API (instant results, no run to start)

This actor is also a **Server Actor**: send one HTTP request and get the results straight back in the response – for apps, dashboards, workflow tools and AI agents (Apify MCP server). Up to 3 sports, 3 days and 300 matches per request – a livescore API. Use a normal run for larger batches.

```bash
curl -H "Authorization: Bearer $APIFY_TOKEN" \
  "https://budoucnost-ai--flashscore-scraper.apify.actor/?sport=football&day=0"
```

Query parameters are the input fields (see the **Server** tab); `POST /` accepts the actor input as JSON. The response is `{"rows": [...]}` with rows in the same shape as the dataset. Same events and prices as runs.

### Pricing

The actor is pay-per-event. You pay for matches that were saved to the dataset; filtered-out matches, duplicates across days and sports, excluded ids, cached details and failed requests are free. Compute, proxy and storage are included.

| Event | Price | When |
|-------|-------|------|
| Match scraped | **$0.0009** | one per unique match saved (fixture, live score or result) |
| Match details | $0.002 | once per match when at least one add-on (summary, statistics, head-to-head, point by point) returned data – regardless of how many add-ons you enabled |
| Actor start | $0.00005 | once per run |

Examples: today's full tennis schedule (≈ 500 matches) costs about $0.45; yesterday's Premier League results with goals and cards (10 matches) about $0.03; a season of one hockey league scraped day by day (≈ 1 000 matches with statistics) about $2.90. A typical competitor charges $0.008 per match for tennis alone; here every sport is $0.0009.

The free plan's monthly credit covers about 5 000 matches per month.

### Why this actor

- **Feed, not HTML.** Flashscore renders its pages from a compact text feed. Reading that feed directly is 50–100× lighter than a headless browser, works with datacenter proxies and survives redesigns of the website.
- **Every sport, one schema.** The same item shape for tennis sets, hockey periods and basketball quarters, with ISO timestamps in UTC and stable Flashscore ids for matches, participants and competitions – easy to join with your own data or to feed to an AI agent.
- **Filters before requests.** `leagues`, `includeRegex`, `excludeRegex`, `excludeIds`, `liveOnly`, `finishedOnly` and `matchIds` run on the list rows, so the actor never asks for details it will throw away and you never pay for them.
- **Cache.** Statistics of finished matches do not change; they are kept for `cacheHours` (24 h by default, up to a year) in your account and reused by later runs free of charge.

### Shared cache

Finished matches are the same for everyone, so their add-on details (summary, statistics, head-to-head, point-by-point) are also kept in a cache shared by all users of this actor. When your run needs details of a finished match that another run fetched recently, they are served from that cache instead of Flashscore: faster, and the `match-stats` add-on is not charged for it. Rules:

- Only finished matches and only add-on details are shared – never live or scheduled matches, never the day feeds.
- `cacheHours` is honoured: nothing older than your setting is served, and nothing is kept longer than 14 days.
- The cache holds exactly the data every user receives; nothing about you or your input is stored.
- Opt out with `useSharedCache: false` or `cacheHours: 0`.
- **Dedupe.** A match shown on two day feeds (late-night starts) or seen in two runs of the same input is stored once; `foundOnDays` tells you where it appeared.
- **Honest failures.** Refused requests rotate the session and retry; twelve refusals in a row stop the run so you are not charged for empty output. Failed details still give you the base row.
- **Agent friendly.** Output schema and dataset views are defined, inputs are plain JSON, and the README explains every field – ready for the Apify MCP server and for AI agents that look for sports data.

### Use cases

- Sports betting research and model training: results, period scores, point-by-point momentum, head-to-head history.
- Live score widgets, bots and alerts (`liveOnly`, run every few minutes or use a schedule).
- Fixture calendars for apps, newsletters and TV listings (`tvChannels`).
- Analytics on competitions, players and teams across countries – fetch a week of a sport in one run.
- Media monitoring: which matches are on, who won, with venue and referee data for match reports.

### Limits and notes

- Flashscore's day feeds cover seven days back and seven days ahead. For older results use the head-to-head add-on (last matches of each participant) or run the actor daily and keep the dataset.
- Betting odds are not part of the match feed and are not returned.
- Day boundaries are UTC. A match that starts at 00:30 local time may belong to the previous UTC day; select both days if you need to be sure – duplicates are removed automatically.
- Point-by-point exists for tennis (and some racket sports) only; other sports return `null` for it without charge.
- Flashscore ids are stable; use `excludeIds` with ids from earlier runs to fetch only new matches.

### Maintenance

The feed requires an `x-fsign` request header. Its value has been constant for years and is built into the actor; should Flashscore ever change it, the actor reports "refused the feed request" and stops after twelve failures. Open flashscore.com, look at any `/x/feed/` request in the browser's network panel, copy the header value into the `feedSign` input and the actor works again without a new build. The maintainer monitors the actor and updates the built-in value.

### Legal

The actor reads publicly available sports data that Flashscore shows to every visitor, without logging in or bypassing any access control. Scores and fixtures are facts and are not copyrighted; team and competition names and logos belong to their owners. Respect Flashscore's terms of use and the rate limits set by the default input, and do not redistribute the data in a way that competes with the source. You are responsible for how you use the data.

### Support

Open an issue in the Issues tab of the actor or contact the author. The actor is maintained by Budoucnost AI; feature requests (more sports, odds, lineups, standings) are welcome.

# Actor input Schema

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

Sports to scrape. Every selected sport is read for every selected day.

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

Which days to read, one per line: an offset from today in UTC (-1 = yesterday, 0 = today, 1 = tomorrow; Flashscore keeps -7..7) or a date YYYY-MM-DD. Default: today. Matches starting on the same calendar day (UTC) appear once even when several days are selected.

## `dateFrom` (type: `string`):

Optional first day of a range (YYYY-MM-DD, within -7..+7 days from today), combined with Days.

## `dateTo` (type: `string`):

Optional last day of a range (YYYY-MM-DD).

## `leagues` (type: `string`):

Case-insensitive regular expression matched against the competition name, its category (e.g. "ATP - Singles", "WTA - Doubles", "Austria") and country. Examples: "ATP|WTA", "Premier League|La Liga", "^CZECH REPUBLIC". Only matching competitions are returned – a cheap way to keep runs small.

## `liveOnly` (type: `boolean`):

Return only matches that are in progress right now.

## `finishedOnly` (type: `boolean`):

Return only finished matches (results).

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

Flashscore match ids (8 characters, e.g. nXaLgXBD) or match URLs. The actor scans the selected sports and days (-7..7 when Days is empty) and returns only these matches. Useful for refreshing a few matches with statistics.

## `includeSummary` (type: `boolean`):

Period scores with durations, goals, cards, substitutions and other incidents with players, referee, venue, attendance, TV channels. One extra request per match; charged as "match details" together with the other add-ons (once per match).

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

Match statistics (possession, shots, aces, break points … depending on the sport). One extra request per match.

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

Last matches of both participants and their mutual matches with dates, competitions and scores. One extra request per match.

## `includePointByPoint` (type: `boolean`):

Game-by-game point sequence of every set, server and break points. One extra request per match; empty for sports without it.

## `maxItems` (type: `integer`):

Stop after this many matches have been saved. Counts unique matches after filters.

## `excludeIds` (type: `array`):

Match ids you already have; they are skipped before any detail request and never charged.

## `includeRegex` (type: `string`):

Only matches whose text (competition, category, country, both participants and their countries, status) matches this case-insensitive regular expression are returned. Example: "Djokovic|Alcaraz", "Czech Republic".

## `excludeRegex` (type: `string`):

Matches whose text matches this regular expression are skipped. Example: "U19|U21|Women|Doubles|ITF".

## `cacheHours` (type: `integer`):

Summary, statistics, head-to-head and point-by-point of finished matches are kept in the key-value store "flashscore-cache" in your account and reused for this many hours, so repeated runs do not request (or pay for) them again. 0 disables the cache.

## `useSharedCache` (type: `boolean`):

Details of finished matches fetched by any user of this actor within `cacheHours` are reused (free of the add-on charge, never older than cacheHours, at most 14 days). Set false, or cacheHours to 0, to always fetch fresh data.

## `maxConcurrency` (type: `integer`):

Parallel feed requests. Keep it modest; the feed is fast anyway.

## `requestDelayMs` (type: `integer`):

Average pause before every request, randomised ±50 %.

## `feedSign` (type: `string`):

Value of the x-fsign header the Flashscore feed requires. Leave empty to use the built-in value; set it only if the actor reports refused requests and the README's maintenance notes give a new value.

## `proxyConfiguration` (type: `object`):

Datacenter Apify Proxy is enough for the feed; residential proxies are not needed.

## Actor input object example

```json
{
  "sports": [
    "tennis",
    "football"
  ],
  "days": [
    "0"
  ],
  "liveOnly": false,
  "finishedOnly": false,
  "includeSummary": false,
  "includeStats": false,
  "includeH2H": false,
  "includePointByPoint": false,
  "maxItems": 100,
  "cacheHours": 24,
  "useSharedCache": true,
  "maxConcurrency": 5,
  "requestDelayMs": 200,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `matches` (type: `string`):

No description

# 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": [
        "tennis",
        "football"
    ],
    "days": [
        "0"
    ],
    "maxItems": 100,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("budoucnost-ai/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": [
        "tennis",
        "football",
    ],
    "days": ["0"],
    "maxItems": 100,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("budoucnost-ai/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": [
    "tennis",
    "football"
  ],
  "days": [
    "0"
  ],
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call budoucnost-ai/flashscore-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,budoucnost-ai/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/c03G3Cz5QZ7eVphfl/builds/vYVV6bcfIsVH6sajE/openapi.json
