# Flashscore Scraper (`nanodata/flashscore-scraper`) Actor

Collect matches from Flashscore for football, tennis, basketball, hockey and more. Start time, status, teams, scores and period scores per match, for any day from a week back to a week ahead. Pay per match.

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

## Pricing

from $1.00 / 1,000 match delivereds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

Collect matches from Flashscore. Pick one or more sports and the days you want, from a week back to a week ahead. Each row is one match with its start time, status, home and away side, score, and the score per set, period or half when the source shows it. You pay per match delivered.

The data comes from the public live-score feed that the [Flashscore](https://www.flashscore.com/) website itself loads. No account and no API key are needed.

### What you get

For each match the actor returns one row with:

- `matchId`, `url`: the match id and its Flashscore page
- `sport`, `sportId`: the sport name and the number the source uses for it
- `country`, `category`, `league`, `leagueFull`, `leagueId`, `leagueStageId`, `leagueUrl`: where the match is played. Football and similar sports have a country. Tennis has a tour such as ATP - Singles in `category`
- `startTime` (ISO 8601, UTC) and `startTimestamp` (Unix seconds)
- `status`: `scheduled`, `live`, `finished`, `postponed` or `cancelled`. `statusDetail` adds the stage, for example `1st half`, `set 2`, `after penalties`, `retired` or `walkover`. `statusCode` is the source's own stage number
- `homeName`, `homeId`, `homeShortName`, `homeSlug`, `homeCountry` and the same for `away`. For tennis, `homePlayers` and `awayPlayers` list the players, two for doubles
- `homeScore`, `awayScore`: the score. For tennis and volleyball this is sets won
- `winner`: `home`, `away` or `draw` once the match is finished
- `periods`: score per set, period or half, with `tiebreakHome` and `tiebreakAway` for tennis tiebreaks
- `penaltyHome`, `penaltyAway`: a penalty shootout, when there was one
- `liveGameHome`, `liveGameAway`, `server`: tennis, while the match is live
- `note`: a note shown with the match, for example the first leg result
- `dayOffset`: which day request returned the match. `scrapedAt`: when the row was collected
- `raw`: other fields the source sends that have no named column, as text values

A value the source does not show is null. A match that has not started has no score.

### Typical uses

- Build a fixture list for a league or a whole day
- Collect final results for a spreadsheet or a database
- Track live scores by running the actor on a schedule
- Compare results across sports for one day

### Pricing

You pay per match delivered, plus a small fee for each run.

| Event | Name | Price |
|---|---|---|
| Run start (charged once, together with the first delivered row) | `actor-start` | $0.001 per run |
| One match row | `match-result` | $0.001 per match ($1.00 per 1,000) |

A run that finds nothing is not charged. If you set a maximum cost for the run, the actor stops cleanly once the next row would go over it.

**New to Apify?** Every account gets a $5 free monthly platform credit, enough for a first test run before you pay anything.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `sports` | list | `football` | `football`, `tennis`, `basketball`, `hockey`, `americanFootball`, `baseball`, `handball`, `rugbyUnion`, `volleyball`, `cricket` |
| `days` | list | `0` | Day offsets from today: `0` today, `1` tomorrow, `-1` yesterday. From -7 to 7 |
| `leagues` | list | empty | Keep matches whose country, league or tour contains one of these words |
| `status` | list | empty | Keep only these statuses: `scheduled`, `live`, `finished`, `postponed`, `cancelled` |
| `maxItems` | number | 200 | Maximum matches in total, up to 10,000 |

How it works:

- Each sport and day is one page of results. A busy football day holds several hundred matches.
- A match that shows on two days is delivered once.
- `leagues` and `status` filter the rows after they are read, so a narrow filter still reads the whole page.
- Number fields also accept numbers written as text, for example `"50"`.
- Started with no input, the actor returns up to 200 football matches for today.

#### Example: football today and tomorrow

```json
{
  "sports": ["football"],
  "days": [0, 1],
  "maxItems": 500
}
```

#### Example: tennis results from yesterday

```json
{
  "sports": ["tennis"],
  "days": [-1],
  "status": ["finished"]
}
```

#### Example: one league across sports

```json
{
  "sports": ["football", "basketball"],
  "days": [0],
  "leagues": ["Spain", "NBA"]
}
```

### Output sample

```json
{
  "matchId": "ObrLKTtI",
  "url": "https://www.flashscore.com/match/ObrLKTtI/",
  "sportId": 2,
  "sport": "tennis",
  "country": null,
  "category": "ATP - Singles",
  "league": "Paris (France), hard (indoor)",
  "leagueFull": "ATP - SINGLES: Paris (France), hard (indoor)",
  "leagueId": "QcJ1dum9",
  "leagueStageId": "pOtlc1qr",
  "leagueUrl": "https://www.flashscore.com/tennis/atp-singles/paris/",
  "startTime": "2026-11-06T22:15:00Z",
  "startTimestamp": 1794003300,
  "status": "finished",
  "statusDetail": "finished",
  "statusCode": 3,
  "homeName": "Ruud C.",
  "homeId": "OzEet0a3",
  "homeShortName": "RUU",
  "homeSlug": "ruud-casper",
  "homeCountry": "Norway",
  "homePlayers": ["Ruud C."],
  "awayName": "Borges N.",
  "awayId": "AiC3vvUF",
  "awayShortName": "BOR",
  "awaySlug": "borges-nuno",
  "awayCountry": "Portugal",
  "awayPlayers": ["Borges N."],
  "homeScore": 2,
  "awayScore": 0,
  "winner": "home",
  "periods": [
    { "period": 1, "label": "set 1", "home": 7, "away": 6, "tiebreakHome": 7, "tiebreakAway": 5 },
    { "period": 2, "label": "set 2", "home": 6, "away": 4, "tiebreakHome": null, "tiebreakAway": null }
  ],
  "penaltyHome": null,
  "penaltyAway": null,
  "liveGameHome": null,
  "liveGameAway": null,
  "server": null,
  "note": null,
  "dayOffset": 0,
  "scrapedAt": "2026-11-07T14:30:00Z",
  "raw": { "AO": "1794008684", "RW": "0" }
}
```

### Limitations

- The actor reads the feed for one sport and one day at a time. Only the days from -7 to +7 and the ten listed sports are available.
- The feed gives the match list and scores. It does not give lineups, statistics, odds, commentary or standings.
- Scores and statuses change while matches are played. A row shows the values at `scrapedAt`. Run the actor again for fresh values.
- The source's calendar day decides which matches belong to a day offset. A match near midnight can show on two days; the actor delivers it once.
- Status details such as `retired` or `postponed` come from the source's stage numbers. A stage number the actor does not know is still shown in `statusCode`, with a general `statusDetail`.
- The `raw` field holds the source's own short field names. Their meaning can change without notice.
- The source limits how often it can be asked. The actor waits between pages and stops cleanly with a clear status when the source keeps refusing, and only delivered rows are charged.
- The source can change its request format. When that happens the run stops with a status that says so, and nothing is charged.

### FAQ

**Do I need a Flashscore account or key?**
No. The actor reads the same public feed as the website.

**How many matches does one run return?**
As many as the selected sports and days hold, up to `maxItems`. A football day usually has several hundred matches.

**Why did I get fewer rows than `maxItems`?**
The sports and days hold fewer matches, your filters removed some, or the maximum cost you set for the run was reached. The run status message says which.

**Can I get live scores?**
Yes, set `status` to `live` and run on a schedule. Each run is a snapshot.

**Why is a score empty?**
The match has not started, was postponed or cancelled, or ended as a walkover.

**Can a run be restarted safely?**
Yes. Progress is saved after every batch. A restarted run continues where it stopped and does not deliver or charge the same rows twice.

### Use with AI agents (MCP)

Connect this actor to any MCP-compatible AI client, such as Claude Desktop, Cursor, VS Code, LangChain or LlamaIndex.

**MCP server URL:**

```
https://mcp.apify.com?tools=nanodata/flashscore-scraper
```

**Example prompt once connected:**

> "Use `flashscore-scraper` to list today's football matches with start time, teams and score. Return results as a table."

### Related Actors

- [Transfermarkt Scraper: Football Players and Market Values](https://apify.com/santamaria-automations/transfermarkt-scraper): Read the public Transfermarkt player lists: the valuable players, the valuable players of a competition or the squad of a club.
- [Kalshi Markets Scraper](https://apify.com/nanodata/kalshi-markets-scraper): Collect Kalshi prediction markets: prices, volume, open interest, rules, close times and category.
- [Polymarket Markets Scraper](https://apify.com/nanodata/polymarket-markets-scraper): Get Polymarket prediction markets with outcome prices, volume, liquidity, bid and ask, dates, tags and event data.

### Support

Found a problem or need a field added? Open an issue on the [Issues tab](https://apify.com/nanodata/flashscore-scraper/issues). We usually reply within one business day. You can also email contact@nanoscrape.com.

# Actor input Schema

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

Which sports to read: football, tennis, basketball, hockey, americanFootball, baseball, handball, rugbyUnion, volleyball or cricket. Empty means football.

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

Day offsets from today as a list of numbers, for example \[0, 1]: 0 is today, 1 is tomorrow, -1 is yesterday. Allowed from -7 to 7. Each sport and day is one page of results.

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

Optional. Keep only matches whose country, league or tour contains one of these words, for example Premier League or Germany. Empty keeps all.

## `status` (type: `array`):

Optional. Keep only matches with these statuses: scheduled, live, finished, postponed, cancelled. Empty keeps all.

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

Maximum number of matches in total. Default 200.

## Actor input object example

```json
{
  "sports": [
    "football"
  ],
  "days": [
    0,
    1
  ],
  "maxItems": 200
}
```

# Actor output Schema

## `defaultDataset` (type: `string`):

One row per match

# 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,
        1
    ]
};

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

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

```

## MCP server setup

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