# FlashScore Live Scores Scraper (`romy/flashscore-live-scores-scraper`) Actor

Fetch a sport's full match list for any day, live-score deltas, or per-match detail bundles by match id — no login or API key needed. Talks directly to FlashScore's internal app API via reverse-engineered live capture. The live-scores slice of romy/flashscore-all-in-one-api, covering 39 sports.

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

## Pricing

from $6.20 / 1,000 match records

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

### What does FlashScore Live Scores Scraper do?

**FlashScore Live Scores Scraper** fetches a sport's full match list for a given day, its lightweight live-score delta feed, and/or rich per-match detail + live-hash snapshots for specific match ids — one dataset row per match/record, no API key needed.

It talks directly to the same internal feed/GraphQL API the official [FlashScore](https://www.flashscore.com/) Android app uses, reverse-engineered by live MITM capture against a real device (Frida SSL-pinning bypass, ~960 requests across three separate exploration sessions) and cross-checked against the app's own decompiled source (Jadx). This is the live-scores/match-list slice of [FlashScore All-in-One API](https://apify.com/romy/flashscore-all-in-one-api), split out as its own focused Actor — odds, lineups, stats, standings, news, search, and competitions are separate spin-off Actors.

### Why use FlashScore Live Scores Scraper?

- **No auth, no API key** — the app's own static headers (`x-fsign` etc.) are the same on every request, confirmed identical across every endpoint and sport in every capture session
- **Full day's match list in one call** — every match for a sport on one day, across all competitions, in a single response
- **Cheap live polling** — `live: true` hits the same lightweight delta feed the app itself polls repeatedly, instead of re-fetching the full match list
- **Per-match detail bundle** — for any match id, get GraphQL detail (participants, league, round, settings), the cache-invalidation version hash, and the legacy summary feed in one row
- **Global coverage** — 39 confirmed sports, from soccer and tennis to darts and kabaddi
- **Use cases:** live-score dashboards, sports data pipelines, odds/results monitoring, match research tools

### Input

| Field               | Type     | Description                                                                                                                                   |
| ------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| `sport`             | string   | Sport name (case-insensitive, e.g. `SOCCER`) or numeric id. Required unless `matchIds` or `includeSportsList` is set.                         |
| `dateOffset`        | integer  | Days from today: `0`=today, negative=past, positive=future. Confirmed live range `-7` to `7`. Ignored when `live` is `true`. Default `0`.     |
| `live`              | boolean  | If `true`, fetch the lightweight live-score delta feed for the sport instead of the full day's match list. Default `false`.                   |
| `matchIds`          | string\[] | For each match id, fetches detail + version hash + summary in parallel and pushes one row per id. Independent of `sport`/`live`/`dateOffset`. |
| `includeSportsList` | boolean  | If `true`, also fetch the full sport list (with match/live counts) and push each sport record as its own row. Default `false`.                |

At least one of `sport`, `matchIds`, `includeSportsList` must be given.

`sport` accepts any of: `SOCCER`, `TENNIS`, `BASKETBALL`, `HOCKEY`, `AMERICAN_FOOTBALL`, `BASEBALL`, `HANDBALL`, `RUGBY_UNION`, `FLOORBALL`, `BANDY`, `FUTSAL`, `VOLLEYBALL`, `CRICKET`, `DARTS`, `SNOOKER`, `BOXING`, `BEACH_VOLLEYBALL`, `AUSSIE_RULES`, `RUGBY_LEAGUE`, `BADMINTON`, `WATER_POLO`, `GOLF`, `FIELD_HOCKEY`, `TABLE_TENNIS`, `BEACH_SOCCER`, `MMA`, `NETBALL`, `PESAPALLO`, `MOTORSPORT`, `AUTORACING`, `MOTORACING`, `CYCLING`, `HORSE_RACING`, `ESPORTS`, `WINTER_SPORTS`, `SKI_JUMPING`, `ALPINE_SKIING`, `CROSS_COUNTRY`, `BIATHLON`, `KABADDI` (these are the app's own internal constant names, decompiled from its enum — not localized display text).

Example:

```json
{
    "sport": "SOCCER",
    "dateOffset": 0
}
```

### Output

One dataset row per match record when using `sport`/`live` (raw pipe-feed fields, tagged with `type: "match"` — field names are FlashScore's own short codes, e.g. `AE`/`AF` = home/away team name, `AG`/`AH` = home/away score; some rows are league/section headers rather than individual matches). Real example, live-tested (Belgian Challenger Pro League, 2026-08-31):

```json
{
    "type": "match",
    "AA": "CKQq04lL",
    "AD": "1788110100",
    "AE": "Seraing",
    "AF": "K. Lierse S.K.",
    "AG": "1",
    "AH": "1",
    "AW": "1"
}
```

One row per id when using `matchIds`, real example (`4GzyLE2N`, Newcastle vs West Brom, EFL Cup):

```json
{
    "matchId": "4GzyLE2N",
    "detail": {
        "data": {
            "findEventById": {
                "id": "4GzyLE2N",
                "sportId": 1,
                "leagueNames": { "nameA": "England", "nameC": "EFL Cup" },
                "eventParticipants": [
                    { "name": "Newcastle", "type": { "side": "HOME" } },
                    { "name": "West Brom", "type": { "side": "AWAY" } }
                ]
            }
        }
    },
    "versionHash": [],
    "summary": [{ "EA": "Newcastle", "EB": "West Brom", "EE": "England: EFL Cup" }]
}
```

### Known limitations

- The legacy pipe-feed endpoints (`sport`/`live` mode) return raw short field codes; only a subset (`EA`/`EB`, `EE`/`EF`, `EG`, `EH`) were individually cross-checked against the rendered UI — score/status fields (`DS`/`DE`/`DF`/`DG`/`DH`/`DI`, `DA`/`DZ`) are best-effort, not confirmed.
- `matchIds` `versionHash` can be empty for a match that has no cache-invalidation hash currently published (e.g. finished/off-cycle matches) — that's expected, not an error.
- Odds, lineups, stats, standings, news, search, and competitions are not covered here — use [FlashScore All-in-One API](https://apify.com/romy/flashscore-all-in-one-api) or its other spin-off Actors.

### Pricing

Pay per event, billed as **`match`** — one charge per match/live-update row pushed to the dataset
(sport list rows, match listings, live updates, and match-detail lookups all count as one `match`
event each). FREE-tier price: **$0.008 per `match` event**. See the Actor's Pricing tab for current
tiered rates.

# Actor input Schema

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

Sport name (case-insensitive) or numeric id. Required unless matchIds or includeSportsList is set.

## `dateOffset` (type: `integer`):

Days from today: 0=today, negative=past, positive=future. Confirmed live range -7 to 7. Ignored when live=true.

## `live` (type: `boolean`):

If true, fetch the lightweight live-score delta feed for the sport instead of the full day's match list (dateOffset is ignored).

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

For each match id, fetches detail + version hash + summary in parallel and pushes one row per id. Independent of sport/live/dateOffset.

## `includeSportsList` (type: `boolean`):

If true, also fetch the full sport list (with match/live counts) and push each sport record as its own row.

## Actor input object example

```json
{
  "dateOffset": 0,
  "live": false,
  "matchIds": [
    "4GzyLE2N"
  ],
  "includeSportsList": false
}
```

# Actor output Schema

## `dataset` (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 = {
    "matchIds": [
        "4GzyLE2N"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("romy/flashscore-live-scores-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 = { "matchIds": ["4GzyLE2N"] }

# Run the Actor and wait for it to finish
run = client.actor("romy/flashscore-live-scores-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 '{
  "matchIds": [
    "4GzyLE2N"
  ]
}' |
apify call romy/flashscore-live-scores-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,romy/flashscore-live-scores-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/GACLyaQmvb6cRfjph/builds/cBe2c8lnpRZfwKLue/openapi.json
