# Flashscore API Scraper (`rl1987/flashscore-api-scraper`) Actor

Scrapes fixtures, results and live scores, league standings and full match detail (lineups, incidents, per-match statistics) from the Flashscore mobile API. Read-only public sports data.

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

## Pricing

from $0.50 / 1,000 matches

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Flashscore Scraper 🗂️ — Scrape Flashscore.com Type, Event ID, Sport, Competition

**Flashscore Scraper** — Scrapes fixtures, results and live scores, league standings and full match detail (lineups, incidents, per-match statistics) from the Flashscore mobile API. Read-only public sports data. It reads Flashscore's own API directly, so it's **fast, reliable and complete** — no flaky HTML parsing, no headless browser. Export to **JSON, CSV, Excel, or an API**.

***

### ✨ Why use this Flashscore Scraper?

- 🟢 **No code required** — set your input, click **Start**, download your data.
- ⚡ **Fast & accurate** — reads Flashscore's own private API and returns structured JSON, not scraped HTML.
- 🧾 **Rich, structured data** — every field below, clean and ready to use.
- 🔁 **Full pagination** — collects results to your `maxItems` cap.
- 💸 **Transparent pay-per-result pricing** — pay only for the rows you get.
- 📤 **Export anywhere** — JSON, CSV, Excel, XML, or pull it live via the Apify API.

***

### 🎯 What can you do with Flashscore data?

- **Market & competitor research** — analyse Flashscore records at scale.
- **Price & availability monitoring** — track changes over time.
- **Data science & trend analysis** — build clean datasets.
- **Lead generation & enrichment** — feed Flashscore data into your own tools.

***

### 📥 What data does the Flashscore Scraper extract?

Each row includes: `type`, `id`, `sport`, `competition_name`, `competition_id`, `competition_country`, `competition_stage_id`, `competition_tournament_id`, `competition_path`, `home_team`, `away_team`, `home_score`, `away_score`, `status` …and more. See the full **Data table** below.

***

### 🚀 How to scrape Flashscore.com (3 steps)

1. **Set your input** — provide `sport` or `date` (see the table below; defaults work out of the box).
2. **Pick options** — filters, a `proxyConfiguration`, and a `maxItems` cap.
3. **Run & export** — click **Start**, then download the dataset as JSON/CSV/Excel or fetch it via the API.

***

### ⚙️ Input

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `sport` | enum | `football` | Sport to fetch fixtures for. — one of `football`, `tennis`, `basketball`, `hockey`, `volleyball`, `handball`, `baseball`, `american-football`, `rugby`, `cricket` |
| `date` | string | – | Match date as YYYY-MM-DD (e.g. 2026-08-22). Empty = today. |
| `dayOffset` | integer | `0` | Days from today: 0=today, 1=tomorrow, -1=yesterday. Overrides Date when non-zero. |
| `timezone` | integer | `0` | Feed timezone index (0 = UTC). |
| `maxItems` | integer | `100` | Maximum matches (or standings rows) to return (0 = all). |
| `includeMatchDetail` | boolean | `false` | Fetch full detail (lineups, incidents, per-match statistics) for each started match. Slower — adds 2 API calls per match. |
| `detailConcurrency` | integer | `8` | How many match-detail requests to run in parallel when includeMatchDetail is on (max ~20). |
| `standingsCompetition` | string | – | Competition name to fetch the league table for (e.g. "Premier League"). Empty = skip standings and return matches instead. |
| `standingsTab` | enum | `overall` | Table view: overall (default), home, away or form. — one of `overall`, `home`, `away`, `form` |
| `proxyConfiguration` | object | Apify Proxy | Route requests through a proxy (Apify Proxy by default). |

#### Example input

```jsonc
{
  "sport": "football",
  "dayOffset": 0,
  "timezone": 0,
  "maxItems": 100,
  "includeMatchDetail": false,
  "detailConcurrency": 8,
  "standingsTab": "overall",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

***

### 📤 Output

Each result is a JSON object like this:

```jsonc
{
  "type": "match",
  "id": "fDbSvphd",
  "sport": "football",
  "competition_name": "Premier League",
  "competition_country": "England",
  "home_team": "Racing Club",
  "away_team": "Boca Juniors",
  "home_score": 1,
  "away_score": 1,
  "status": "finished",
  "round": "Round 6",
  "start_time_utc": "2026-08-24T00:30:00+00:00",
  "home_team_image": "https://static.flashscore.com/res/image/data/6T5YTkZA-OCiVKiPK.png",
  "away_team_image": "https://static.flashscore.com/res/image/data/h4UwH8Cr-pGZDw.png"
}
```

***

### 🧾 Data table

| Field | Type | Description |
| --- | --- | --- |
| `type` | text | Type |
| `id` | text | Event ID |
| `sport` | text | Sport |
| `competition_name` | text | Competition |
| `competition_id` | text | Competition ID |
| `competition_country` | text | Country |
| `competition_stage_id` | text | Stage ID |
| `competition_tournament_id` | text | Tournament ID |
| `competition_path` | text | Competition path |
| `home_team` | text | Home team |
| `away_team` | text | Away team |
| `home_score` | number | Home score |
| `away_score` | number | Away score |
| `status` | text | Status |
| `result_status` | number | Result status |
| `round` | text | Round |
| `start_time_utc` | text | Start time (UTC) |
| `last_update_time_utc` | text | Last update (UTC) |
| `home_team_image` | link | Home team image |
| `away_team_image` | link | Away team image |
| `tv_channels` | array | TV channels |
| `lineups` | object | Lineups |
| `incidents` | array | Incidents |
| `statistics` | array | Statistics |
| `standings_tab` | text | Standings tab |
| `position` | number | Position |
| `team_name` | text | Team |
| `team_id` | text | Team ID |
| `team_slug` | text | Team slug |
| `played` | number | Played |
| `wins` | number | Wins |
| `goals_for` | number | Goals for |
| `goals_against` | number | Goals against |
| `points` | number | Points |
| `qualification` | text | Qualification |

***

### 💰 Pricing — pay per result

This actor uses **pay-per-event** pricing: you pay only for the rows it delivers.

| You scrape | Price |
| --- | --- |
| **Match** | **$0.10 per 1,000 rows** |
| **Standing** | **$0.10 per 1,000 rows** |

***

### 🔌 Use the Flashscore Scraper via API

Run it programmatically with the [Apify API](https://docs.apify.com/api/v2):

```bash
curl -X POST "https://api.apify.com/v2/acts/flashscore-api-scraper/runs?token=YOUR_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
  "sport": "football",
  "dayOffset": 0,
  "timezone": 0,
  "maxItems": 100,
  "includeMatchDetail": false,
  "detailConcurrency": 8,
  "standingsTab": "overall",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}'
