# Flashscore Scraper - Live Scores, Results, Fixtures, Stats (`centorprat/flashscore-scraper`) Actor

Scrape Flashscore live scores, results and fixtures for 25 sports (football, tennis, basketball, hockey...) for any day -7..+7, by league, country or team: scores, period/set scores, goals and cards timeline, match statistics. No login.

- **URL**: https://apify.com/centorprat/flashscore-scraper.md
- **Developed by:** [Centor Prat](https://apify.com/centorprat) (community)
- **Categories:** Automation, News, Developer tools
- **Security:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.68 / 1,000 matches

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 Scraper - Live Scores, Results, Fixtures, Stats

**Scrape Flashscore** for **25 sports**: football (soccer), tennis, basketball, hockey, baseball, American football,
handball, volleyball, rugby, cricket, darts, snooker, table tennis, esports and more. Pick sports and days (from
**7 days ago to 7 days ahead**), filter by **league / competition**, **country**, **team or player** and **status**
(scheduled, live, finished, postponed, cancelled), and get one row per match: competition, country, start time,
status, home / away (teams or players), **score**, **period / half / set scores**, logos and the match URL.

With **match details** on (live and finished matches): the **timeline** of goals, cards and substitutions with minute,
player and team, half / period / set scores, and the **match statistics** (football: possession, shots, shots on
target, corners, cards...; tennis: aces, double faults, break points...).

### 📥 Input

| Field | Meaning |
|---|---|
| `sports` | e.g. `["football", "tennis"]` |
| `days` | day offsets, e.g. `[-1, 0, 1]` |
| `leagues`, `countries`, `teams`, `statuses` | filters |
| `includeDetails`, `includeStats` | timeline and statistics |
| `maxMatches` | cap |

```json
{ "sports": ["football"], "days": [-1], "leagues": ["Premier League", "LaLiga", "Serie A"], "includeDetails": true }
```

### 📤 Output (one match, shortened)

```json
{ "sport": "football", "competition": "ENGLAND: Premier League", "country": "England", "startTime": "2026-10-22T19:00:00+00:00",
  "status": "finished", "home": "Arsenal", "away": "Chelsea", "homeScore": 2, "awayScore": 1,
  "periodScores": [{"period": "1st Half", "home": 1, "away": 0}, {"period": "2nd Half", "home": 1, "away": 1}],
  "goals": [{"minute": "21'", "team": "home", "type": "Goal", "player": "Saka B."}],
  "stats": {"Ball possession": {"home": "56%", "away": "44%"}, "Total shots": {"home": "17", "away": "8"}},
  "url": "https://www.flashscore.com/match/.../#/match-summary" }
```

### 💡 Uses

- **Betting and trading models**: results, scores and stats for backtests; live status for in-play monitoring.
- **Sports media and apps**: fixtures and results feeds for any league.
- **Fantasy and analytics**: goal scorers, cards and team stats per match.

### 💰 Pricing

Pay per match returned (`match` event), details and statistics included. Empty searches are free.

### 🤖 API / agents

```bash
curl -X POST "https://api.apify.com/v2/acts/centorprat~flashscore-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
     -H "Content-Type: application/json" -d '{"sports": ["tennis"], "days": [0], "statuses": ["live"]}'
```

MCP: `https://mcp.apify.com/?tools=actors,docs,centorprat/flashscore-scraper`

### ❓ FAQ

- **Login needed?** No. Public score data.
- **Further back than 7 days?** Flashscore's daily feeds cover today ±7 days; schedule the actor daily to build history.

# Actor input Schema

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

Sports to scrape.

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

Day offsets from today (UTC): 0 = today, -1 = yesterday, 1 = tomorrow ... from -7 to 7. E.g. \[-1, 0, 1].

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

Keep matches whose competition contains any of these, e.g. \["Premier League", "LaLiga", "ATP", "NBA"]. Empty = all.

## `countries` (type: `array`):

Keep these countries / regions as Flashscore names them, e.g. \["England", "Spain", "Europe", "World"].

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

Keep matches of these teams or players (name contains), e.g. \["Arsenal", "Djokovic"].

## `statuses` (type: `array`):

Keep matches with these statuses.

## `includeDetails` (type: `boolean`):

For live and finished matches: goals / cards / substitutions timeline with minute and player, and half / period / set scores.

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

With details: possession, shots, corners, cards (football) or aces, double faults (tennis)...

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

Total cap for the run.

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

Not needed normally.

## Actor input object example

```json
{
  "sports": [
    "football"
  ],
  "days": [
    0
  ],
  "includeDetails": false,
  "includeStats": true,
  "maxMatches": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

One row per match: sport, competition, country, start time, status, teams/players, score, period scores, and (details) incidents and statistics.

# 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
    ],
    "maxMatches": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("centorprat/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],
    "maxMatches": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("centorprat/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
  ],
  "maxMatches": 30
}' |
apify call centorprat/flashscore-scraper --silent --output-dataset

```

## MCP server setup

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