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

Scrape Flashscore results and fixtures for football, tennis, basketball, hockey and 18 more sports: league, start time, status, teams or players, score and period scores. Filter by date, league and status. One result per match.

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

## Pricing

from $0.80 / 1,000 matches

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

## Flashscore Scraper

Scrape results and fixtures from [Flashscore](https://www.flashscore.com) for 22 sports: football, tennis, basketball, hockey, American football, baseball, handball, rugby, volleyball, cricket, darts, esports and more. One result per match: competition, start time, status, teams or players, score and score per period. Filter by date, competition and status. $1 per 1,000 matches on the Free plan, less on paid plans. No browser, so a full day of football (hundreds of matches) takes seconds.

### What you get

| Field | Type | Description |
| --- | --- | --- |
| `sport` | string | Sport, for example football or tennis |
| `match_id` | string | Flashscore match ID |
| `url` | string | Flashscore match page |
| `league` | string or null | Competition as shown by Flashscore, for example ENGLAND: Premier League |
| `country` | string or null | Country or region of the competition |
| `league_url` | string or null | Flashscore competition page |
| `start_time` | string | Scheduled start, UTC, ISO 8601 |
| `status` | string | scheduled, live, finished or other |
| `status_detail` | string | More detail, for example finished, after penalties, postponed, retired, walkover, half time |
| `home_name` | string | Home team or first player |
| `away_name` | string | Away team or second player |
| `home_country` | string or null | Country of the first player, mainly for individual sports |
| `away_country` | string or null | Country of the second player, mainly for individual sports |
| `home_score` | integer or null | Home score: goals, points, or sets won in tennis |
| `away_score` | integer or null | Away score |
| `period_scores` | array | Score per period as \[home, away], in order: quarters, periods, or games per set in tennis and points per set in volleyball. Football: first-half score only. \[null, null] when Flashscore has no value for that period |
| `winner` | string or null | home or away for a finished match with a winner, otherwise null |
| `scraped_at` | string | UTC time the match was scraped, ISO 8601 |

### Input

- `sports`: one or more of `football`, `tennis`, `basketball`, `hockey`, `american-football`, `baseball`, `handball`, `rugby-union`, `floorball`, `bandy`, `futsal`, `volleyball`, `cricket`, `darts`, `aussie-rules`, `rugby-league`, `badminton`, `water-polo`, `field-hockey`, `table-tennis`, `mma`, `esports`. Default `football`.
- `dateFrom` and `dateTo`: day range in UTC, `YYYY-MM-DD`. Flashscore's feed covers 7 days back to 7 days ahead; days outside that are skipped. Default: yesterday and today.
- `status`: `all` (default), `finished` for results, `scheduled` for fixtures, or `live`.
- `leagueFilter`: keep only competitions whose name contains one of these words, for example `premier league`, `nba`, `atp - singles`.
- `maxItems`: stop after this many matches in total. Default 1,000.
- `proxyConfiguration`: fallback proxy, Apify datacenter by default. Each feed is fetched directly first.

```json
{
  "sports": ["football", "basketball"],
  "dateFrom": "2026-10-15",
  "dateTo": "2026-10-16",
  "status": "finished",
  "leagueFilter": ["premier league", "nba"]
}
```

### Example output

````json
{
  "sport": "football",
  "match_id": "hxZJRCU7",
  "url": "https://www.flashscore.com/match/hxZJRCU7/",
  "league": "AFRICA: Africa Cup of Nations U20 - Qualification",
  "country": "Africa",
  "league_url": "https://www.flashscore.com/football/africa/africa-cup-of-nations-u20/",
  "start_time": "2026-10-12T12:00:00+00:00",
  "status": "finished",
  "status_detail": "finished",
  "home_name": "Cameroon U20",
  "away_name": "Chad U20",
  "home_country": null,
  "away_country": null,
  "home_score": 3,
  "away_score": 0,
  "period_scores": [
    [
      0,
      0
    ]
  ],
  "winner": "home",
  "scraped_at": "2026-10-16T13:13:27+00:00"
}
```json
{ "sports": ["tennis"], "status": "finished", "maxItems": 50 }
````

Each dataset item is one match with the fields listed under "What you get". Days are UTC.

# Actor input Schema

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

Sports to scrape. Example: football, tennis, basketball.

## `dateFrom` (type: `string`):

First day, YYYY-MM-DD (UTC). Flashscore keeps 7 days back and 7 days ahead. Empty means yesterday.

## `dateTo` (type: `string`):

Last day, YYYY-MM-DD (UTC). Empty means today.

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

Keep only matches with this status.

## `leagueFilter` (type: `array`):

Keep only competitions whose name contains one of these words, case-insensitive. Example: premier league, nba, atp.

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

Stop after this many matches in total.

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

Fallback proxy. Each feed is first fetched directly; if that fails twice, 2 more attempts go through this proxy, each from a different IP.

## Actor input object example

```json
{
  "sports": [
    "football"
  ],
  "status": "all",
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Matches with league, status, score and period scores.

# 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"
    ],
    "maxItems": 50,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("distinct_readjustment/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"],
    "maxItems": 50,
    "proxyConfiguration": { "useApifyProxy": True },
}

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

```

## MCP server setup

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