# Flashscore Live Sports & Matches Scraper (`wyle/flashscore-scraper`) Actor

Ultra-fast, HTTP-only scraper for Flashscore. Extract live scores, historical results, upcoming fixtures, tournaments, team stats, and period breakdowns across Football, Basketball, Tennis, Hockey, Baseball, American Football, MMA, and Esports.

- **URL**: https://apify.com/wyle/flashscore-scraper.md
- **Developed by:** [Willy Lengkong](https://apify.com/wyle) (community)
- **Categories:** News, Social media, Other
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.40 / 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.
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?

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 Live Sports & Historical Matches Scraper

Ultra-fast, HTTP-only Apify Actor for **Flashscore.com**. Extract real-time live scores, finished match results, upcoming fixtures, tournaments, team information, and period breakdowns across 12+ major sports.

***

### ⚡ Features & Capabilities

- **12+ Major Sports Covered**:
  - ⚽ **Football / Soccer** (Premier League, La Liga, Champions League, MLS, Serie A, etc.)
  - 🏀 **Basketball** (NBA, EuroLeague, NCAA, etc.)
  - 🎾 **Tennis** (ATP, WTA, Grand Slams, Challengers)
  - 🏒 **Ice Hockey** (NHL, KHL, SHL, etc.)
  - ⚾ **Baseball** (MLB, NPB, KBO)
  - 🏈 **American Football** (NFL, NCAAF, CFL)
  - 🥊 **MMA / Combat Sports** (UFC, Bellator, ONE)
  - 🎮 **Esports** (CS:GO, League of Legends, Dota 2, Valorant)
  - 🤾 **Handball**, 🏉 **Rugby**, 🏐 **Volleyball**, 🏏 **Cricket**
- **Flexible Date Navigation**:
  - Extract today's live & upcoming games (`dayOffsets: [0]`).
  - Scrape yesterday's results (`dayOffsets: [-1]`).
  - Scan tomorrow's upcoming fixtures (`dayOffsets: [1]`).
  - Multi-day batch scraping (`dayOffsets: [-2, -1, 0, 1, 2]`).
- **Granular Match Status Filtering**:
  - `all`: All matches for the day.
  - `live`: Live / In-play matches currently active.
  - `finished`: Completed fixtures with full-time and period scores.
  - `upcoming`: Scheduled fixtures with start times.
- **Deep Search & Filters**:
  - Filter by country (e.g. `England`, `Spain`, `USA`).
  - Filter by tournament or cup name (e.g. `Champions League`, `NBA`, `LaLiga`).
  - Search query across team and tournament names (e.g. `Arsenal`, `Real Madrid`, `Lakers`).
- **Direct Match URL / ID Scraping**:
  - Input specific Flashscore match links or IDs for targeted data extraction.
- **Rich Match Breakdown**:
  - Full-time scores, half-time, quarter, or set breakdowns (`period_scores`).
  - Red cards and disciplinary stats.
  - Team logos and direct tournament links.
- **Zero Browser Overhead**:
  - 100% HTTP-only TLS fingerprint impersonation (`curl_cffi`).
  - Fast, reliable, and cost-efficient (PPE ready).

***

### 📥 Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `sports` | `array` | `["football", "basketball", "tennis"]` | Sports to extract (football, basketball, tennis, hockey, baseball, american\_football, mma, esports, etc.) |
| `dayOffsets` | `array` | `[0]` | Day offsets relative to today (`0` = today, `-1` = yesterday, `1` = tomorrow). |
| `status` | `string` | `"all"` | Filter by status: `all`, `live`, `finished`, or `upcoming`. |
| `searchQuery` | `string` | `""` | Optional keyword filter matching team or league names. |
| `countryFilter` | `string` | `""` | Optional filter for country (e.g. `England`, `Spain`). |
| `tournamentFilter` | `string` | `""` | Optional filter for tournament (e.g. `Premier League`). |
| `directUrls` | `array` | `[]` | List of Flashscore match URLs or match IDs. |
| `includeMatchDetails` | `boolean` | `false` | Deep metadata enrichment (venue, stats availability, lineups). |
| `maxItems` | `integer` | `100` | Maximum match records to return. |
| `proxyConfiguration` | `object` | `{}` | Apify residential or datacenter proxy settings. |

***

### 📤 Sample Output JSON

```json
{
  "match_id": "O6FeFQT8",
  "sport": "football",
  "country": "Argentina",
  "tournament": "ARGENTINA: Liga Profesional - Clausura",
  "tournament_url": "https://www.flashscore.com/football/argentina/liga-profesional/",
  "tournament_stage": "",
  "match_url": "https://www.flashscore.com/match/O6FeFQT8/#/match-summary",
  "start_time": "2026-08-24T22:00:00+00:00",
  "timestamp": 1787608800,
  "status": "Finished",
  "status_code": "3",
  "home_team": {
    "name": "Tigre",
    "short_name": "TIG",
    "team_id": "nkwO1uw4",
    "slug": "tigre",
    "score": "2",
    "red_cards": 0,
    "logo": "https://static.flashscore.com/res/image/data/EgYDLGoe-ENHpchZ2.png"
  },
  "away_team": {
    "name": "Central Cordoba",
    "short_name": "CEN",
    "team_id": "0dHZReql",
    "slug": "central-cordoba-santiago-del-estero",
    "score": "1",
    "red_cards": 0,
    "logo": "https://static.flashscore.com/res/image/data/0hgWrqXH-E7RqoQaq.png"
  },
  "period_scores": {
    "1st_period": {
      "home": "0",
      "away": "1"
    },
    "2nd_period": {
      "home": "2",
      "away": "0"
    }
  }
}
```

***

### 🎯 Use Cases

1. **Sports Betting & Arbitrage Bots**: Feed real-time live match events and period scores into betting models and odds arbitrage detectors.
2. **Fantasy Sports & Analytics**: Aggregate player and team performance indicators, fixture schedules, and historical scores.
3. **Sports Media & Live Score Apps**: Power sports dashboards, widgets, and automated alerts for goals, half-time, and final results.
4. **AI & Quant Sports Models**: Build historical training datasets of match scores, league standings, and team momentum.

# Actor input Schema

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

List of sports to scrape (e.g., football, basketball, tennis, hockey, baseball, american\_football, mma, esports, etc.).

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

Days relative to today: 0 for today, -1 for yesterday, 1 for tomorrow, -2 for 2 days ago, etc.

## `status` (type: `string`):

Filter matches by status: all, live, finished, or upcoming.

## `searchQuery` (type: `string`):

Filter results by matching team name, league, or tournament keyword (e.g., 'Real Madrid', 'Premier League', 'Lakers', 'Arsenal').

## `countryFilter` (type: `string`):

Filter matches by country name (e.g., 'England', 'Spain', 'USA', 'Germany', 'Italy').

## `tournamentFilter` (type: `string`):

Filter matches by specific tournament or cup (e.g., 'Champions League', 'NBA', 'LaLiga', 'Serie A').

## `directUrls` (type: `array`):

List of Flashscore match URLs or match IDs to scrape directly (e.g. 'https://www.flashscore.com/match/O6FeFQT8/' or 'O6FeFQT8').

## `includeMatchDetails` (type: `boolean`):

Enrich each match with extra metadata (full tournament details, venue/stadium, lineups availability, participant links).

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

Maximum number of match records to output.

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

Apify Proxy Configuration. Recommended to use Apify Residential or Datacenter proxies for sustained high-volume scraping.

## Actor input object example

```json
{
  "sports": [
    "football",
    "basketball",
    "tennis"
  ],
  "dayOffsets": [
    0
  ],
  "status": "all",
  "includeMatchDetails": false,
  "maxItems": 100
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset containing scraped Flashscore matches, scores, status, and period breakdowns.

# 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 = {};

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

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

```

## MCP server setup

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