```

Or with the Apify CLI: `apify call flashscore-api-scraper -i input.json -o`.

***

### ❓ FAQ

**Do I need an account or API key for Flashscore?**

No. The actor talks to Flashscore's public/mobile API for you — you only need an Apify account.

**Do I need a proxy?**

A proxy is recommended for reliable runs; set `proxyConfiguration` (Residential is safest for geo-restricted or bot-protected sites).

**What export formats are supported?**

JSON, CSV, Excel, XML, JSONL, RSS, or live via the Apify API and dataset endpoints.

**Is scraping this legal?**

You are responsible for how you use the data. Scrape only public record data and comply with Flashscore.com's Terms and applicable law (e.g. GDPR/CCPA for personal data).

***

### 🛠️ How it works

The actor impersonates Flashscore's official app/site and calls its private API the same way the app does, then normalises each response into the flat record above. No browser, no HTML scraping — just clean, structured data.

***

### 📌 Good to know

- Scrape only public record data and respect Flashscore.com's Terms of Service and robots policy.
- For personal data, comply with GDPR/CCPA and applicable law — you are the data controller.
- Fields can be `null` when Flashscore doesn't expose them for a given record.

***

### ⭐ Found this useful?

Give the **Flashscore Scraper** a star on Apify and check out my other `apify-*-api-scraper` actors.

### Standings: what this returns vs the website

Verified row-by-row against flashscore.com's Premier League table — position, team, MP, W,
goals for/against and PTS all match the site exactly, in the same order, for all 20 rows.

Two website columns are **not** included, because the app's standings feed does not carry them
(its own column set is `# TEAM MP G PTS`; every `to_` tab variant returns the same):

- **D / L (draws, losses).** Derivable only by assuming 3-points-for-a-win, which does not hold
  for every competition Flashscore covers. Guessing would be right most of the time and silently
  wrong the rest, so they are omitted rather than fabricated.
- **FORM (last 5).** Not in this feed.

**GD is included** — it is exact arithmetic from goals for/against, no assumption needed.

# Actor input Schema

## `sport` (type: `string`):

Sport to fetch fixtures for.

## `date` (type: `string`):

Match day to fetch. Pick a date (YYYY-MM-DD) or use a relative value like "2 days" / "1 week" for upcoming fixtures. Empty = today. For PAST days use Day offset with a negative number (e.g. -1 for yesterday); the relative form only goes forwards. Day offset overrides this when non-zero.

## `dayOffset` (type: `integer`):

Days from today: 0=today, 1=tomorrow, -1=yesterday. Overrides Date when non-zero.

## `timezone` (type: `integer`):

Feed timezone index (0 = UTC).

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

Maximum matches (or standings rows) to return (0 = all).

## `includeMatchDetail` (type: `boolean`):

Fetch full detail (lineups, incidents, per-match statistics) for each started match. Slower — adds 2 API calls per match.

## `detailConcurrency` (type: `integer`):

How many match-detail requests to run in parallel when includeMatchDetail is on (max ~20).

## `standingsCompetition` (type: `string`):

Competition name to fetch the league table for (e.g. "Premier League"). Empty = skip standings and return matches instead.

## `standingsTab` (type: `string`):

Table view: overall (default), home, away or form.

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

Route requests through a proxy (Apify Proxy by default).

## Actor input object example

```json
{
  "sport": "football",
  "dayOffset": 0,
  "timezone": 0,
  "maxItems": 100,
  "includeMatchDetail": false,
  "detailConcurrency": 8,
  "standingsTab": "overall",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `results` (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 = {
    "date": "",
    "standingsCompetition": "",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("rl1987/flashscore-api-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 = {
    "date": "",
    "standingsCompetition": "",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("rl1987/flashscore-api-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 '{
  "date": "",
  "standingsCompetition": "",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call rl1987/flashscore-api-scraper --silent --output-dataset

```

## MCP server setup

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