# Football Data Scraper (`distinct_readjustment/football-data-scraper`) Actor

Football (soccer) data for 270+ leagues: standings, top scorers, live scores, match events, statistics, lineups and head-to-head, team profiles and player career stats. One result per row.

- **URL**: https://apify.com/distinct_readjustment/football-data-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 $1.60 / 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?

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

## Football Data Scraper

Football (soccer) data for 270+ leagues and cups in one Actor: league standings, top scorers, live and today's matches, full match details (goals, cards, substitutions, statistics, lineups, formations, coaches, head-to-head), team profiles with recent and upcoming matches, and player profiles with career stats per season. $2 per 1,000 results on the Free plan, less on paid plans. No browser and no login, so runs take seconds.

### What you get

Every row has a `type`. Fields that do not apply to a type are left out.

| Field | Type | Description |
| --- | --- | --- |
| `type` | string | Row type: league, standing, top_scorer, live_match, match_detail, team, player, search_team or search_match |
| `id` | string | ID of the row: league, match, team or player ID; league-team or league-player for standings and top scorers |
| `name` | string or null | Name (leagues, teams, players, search results) |
| `league_id` | string or null | League ID, usable as leagueIds input |
| `league_name` | string or null | League name |
| `season` | string or null | Season, for standings |
| `position` | integer or string or null | Table position (standings, top scorers) or playing position (players) |
| `team_id` | string or null | Team ID, usable as teamIds input |
| `team_name` | string or null | Team name |
| `player_id` | string or null | Player ID, usable as playerIds input |
| `player_name` | string or null | Player name |
| `games_played` | integer or null | Standings: games played |
| `wins` | integer or null | Standings: wins |
| `draws` | integer or null | Standings: draws |
| `losses` | integer or null | Standings: losses |
| `goals_for` | integer or null | Standings: goals scored |
| `goals_against` | integer or null | Standings: goals conceded |
| `goal_difference` | integer or null | Standings: goal difference |
| `points` | integer or null | Standings: points |
| `goals` | integer or null | Top scorers: goals |
| `penalties` | integer or null | Top scorers: penalty goals |
| `start_time` | string or null | Match kick-off, UTC, ISO 8601 |
| `status` | string or null | Match status, for example Full time or the current minute |
| `home_team` | string or null | Home team |
| `away_team` | string or null | Away team |
| `home_score` | integer or null | Home goals |
| `away_score` | integer or null | Away goals |
| `events` | array or null | Match details: goals, cards and substitutions with minute and player |
| `statistics` | array or null | Match details: possession, shots, corners and more, home and away |
| `home_lineup` | object or null | Match details: home starting XI by line |
| `away_lineup` | object or null | Match details: away starting XI by line |
| `head_to_head` | array or null | Match details: previous meetings |
| `career_stats` | object or null | Players: matches, goals and cards per season for league, cups, international cups and national team |
| `matches` | array or null | Teams: recent and upcoming matches |
| `scraped_at` | string | UTC time the row was scraped, ISO 8601 |

Team rows also include `logo`, `city`, `country`, `coach`, `venue`, `capacity` and `founded`. Player rows include `photo`, `team`, `nationality`, `position`, `market_value` and `preferred_foot`; no birth dates, heights or other personal details.

### Input

Pick one `mode` per run:

| Mode | Uses | One row per |
| --- | --- | --- |
| `standings` | `leagueIds` | team in the table |
| `topScorers` | `leagueIds` | player in the scorer list |
| `livescore` | nothing | live or today's match |
| `matchDetails` | `matchIds` | match, with events, statistics, lineups and head-to-head |
| `teams` | `teamIds` | team, with its matches |
| `players` | `playerIds` | player, with career stats |
| `search` | `searchQueries` | team or match found |
| `leagues` | nothing | league, with its ID |

IDs can be plain numbers or links that contain `id=` and a number. Empty `leagueIds` means the big five: Premier League (1204), La Liga (1399), Serie A (1269), Bundesliga (1229) and Ligue 1 (1221). Find other IDs with `leagues` mode, team IDs in standings or search, and player IDs in top scorers, lineups and events.

```json
{
  "mode": "standings",
  "leagueIds": ["1204", "1399"]
}
```

```json
{
  "mode": "matchDetails",
  "matchIds": ["4376282"]
}
```

### Example output

````json
{
  "type": "standing",
  "id": "1204-9259",
  "league_id": "1204",
  "league_name": "Premier League",
  "season": "2026/2027",
  "position": 1,
  "team_id": "9259",
  "team_name": "Man City",
  "team_logo": "https://footballimages.ams3.cdn.digitaloceanspaces.com/teams70px/9259.jpg",
  "games_played": 6,
  "wins": 6,
  "draws": 0,
  "losses": 0,
  "goals_for": 16,
  "goals_against": 5,
  "goal_difference": 11,
  "points": 18,
  "scraped_at": "2026-10-16T16:58:51+00:00"
}
```json
{ "mode": "topScorers", "leagueIds": ["1204"] }
````

Each dataset item is one row; read `type` first, then the fields listed above.

# Actor input Schema

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

Choose one data type per run.

## `leagueIds` (type: `array`):

For standings and top scorers. Use mode 'List of leagues' to find IDs. Empty means Premier League, La Liga, Serie A, Bundesliga and Ligue 1. Example: 1204 (Premier League).

## `matchIds` (type: `array`):

For match details. IDs come from livescore, team matches or search results. Example: 4376282.

## `teamIds` (type: `array`):

For team profiles. IDs come from standings or search. Example: 9249 (Liverpool).

## `playerIds` (type: `array`):

For player profiles. IDs come from top scorers, lineups or match events. Example: 429714.

## `searchQueries` (type: `array`):

For search: team names or matches. Example: arsenal.

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

Stop after this many rows in total.

## Actor input object example

```json
{
  "mode": "standings",
  "leagueIds": [
    "1204"
  ],
  "maxItems": 50
}
```

# Actor output Schema

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

Standings, scorers, matches, teams or players.

# 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 = {
    "mode": "standings",
    "leagueIds": [
        "1204"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("distinct_readjustment/football-data-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 = {
    "mode": "standings",
    "leagueIds": ["1204"],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("distinct_readjustment/football-data-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 '{
  "mode": "standings",
  "leagueIds": [
    "1204"
  ],
  "maxItems": 50
}' |
apify call distinct_readjustment/football-data-scraper --silent --output-dataset

```

## MCP server setup

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