# Flashscore Matches Scraper (`leorochasantos/flashscore-matches`) Actor

A scraper for public Flashscore match listings: participants, tournament, status, start time and per-set scores from public sport pages.

- **URL**: https://apify.com/leorochasantos/flashscore-matches.md
- **Developed by:** [Leonardo Santos](https://apify.com/leorochasantos) (community)
- **Categories:** Sports, Automation, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.65 / 1,000 flashscore match rows

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

Extract public Flashscore match listings for any sport and day, or resolve
specific public match URLs into venue, city and TV-channel detail. Every row is
flat, typed and null-safe for research, alerting, spreadsheets and pipelines.

### Why this actor?

- Two buyer-shaped modes: a whole listing day, or one match URL.
- One flat row per match: participants, tournament, status, start time, sets.
- Hard local result limits keep delivery and spend bounded.
- Invalid URLs, empty listing days and blocked requests are free error rows.
- Public pages only: no login, no cookies, no challenge bypass, no media.

### Input

```json
{"mode":"matches","listingUrl":"https://www.flashscore.com/tennis/","dayOffset":0,"maxResults":100}
```

For detail mode, set `mode` to `detail` and provide `matchUrls`.

| Input | Meaning |
|---|---|
| `mode` | `matches` (a listing day) or `detail` (specific match URLs). |
| `listingUrl` | A public `flashscore.com/<sport>/` listing page. |
| `dayOffset` | UTC day to read: `0` today, `-1` yesterday, `1` tomorrow (−3…3). |
| `maxResults` | Hard local cap on delivered rows and charges in `matches` mode. |
| `matchUrls` | Public match URLs for `detail` mode; deduplicated, capped at 50. |
| `simulate_upstream_block` | Debug hook. Leave disabled. |
| `proxyConfiguration` | Proxy for Flashscore requests; datacenter is the default. |

### Output

```json
{"mode":"matches","input":"https://www.flashscore.com/tennis/","match_id":"4zyfwf9s","sport":"tennis","tournament":"WTA - SINGLES: US Open (USA), hard","tournament_url":"https://www.flashscore.com/tennis/wta-singles/us-open/","title":"Sabalenka A. - Pegula J.","home":"Sabalenka A.","away":"Pegula J.","home_url":"https://www.flashscore.com/player/sabalenka-aryna/vyhksgUB/","away_url":"https://www.flashscore.com/player/pegula-jessica/KdojxrAR/","start_time":"2026-09-10T23:00:00.000Z","status":"scheduled","status_code":"1","url":"https://www.flashscore.com/match/tennis/sabalenka-aryna-vyhksgUB/pegula-jessica-KdojxrAR/?mid=4zyfwf9s","score_home":null,"score_away":null,"set_scores":[],"venue":null,"city":null,"tv_channels":[],"error":null,"scraped_at":"2026-09-10T10:15:55.554Z"}
```

| Field | Meaning |
|---|---|
| `mode` | Which mode produced the row: `matches` or `detail`. |
| `input` | The listing URL or match URL this row came from. |
| `match_id` | Flashscore match id, also carried in the match URL. |
| `sport` | Sport slug, e.g. `tennis`. |
| `tournament` | Public competition and stage line. |
| `tournament_url` | Public tournament page. |
| `title` | `"home - away"`. |
| `home` | Home/first participant. |
| `away` | Away/second participant. |
| `home_url` | Public participant page for the home side. |
| `away_url` | Public participant page for the away side. |
| `start_time` | Scheduled start time, ISO 8601 UTC. |
| `status` | `scheduled`, `live` or `finished`. |
| `status_code` | Raw upstream status code the status is derived from. |
| `url` | Canonical public match URL. |
| `score_home` | Home score: sets won in tennis, goals/points elsewhere. |
| `score_away` | Away score: sets won in tennis, goals/points elsewhere. |
| `set_scores` | Per-set or per-period scores in order; empty before play starts. |
| `venue` | Venue, `detail` mode only. |
| `city` | City, `detail` mode only. |
| `tv_channels` | Broadcasters listing the match, `detail` mode only. |
| `error` | Free per-input error; null on match rows. |
| `scraped_at` | Extraction timestamp. |

### Pricing

Pay per event, and **the platform usage is on us** — the price you see is the price you pay, with no compute bill on top.

| Event | Price | What one charge buys |
|---|---|---|
| Flashscore match row | **$0.001** | One delivered public Flashscore match row. An invalid or missing mode/URL, a listing day with no matches, and an upstream block, 5xx or timeout are free error rows and are never charged. |
| Actor Start | **$0.002** | One run, whatever it returns. |

Higher Apify subscription tiers pay less on every event (Silver −20%, Gold −35%).

### Proxy

Requests use the Apify proxy configured in `proxyConfiguration`. The validated
default is datacenter. This actor does not bypass challenges, log in, or read
private pages.

### Use cases

- Track a tournament day across every court, with scores and start times.
- Alert on a followed match's status change.
- Build a dated results dataset for a sport.
- Find which broadcaster carries a match.

### FAQ

**Does this need a Flashscore account?** No. Only public pages and the site's
own public fixture feed are read.

**Do scheduled matches have scores?** No — `score_home`, `score_away` and
`set_scores` are empty until play starts, and the keys are always present.

**Why are `venue`, `city` and `tv_channels` empty in `matches` mode?** They come
from the per-match detail feed, which only `detail` mode fetches.

This Actor is an independent tool and is not affiliated with Flashscore.

# Actor input Schema

## `mode` (type: `string`):

matches: list one public sport page's matches for a day. detail: resolve public match URLs, including venue, city and TV channels.

## `listingUrl` (type: `string`):

A public flashscore.com sport listing page, e.g. https://www.flashscore.com/tennis/. Used in matches mode.

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

Which UTC day of the listing to read: 0 is today, -1 yesterday, 1 tomorrow. Bounded to -3..3.

## `maxResults` (type: `integer`):

Hard local limit on delivered match rows and charges in matches mode.

## `matchUrls` (type: `array`):

Public flashscore.com match URLs. Used in detail mode; deduplicated and capped at 50.

## `simulate_upstream_block` (type: `boolean`):

Test hook. Leave disabled.

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

Proxy for Flashscore requests. Datacenter is the validated default.

## Actor input object example

```json
{
  "mode": "matches",
  "listingUrl": "https://www.flashscore.com/tennis/",
  "dayOffset": 0,
  "maxResults": 100,
  "matchUrls": [
    "https://www.flashscore.com/match/K0CsJL3b/"
  ],
  "simulate_upstream_block": false,
  "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 = {
    "listingUrl": "https://www.flashscore.com/tennis/",
    "matchUrls": [
        "https://www.flashscore.com/match/K0CsJL3b/"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("leorochasantos/flashscore-matches").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 = {
    "listingUrl": "https://www.flashscore.com/tennis/",
    "matchUrls": ["https://www.flashscore.com/match/K0CsJL3b/"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("leorochasantos/flashscore-matches").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 '{
  "listingUrl": "https://www.flashscore.com/tennis/",
  "matchUrls": [
    "https://www.flashscore.com/match/K0CsJL3b/"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call leorochasantos/flashscore-matches --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,leorochasantos/flashscore-matches"
        }
    }
}

```

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/dIT075UsidGgCaTyh/builds/Jrqcvq3zKQCbFsebF/openapi.json
