# FotMob Scraper - $1.20 / 1000 Results (`scrapeunblocker/fotmob-scraper`) Actor

FotMob football data as JSON: a league's fixtures and results, full league records with table, xG and top players, and full match records with events, lineups, player ratings, statistics and shots. $1.20 per 1000 fixture rows, $2.50 per 1000 league or match records.

- **URL**: https://apify.com/scrapeunblocker/fotmob-scraper.md
- **Developed by:** [Scrapeunblocker](https://apify.com/scrapeunblocker) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

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

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

## FotMob Scraper

Scrape **FotMob** (fotmob.com) football data as clean JSON. Get a league's **fixtures and results**, a **full league record** with table, expected goals and top players, or a **full match record** with events, lineups, ratings, statistics and shots.

### Features

- **Fixtures and results** - round, start time, status, teams and score for every match of a league's season.
- **League records** - every table of the competition (conferences and cup groups each get their own), with goals, points, form, expected goals and qualification zone, plus home and away splits, top players and top teams per stat, and the knockout bracket.
- **Full match records** - goals with the running score, cards, substitutions, formations, coaches, player ratings, statistics for the match and each half, shots with expected goals and pitch position, per-player statistics and head-to-head record.
- **Past seasons** - pick a season, such as `2024/2025`.

### Use cases

- **Football analytics** - build models on expected goals, shots and player ratings.
- **Scouting** - collect per-player match statistics across a league.
- **Fantasy and media** - keep tables, fixtures and lineups current on a schedule.
- **Betting research** - use form, xG tables and head-to-head records.

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `mode` | string | `fixtures` | `fixtures`, `league` or `match`. |
| `leagues` | array | 47, 87, 130 | FotMob league ids or links. 47 is the Premier League, 87 LaLiga, 42 the Champions League, 130 MLS. |
| `matches` | array | - | For `match` mode: match ids or links. Leave empty to use each league's latest played matches. |
| `season` | string | current | A season as FotMob writes it, such as `2024/2025` or `2026`. |
| `matchStatus` | string | `any` | For `fixtures`: `any`, `played` or `upcoming`. |
| `maxResults` | integer | `20` | Matches per league (1-500). When a league has more, the ones closest to now are taken. |
| `proxyCountry` | string | - | Optional two-letter country code the requests are sent from. |

### Output

In `fixtures` mode each result is one match:

```json
{
  "id": 5795363,
  "leagueId": 47,
  "leagueName": "Premier League",
  "season": "2026/2027",
  "round": 1,
  "url": "https://www.fotmob.com/match/5795363",
  "startTime": "2026-08-21T19:00:00Z",
  "status": { "started": true, "finished": true, "reason": "Full-Time" },
  "home": { "id": 9825, "name": "Arsenal", "score": 3 },
  "away": { "id": 8669, "name": "Coventry City", "score": 0 }
}
```

In `league` mode a result has `table`, `fixtures`, `topPlayers`, `topTeams` and `availableSeasons`. In `match` mode it has `events`, `lineups`, `statistics`, `shots`, `playerStats` and `headToHead`.

### Good to know

- Sections FotMob does not hold for a match, such as statistics before kick-off, are left out.
- Inputs that fail are listed in the `ERRORS` key-value record and are not charged. A match reached twice is charged once.

### Pricing

$1.20 per 1000 fixture rows and $2.50 per 1000 league or match records. Start fee $0.00005.

# Actor input Schema

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

Fixtures: one result per match of each league. League records: one result per league and season with table, every fixture, top players and bracket. Full match records: one result per match, taken from Match ids below, or when that is empty from each league's latest played matches.

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

FotMob league ids or fotmob.com/leagues/... links. 47 is the Premier League, 87 LaLiga, 42 the Champions League, 130 MLS.

## `matches` (type: `array`):

For full match records: FotMob match ids or links. Leave empty to use each league's latest played matches.

## `season` (type: `string`):

A season as FotMob writes it, such as 2024/2025 or 2026. Leave empty for the current one.

## `matchStatus` (type: `string`):

For fixtures: keep only played or only upcoming matches.

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

How many matches to take from each league. When a league has more, the ones closest to now are taken.

## `proxyCountry` (type: `string`):

Optional two-letter country code the requests are sent from, such as GB or DE. Leave empty to let the scraper choose.

## Actor input object example

```json
{
  "mode": "fixtures",
  "leagues": [
    "47",
    "87",
    "130"
  ],
  "matchStatus": "any",
  "maxResults": 20
}
```

# Actor output Schema

## `items` (type: `string`):

Collected results

# 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 = {
    "leagues": [
        "47",
        "87",
        "130"
    ],
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapeunblocker/fotmob-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 = {
    "leagues": [
        "47",
        "87",
        "130",
    ],
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("scrapeunblocker/fotmob-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 '{
  "leagues": [
    "47",
    "87",
    "130"
  ],
  "maxResults": 20
}' |
apify call scrapeunblocker/fotmob-scraper --silent --output-dataset

```

## MCP server setup

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