# FlashScore Live Scraper (`powerai/flashscore-live-scraper`) Actor

Live scores, fixtures, results, odds, and match events across 16 sports — one structured record per match.

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

## Pricing

from $2.99 / 1,000 results

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 Live Scraper

Collect live scores, fixtures, results, full-time odds, and match event timelines across 16 sports. Each Dataset item is one match with structured fields ready for dashboards, bots, and analytics pipelines.

### Features

- Dates from 7 days ago to 7 days ahead (`dayOffsets`)
- 16 sports, or all sports in one run
- Match ID, league, teams, scores, status, start time
- Optional full-time home / draw / away decimal odds
- Optional event history (goals, cards, substitutions, period labels)
- Cap via `maxMatches` for quick tests

### Supported sports

Football, tennis, basketball, ice hockey, American football, baseball, handball, rugby union, futsal, volleyball, cricket, darts, snooker, rugby league, badminton, table tennis.

### Input

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `dayOffsets` | array | `["0"]` | Relative days (`0` = today, `-1` = yesterday, `1` = tomorrow) |
| `sport` | string | `football` | One sport slug, or `all` |
| `includeEvents` | boolean | `true` | Attach match event timeline to `history` |
| `includeOdds` | boolean | `true` | Attach full-time 1X2 odds when available |
| `maxMatches` | integer | `200` | Global match cap for the run |
| `workers` | integer | `8` | Concurrency for detail (events / odds) requests |
| `proxyConfiguration` | object | — | Residential proxies recommended for production |

#### Input example

```json
{
  "dayOffsets": ["0"],
  "sport": "football",
  "maxMatches": 30,
  "includeEvents": true,
  "includeOdds": true
}
```

### Output

One Dataset item per match:

| Field | Description |
| --- | --- |
| `match_id` | Stable match identifier |
| `sport` / `league` | Sport slug and competition label |
| `home_team` / `away_team` | Competitors |
| `home_score` / `away_score` | Current or final score when available |
| `status` / `status_time` | Scheduled, live, finished, etc., plus clock / period when known |
| `start_time` / `start_timestamp` | Kick-off (UTC display + unix seconds) |
| `odds` | `{ home, draw, away }` decimal odds when available |
| `history` | Event list (`time`, `side`, `player`, `action`, `score`, `period`) |
| `url` | Match page URL |

#### Example

```json
{
  "match_id": "lpjMasO8",
  "sport": "football",
  "home_team": "Always Ready",
  "away_team": "The Strongest",
  "home_score": 1,
  "away_score": 1,
  "status": "Live",
  "status_time": "1st Half - 42'",
  "start_time": "23.10.2026 04:00",
  "league": "BOLIVIA: Copa Pacena - Play Offs",
  "odds": { "home": 1.32, "draw": 5.3, "away": 6.4 },
  "history": [
    {
      "kind": "event",
      "time": "42'",
      "side": "home",
      "player": "Uzeda J.",
      "action": "Goal",
      "period": "1st Half"
    }
  ]
}
```

### Scope notes

- This Actor focuses on **current match** data (list + events + odds). It does **not** attach long historical team-form / H2H snapshot packages.
- Odds availability and bookmaker coverage vary by sport, region, and match state.
- Not every sport exposes the same event types; missing fields stay empty.

### Tips

- Start with `sport: "football"`, `dayOffsets: ["0"]`, and a small `maxMatches` (e.g. 20).
- Residential proxies are recommended for production runs.
- Use Apify Schedules for recurring live-score snapshots.

# Actor input Schema

## `dayOffsets` (type: `array`):

Dates relative to today. 0 = today, -1 = yesterday, 1 = tomorrow. Range -7 to +7. Select multiple days in one run.

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

One sport, or all supported sports in a single run.

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

Fetch goals, cards, substitutions, and period markers into history when available.

## `includeOdds` (type: `boolean`):

Fetch full-time home / draw / away decimal odds when available.

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

Cap on matches returned for the whole run (1–5000). Useful for smoke tests.

## `workers` (type: `integer`):

Concurrency for per-match event / odds requests (1–32).

## `sportConcurrency` (type: `integer`):

How many sport × day list feeds to fetch in parallel when sport=all (1–8).

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

Optional Apify proxy. Residential proxies are recommended for production.

## Actor input object example

```json
{
  "dayOffsets": [
    "0"
  ],
  "sport": "football",
  "includeEvents": true,
  "includeOdds": true,
  "maxMatches": 50,
  "workers": 8,
  "sportConcurrency": 3
}
```

# Actor output Schema

## `overview` (type: `string`):

Table view of scraped matches.

## `rawResults` (type: `string`):

All dataset items as JSON.

# 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 = {
    "dayOffsets": [
        "0"
    ],
    "sport": "football",
    "maxMatches": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("powerai/flashscore-live-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 = {
    "dayOffsets": ["0"],
    "sport": "football",
    "maxMatches": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("powerai/flashscore-live-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 '{
  "dayOffsets": [
    "0"
  ],
  "sport": "football",
  "maxMatches": 50
}' |
apify call powerai/flashscore-live-scraper --silent --output-dataset

```

## MCP server setup

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