# Football (Soccer) Match Scraper - Scores & Fixtures (`teamkamkod/football-soccer-scores`) Actor

Daily football scores and fixtures from Flashscore, structured for automation and AI agents.
Event timeline (goals, cards, subs, 30+ live match statistics, lineups with per-player statistics, recent form & head-to-head, competition standings, venue/city/capacity/referee/TV, and odds comparison

- **URL**: https://apify.com/teamkamkod/football-soccer-scores.md
- **Developed by:** [Team Kamkod](https://apify.com/teamkamkod) (community)
- **Categories:** Sports, Automation
- **Stats:** 2 total users, 1 monthly users, 88.9% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 match-listeds

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?

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

## Football (Soccer) Match Scraper — Scores & Fixtures (+ Match Intel)

Daily football scores and fixtures from Flashscore, structured for automation and AI agents.

**Match Intel — the full picture per match (flag `enrich: true`).** Turn any match into a complete report:
event timeline (goals, own goals, cards, substitutions — with minute and score at the moment), 30+ live
match statistics (xG, possession, shots, corners, passes, duels…), **lineups with per-player statistics**,
recent form & head-to-head, competition standings when available, venue/city/capacity/referee/TV — and
optional **bookmaker odds comparison** per market (1X2, Over/Under, Asian Handicap, Double Chance…) for
scheduled & live matches. All merged into one clean JSON row per match.

One run returns **every match of a day** (default: today) across 200+ competitions — Premier League, Ligue 1, Bundesliga, Serie A, LaLiga, Champions League, MLS, Brasileirão, J.League and more — as clean JSON rows. Browse ±3 days, filter by league or status.

### What you get per match

| Field | Example |
|---|---|
| `match_id` | `lAhFP7mo` |
| `home` / `away` | `Everton` / `Manchester Utd` |
| `home_team_id` / `away_team_id` | `KluSTr9s` / `ppjDR086` (stable ids — join records across days) |
| `status` | `SCHEDULED` · `LIVE` · `FINISHED` · `POSTPONED` · `ABANDONED` … |
| `minute` (live) | `23` · `45+2` · `HT` · `ET` |
| `kickoff` (scheduled) | `13:00` |
| `home_score` / `away_score` | `1` / `0` (once started) |
| `status_detail` | `AET` · `PEN` · `AWD` when decisive |
| `country` / `league` / `league_slug` | `england` / `Premier League` / `premier-league` |
| `match_url` | direct Flashscore link |

### Example input

```json
{
  "date": "2026-09-06",
  "matchStatuses": ["finished", "live"],
  "leagues": ["premier league", "champions", "france"],
  "maxMatches": 1000
}
```

### Example record

```json
{
  "match_id": "lAhFP7mo",
  "match_url": "https://www.flashscore.com/match/football/everton-KluSTr9s/manchester-united-ppjDR086/?mid=lAhFP7mo",
  "match_date": "2026-09-06",
  "home": "Velez Sarsfield",
  "away": "Estudiantes L.P.",
  "home_slug": "velez-sarsfield",
  "home_team_id": "UsCR8gFd",
  "away_slug": "estudiantes-l-p",
  "away_team_id": "p2SkCHXs",
  "status": "FINISHED",
  "status_detail": null,
  "minute": null,
  "kickoff": null,
  "home_score": 1,
  "away_score": 0,
  "country": "argentina",
  "league": "Liga Profesional - Clausura",
  "league_slug": "liga-profesional"
}
```

### Use cases

- Fixtures & results monitoring for any league set
- Football schedule feeds for apps, newsletters, bots
- Score aggregation into analytics / betting research pipelines
- Ground-truth data for AI agents (real-time, no hallucination)

### Inputs

- **Anchor date** + **dayOffsets** — browse any day within ±3 of it (empty = today)
- **Match statuses** — finished / live / scheduled / postponed / abandoned / cancelled / interrupted / awarded
- **Leagues** — free-text filter on league name or country (`"premier"`, `"champions"`, `"brazil"`)
- **Max matches** — output cap (the full day is always parsed)

### Pricing & notes

- Pay-per-event, **billed per returned match**: one run lists *every* match of a day as one dataset row per match — a 500-match day ≈ 500 **match-listed** events ≈ $0.50. No subscription, no per-run fee.
- Live matches report the current minute and score at scrape time.
- Status normalization covers `Finished (pen)`, `After ET`, `After Pen.`, `Abandoned`, `Postponed`, `Cancelled`…
- **Enrichment tier (optional)**: set `enrich: true` to merge per match a full context report — timeline of events (goals/own goals/cards/subs with minute and score at the moment), complete match statistics (xG, possession, shots, corners, passes…), recent form + head-to-head, competition standings when available, venue/city/capacity/referee/TV. **Odds comparison** (opt-in via `odds: true`): per-market bookmaker odds for scheduled/live matches — default markets 1X2, Over/Under and Asian Handicap (the decision markets for live betting); more markets (Double Chance, BTTS, Correct Score…) selectable via `oddsMarkets`. Bookmaker ids, handicap lines and odds movement included — best-effort: availability varies by market and region. Billed as **match-intel** ($0.007/match) per enriched match.
- List tier = scores & fixtures only.

### Call it from an AI agent (MCP)

```text
Use the MCP server: mcp.apify.com?tools=<username>/football-soccer-scores
```

Ask: *"What are today's Premier League results?"* — the agent runs the actor and reads the dataset.

### Legal

This actor scrapes publicly available data. Use it in compliance with the target website's terms and your local regulations.

# Actor input Schema

## `date` (type: `string`):

Which day to list. Leave empty for today. dayOffsets below are relative to this date.

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

Also fetch the days before/after the anchor date. Default: anchor day only.

## `matchStatuses` (type: `array`):

Only return matches in these states. Leave empty for all.

## `leagues` (type: `array`):

Free-text filter (case-insensitive) on league name OR country. Examples: "premier league", "champions", "france", "brazil", "nsw". Empty = all leagues active that day.

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

Upper limit on the number of matches returned. The full day is parsed; this caps the output.

## `enrich` (type: `boolean`):

Merge per match: timeline of events (goals/cards/subs), full match statistics, recent form + head-to-head, standings when available, venue/referee/TV. Billed as match-intel per enriched match.

## `odds` (type: `boolean`):

Best-effort per-market odds comparison (1X2, Over/Under, Asian Handicap...) from the match odds page, with bookmaker ids and value movement. Depends on your region's availability (some geos show no odds); billed as match-intel events.

## `oddsMarkets` (type: `array`):

Which markets to capture (empty = default core 3: 1x2-odds, over-under, asian-handicap — the fast live-betting set; add double-chance, both-teams-to-score, draw-no-bet, correct-score, ht-ft, odd-even for more depth).

## `pageUrl` (type: `string`):

Override the section to scrape (default: https://www.flashscore.com/football/). Rarely needed.

## Actor input object example

```json
{
  "dayOffsets": [
    "0"
  ],
  "matchStatuses": [],
  "leagues": [],
  "maxMatches": 1000,
  "enrich": false,
  "odds": false,
  "oddsMarkets": []
}
```

# Actor output Schema

## `match_records` (type: `string`):

Dataset of daily match records. Use the 'overview' view.

# 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"
    ],
    "matchStatuses": [],
    "leagues": [],
    "oddsMarkets": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("teamkamkod/football-soccer-scores").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"],
    "matchStatuses": [],
    "leagues": [],
    "oddsMarkets": [],
}

# Run the Actor and wait for it to finish
run = client.actor("teamkamkod/football-soccer-scores").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"
  ],
  "matchStatuses": [],
  "leagues": [],
  "oddsMarkets": []
}' |
apify call teamkamkod/football-soccer-scores --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,teamkamkod/football-soccer-scores"
        }
    }
}

```

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/Ko4noH3S9Jr4YQ14T/builds/bFGOjxh6iQ8maT6z8/openapi.json
