# Flashscore Scraper: Football, Basketball, Hockey & 9 More (`datasmithlab/flashscore-scraper`) Actor

Results, live scores and fixtures from Flashscore for football, basketball, hockey, handball, volleyball, baseball, American football, futsal, darts, table tennis, water polo and esports: half-time and period scores, goals and cards, match statistics and head-to-head. No proxy.

- **URL**: https://apify.com/datasmithlab/flashscore-scraper.md
- **Developed by:** [Datasmithlab](https://apify.com/datasmithlab) (community)
- **Categories:** Sports
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.60 / 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: Football, Basketball, Hockey & 9 More

Results, live scores and fixtures from [Flashscore](https://www.flashscore.com/) for **12 sports**, with the details other scrapers leave out: **half-time and period scores, goals and cards with minute and player, match statistics and head-to-head**.

No proxy, no browser. One request per sport and day.

### Sports

Football (soccer) · Basketball · Ice hockey · Handball · Volleyball · Baseball · American football · Futsal · Darts · Table tennis · Water polo · Esports

For tennis (with tiebreaks and point-by-point) use our **Flashscore Tennis Scraper**.

### What you get

- **Every match of the day** in the selected sports, all countries and leagues Flashscore covers.
- **Scores the way each sport keeps them.** Football: final and half-time score. Basketball: each quarter and overtime. Hockey: each period. Volleyball: each set's points.
- **How it ended.** `resultType`: normal, after-overtime, after-penalties, cancelled, awarded, plus Flashscore's note (e.g. aggregate scores in two-legged ties).
- **Optional match details** (charged separately, only when you turn them on and they exist):
  - **Events**: goals, cards and other incidents with minute, side and player.
  - **Statistics**: possession, shots, corners, fouls and more. Coverage varies by league; smaller leagues may have none.
  - **Head-to-head and recent form**: earlier meetings and each team's last matches, up to 100 per list.
- **Only new results.** Schedule it and get each finished match once. Scheduled and live matches keep coming until they finish; a finished match whose requested details weren't available yet comes again on the next run.
- **Reports**: `DAYS` (matches per sport and day) and `HEALTH`. If Flashscore changes its format, the run fails with a clear message instead of returning an empty dataset.

### Input

| Field | What it does |
|---|---|
| Sports | One or more of the 12 sports |
| Days back / Days ahead | Flashscore keeps **7 days back** and **2 days ahead**. Days are UTC |
| Match status | finished, live, scheduled |
| Countries / regions, Leagues, Teams | Narrow down, e.g. `England`, `Premier League`, `Arsenal` |
| Match events / statistics / head-to-head | Optional details, one extra request each per match |
| Only new results since last run | Each finished match once |
| Max matches | Hard stop for what you pay |

### Output example

```json
{
  "id": "flashscore:K8pWLjUI",
  "sport": "football",
  "country": "England", "league": "Isthmian League Premier Division",
  "startTime": "2026-10-05T18:45:00Z",
  "status": "finished", "resultType": "normal",
  "homeTeam": "Carshalton", "awayTeam": "Eastbourne Boro",
  "homeScore": 0, "awayScore": 4, "halftimeHome": 0, "halftimeAway": 2,
  "winner": "away",
  "events": [{"period": "1st Half", "minute": "13'", "type": "Goal", "side": "away", "player": "Egbri T."}],
  "url": "https://www.flashscore.com/match/K8pWLjUI/#/match-summary"
}
```

### Good to know

- **Odds and lineups are not included.**
- **Live scores are snapshots.** Schedule the Actor to poll.
- **Names** are as Flashscore shows them. Referee names and other personal data are not collected; player names appear only in match events.
- **Polite by design.** One request at a time with a pause in between.

### Pricing

- **Match**: one event per match returned.
- **Match details**: one extra event per match for which you turned on events, statistics or head-to-head and at least one of them was available.

### Feedback

Missing a sport, field or filter? Open an issue on this Actor's page. We read every one and reply.

*Not affiliated with or endorsed by Flashscore or Livesport.*

# Actor input Schema

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

One or more sports. For tennis use our Flashscore Tennis Scraper.

## `daysBack` (type: `integer`):

Matches from up to 7 days ago (days are UTC).

## `daysAhead` (type: `integer`):

Scheduled matches up to 2 days ahead.

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

Leave empty for all. Live matches are a snapshot at run time.

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

As Flashscore names them, e.g. England, Spain, Europe, World.

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

Keep leagues whose name contains any of these, e.g. Premier League, NBA, Champions League.

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

Keep matches where a team name contains any of these, e.g. Arsenal, Lakers.

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

Goals, cards and other incidents with minute and player.

## `includeStatistics` (type: `boolean`):

Possession, shots, corners, fouls and more (varies by sport and league; smaller leagues may have none).

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

Previous meetings of the two teams and each team's last matches.

## `h2hLimit` (type: `integer`):

Rows in each head-to-head and recent-form list (up to 100).

## `onlyNewResults` (type: `boolean`):

Finished matches already returned with the same filters are skipped. Scheduled and live matches are always returned.

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

Hard stop: you are never charged for more matches than this.

## Actor input object example

```json
{
  "sports": [
    "football"
  ],
  "daysBack": 1,
  "daysAhead": 0,
  "leagues": [
    "Premier League"
  ],
  "includeEvents": false,
  "includeStatistics": false,
  "includeH2H": false,
  "h2hLimit": 10,
  "onlyNewResults": false,
  "maxItems": 100
}
```

# Actor output Schema

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

Matches table (JSON/CSV/Excel export).

## `allFields` (type: `string`):

Every field, including periods, events, statistics and head-to-head.

## `days` (type: `string`):

Matches read per sport and day.

## `health` (type: `string`):

Matches by sport and status, details fetched or missing, empty-field ratios.

# 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"
    ],
    "daysBack": 1,
    "leagues": [
        "Premier League"
    ],
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("datasmithlab/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"],
    "daysBack": 1,
    "leagues": ["Premier League"],
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("datasmithlab/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"
  ],
  "daysBack": 1,
  "leagues": [
    "Premier League"
  ],
  "maxItems": 100
}' |
apify call datasmithlab/flashscore-scraper --silent --output-dataset

```

## MCP server setup

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