# FotMob Match Stats Scraper (`neverempty/fotmob-match-stats-scraper`) Actor

Football match stats from FotMob: score, scorers and minutes, xG, possession, shots and every team stat, player ratings, line-ups and the event timeline. Read matches by link, or every match of a league, team or date range. Monitoring mode returns each match once after the final whistle.

- **URL**: https://apify.com/neverempty/fotmob-match-stats-scraper.md
- **Developed by:** [NeverEmpty](https://apify.com/neverempty) (community)
- **Categories:** Sports, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $7.10 / 1,000 match with full stats

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

## FotMob Match Stats Scraper: xG, Player Ratings, Line-ups & Events

Get the **full stats of any football match on FotMob in one row**: score, scorers with minutes, xG and xGOT, possession, shots and every other team stat as home and away columns, **FotMob player ratings and per-player stats**, line-ups, cards, substitutions and the event timeline. **Name matches by link, or give a league, a team or a date range** and every match is found and read in the same run, ready to open in Excel or Google Sheets.

With monitoring mode on a daily or hourly schedule, **each match is returned once, right after its final whistle**, and never again.

Paste lines such as `https://www.fotmob.com/match/4813585`, `Premier League`, `LaLiga`, `https://www.fotmob.com/teams/8668/overview/everton` or `47`.

### Input

| Field | What it does |
|---|---|
| `matches` | One match per line: a fotmob.com match link or the match number |
| `leagues` | One league per line: a short name (`Premier League`, `LaLiga`, `Serie A`, `Bundesliga`, `Ligue 1`, `Champions League`, `MLS`, `J1 League`, `Brasileirao`, `Liga MX`, `Saudi Pro League`, ...), the FotMob league number (`47`) or a fotmob.com league link. A link to a past season (`?season=2023-2024`) needs `dateFrom` and `dateTo` set to days of that season |
| `teams` | One team per line: a fotmob.com team link or the FotMob team number |
| `dateFrom`, `dateTo` | The days to read: `2026-10-24`, `today`, `yesterday`, `3 days ago` or `-3`. Up to 93 days per run. Empty = the current season of the leagues and teams |
| `timezone` | The time zone your dates mean, such as `Europe/London` or `America/New_York` (default `UTC`). `kickoffLocal` and `localDate` are written in it |
| `matchStatus` | `finished` (default), `live`, `upcoming` or `all` |
| `detailLevel` | `details` (every figure, default) or `list` (teams, kick-off, status and score only, cheaper) |
| `includePlayers` | Player ratings and stats for every player who played (default on) |
| `includeLineups` | Starting eleven, substitutes, formation and coach (default on) |
| `includeShots` | Every shot with minute, player, xG, xGOT, outcome and pitch position (default off) |
| `includeMomentum` | Who was on top, minute by minute (default off) |
| `maxMatches` | Stop after this many match rows (default 50). Monitoring keeps to it too, oldest first, and returns the rest in the next run |
| `monitoringMode` | Return only finished matches that an earlier monitoring run has not returned |
| `monitorName` | Optional name for one monitoring schedule (`premier-league`, `my-teams`). Each name remembers its own matches |
| `resetMonitoringState` | Forget this monitor's remembered matches, in a run you start by hand. Turn it off afterwards |
| `useProxy` | Move to fresh Apify datacenter proxy addresses if FotMob refuses requests (default on) |

Several leagues, several teams, named matches and a date range can all go in one run. A match that is named and also found through a league is returned once.

#### Examples

Every finished Premier League and LaLiga match of last weekend, in London time:

```json
{ "leagues": ["Premier League", "LaLiga"], "dateFrom": "2026-10-17", "dateTo": "2026-10-19", "timezone": "Europe/London" }
```

Every finished match of one team this season, newest first:

```json
{ "teams": ["https://www.fotmob.com/teams/8668/overview/everton"], "maxMatches": 20 }
```

A daily schedule that returns each new result once:

```json
{ "leagues": ["Premier League", "Bundesliga", "Serie A"], "monitoringMode": true }
```

### What you get

One row per match. The dataset has four ready-made tables: **Results, scorers and xG**, **Team stats, home vs away**, **Venue, referee and line-ups** and **Goals, cards, player ratings and line-ups**.

- **Result**: `score`, `homeScore`, `awayScore`, `halfTimeScore`, `penaltyScore`, `aggregateScore`, `winner` (`home`, `away` or `draw`), `homeScorers` and `awayScorers` with minutes (`Antoine Semenyo 43'; Erling Haaland 81'`, with `(pen)` and `(og)`).
- **Team stats as flat columns**, one home and one away column each, so a spreadsheet can sort and chart them directly: `homeXg`/`awayXg`, xGOT, open-play, set-play and non-penalty xG, possession, shots (total, on target, off target, blocked, inside and outside the box, woodwork), big chances and big chances missed, touches in the opposition box, passes and pass accuracy, long balls, crosses, corners, offsides, fouls, yellow and red cards, saves, tackles, interceptions, clearances, blocks, duels (ground and aerial) and dribbles.
- **Per-period team stats** (`teamStats`): the same table for the whole match, the first half and the second half.
- **Players** (`players`): every player who played, with team, position, shirt number, started or came on, minutes, **FotMob rating**, goals, assists, xG, xA, xGOT, shots, chances created, passes, crosses, long balls, touches, dribbles, tackles, interceptions, clearances, recoveries, duels, aerials, fouls, saves, goals prevented and fantasy points.
- **PLAYERS.csv** in the run's key-value store: the same players as one flat table, one row per player per match with `matchId`, `opponent` and the date, ready for a pivot table. Very large runs are split into `PLAYERS-2.csv`, `PLAYERS-3.csv`, ...
- **Player of the match** with team and rating, and the team ratings.
- **Timeline**: `goals` (minute, added time, scorer, assist, penalty, own goal, score after the goal), `cards`, `substitutions`, `penaltyShootout` and the full `events` list in order.
- **Line-ups** (`lineups`): starting eleven and substitutes with positions, formations and coaches, also for upcoming matches when FotMob shows the predicted or confirmed line-ups.
- **Match info**: league, round, country, kick-off in UTC and in your time zone, stadium, city, capacity, surface, attendance, referee, weather, the head-to-head record and the highlights link.
- **Shots** (`shots`, optional) and **momentum** (`momentum`, optional).

`detailDepth` says how much FotMob covers for the match: `full` (team stats or player ratings), `basic` (score and events only, common in lower leagues), `preview` (not started) or `list` (fixture list only).

### Monitoring mode

Put the leagues or teams you follow on a daily or hourly schedule with `monitoringMode` on.

- Each run looks at the last three days in your time zone (or the dates you give) and returns **only matches that have finished and that an earlier monitoring run has not returned**.
- A match is remembered as soon as its row is delivered, so a run that is stopped halfway does not return it twice.
- Matches still being played or not started are counted in one row and come in a later run.
- `maxMatches` applies here too: the oldest finished matches come first, and matches that did not fit come in the next run.
- A run with nothing new returns one `no-new-finished-match` row, which is not charged.
- `detailLevel: list` and `details` monitors remember their matches apart. Several schedules that follow overlapping leagues or teams each get every match once when each has its own `monitorName`.
- `resetMonitoringState` forgets the remembered matches of this monitor in a run you start by hand. A run started by a schedule ignores it and says so in a `reset-not-applied` row (not charged), so a schedule never charges every match again.
- Monitoring is for recent matches: `dateFrom` more than 300 days ago is refused. For past seasons, use a normal run.

### What is charged

- **match-details**: one per match row with the full stats (`detailDepth: full`).
- **match-listed**: one per cheaper row: fixture-list rows (`detailLevel: list`), matches FotMob covers with score and events only (`basic`) and previews of upcoming matches (`preview`).
- `chargedAs` on every row names the event it was charged as.
- Not charged: `not-found`, `invalid-input`, `duplicate-input`, `not-started`, `in-play`, `postponed-or-cancelled` (also under `matchStatus: all`), `unreadable`, `blocked`, `not-returned`, `no-new-finished-match`, `not-read`, `budget-reached` and `reset-not-applied` rows. There is no start fee and no monthly fee.

If you set a maximum total charge, the run stops before it, lists the matches it did not read in a `not-read` row and charges nothing for them.

### Rows that explain instead of failing

| status | When |
|---|---|
| `not-found` | FotMob has no match, league or team with that number |
| `invalid-input` | The line is not a fotmob.com link, a number or a known league name, or a date or time zone could not be read |
| `duplicate-input` | The same match, league or team appeared earlier in the list |
| `not-started` | A named match has not kicked off yet. Run again after the final whistle, or set `matchStatus` to `upcoming` for the preview |
| `in-play` | A named match is being played now. Run again after the final whistle, or set `matchStatus` to `live` |
| `postponed-or-cancelled` | FotMob shows the match as postponed, cancelled or abandoned (also with `matchStatus: all`) |
| `not-returned` | Matches found but not returned because of their status, or already returned by an earlier monitoring run. Also the one row of a run that found no match for the leagues, teams and dates given |
| `unreadable` | FotMob's answer did not have the parts this Actor reads. No figure is guessed |
| `blocked` | FotMob kept refusing requests (HTTP 403/429) even from fresh addresses |
| `not-read` | Matches not read because `maxMatches` or the maximum total charge was reached, or the run stopped after a `blocked` row or three unreadable matches in a row |
| `no-new-finished-match` | Monitoring: nothing new since the last run |
| `budget-reached` | A match was ready but did not fit inside the run's maximum total charge |
| `reset-not-applied` | `resetMonitoringState` was on in a run started by a schedule, or without monitoring mode, so nothing was forgotten |

Every one of these rows says what happened and what to do next in `note`.

### Good to know

- **Figures are FotMob's own**, including xG, ratings and player of the match, read at the moment of the run. FotMob sometimes corrects stats in the hours after a match.
- **Coverage depends on the competition.** Top leagues have full stats and ratings; many lower leagues have the score, scorers and cards only. Missing figures are null, never 0.
- **Dates are local to your time zone.** A match at 00:30 UTC on Sunday is a Saturday match in New York. Leave the time zone at `UTC` to match FotMob's own day lists.
- **Without dates**, a league or team reads the current season, newest finished matches first (or soonest upcoming first).
- **Live rows** carry the figures so far and the current minute, and are charged like any other row.
- Requests go to the public fotmob.com pages' data with a pause between requests. No login and no FotMob account are used. If FotMob refuses requests from one address, the run moves to fresh Apify datacenter proxy addresses (you can turn this off).
- This Actor is not affiliated with, endorsed by or sponsored by FotMob. FotMob's terms restrict automated collection and commercial reuse of its content; decide for yourself whether your use is permitted before you run it.

### FAQ

**How do I get xG and player ratings for every Premier League match into a spreadsheet?**
Put `Premier League` in `leagues`, set the dates, run, and export the dataset as CSV or Excel. Team xG is in `homeXg` and `awayXg`; player ratings are in `PLAYERS.csv` in the key-value store, one row per player.

**How do I get every result of a league automatically after each matchday?**
Turn on `monitoringMode` and put the run on a daily schedule. Each finished match comes back once.

**Can I read several leagues and dates in one run?**
Yes. Put every league on its own line and set `dateFrom` and `dateTo`; each league's matches on each day are read in one run.

**Does it work for live matches?**
Yes. Set `matchStatus` to `live` to get the matches being played now with the score and stats so far.

**Can I get upcoming fixtures with line-ups?**
Set `matchStatus` to `upcoming`. Rows carry kick-off, venue, referee and the line-ups when FotMob shows them.

### Thanks for using this Actor

We build these tools for people who run them every day, and we improve them from what users tell us.

- **Missing a field, a league name, or need another filter?** Tell us in the **Issues** tab. If the data is there, we add it.
- **Found a bug or a wrong value?** Post the run ID in the **Issues** tab. Wrong data is the thing we fix first.
- **If something does not work as you expected**, write to us in the **Issues** tab at any time.

If this Actor saved you time, a short review helps other people find it.

# Actor input Schema

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

One match per line: a FotMob match link (https://www.fotmob.com/match/4813585, or the long link that ends in #4813585) or just the match number. Each match comes back as one row with the score, scorers and minutes, xG, possession, shots and every other team stat, player ratings, line-ups and the event timeline. A number FotMob does not have comes back as a "not-found" row that is not charged.

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

One league per line: a short name (Premier League, LaLiga, Serie A, Bundesliga, Ligue 1, Champions League, Europa League, MLS, Eredivisie, Championship, J1 League, Brasileirao, Liga MX, Saudi Pro League, Copa Libertadores, ...), the FotMob league number (47) or a fotmob.com league link (https://www.fotmob.com/leagues/47/overview/premier-league). With dates, every match of these leagues on those days is read. Without dates, the league's current-season schedule is read (finished matches newest first, up to Maximum matches).

## `teams` (type: `array`):

One team per line: a fotmob.com team link (https://www.fotmob.com/teams/8668/overview/everton) or the FotMob team number (8668). With dates, every match of these teams on those days is read. Without dates, the team's matches this season are read.

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

First day to read, in your time zone below: 2026-10-24, today, yesterday, "3 days ago" or -3. With no league or team, every match FotMob lists on those days is read (often 300 to 800 a day, so set Maximum matches). Leave both dates empty to read the current season of the leagues and teams.

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

Last day to read (included). Empty = the same day as From date. At most 93 days per run.

## `timezone` (type: `string`):

The time zone your dates mean and that kickoffLocal and localDate are written in, such as UTC, Europe/London, America/New_York or Asia/Tokyo. A match at 00:30 UTC is on the previous day in New York.

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

Finished = only matches after the final whistle (the default). Live = only matches being played now, with the figures so far. Upcoming = only matches not started yet, with the predicted line-ups, venue and referee. All = every match found, including postponed and cancelled ones. Named matches with another status come back as a row that says when to run again and is not charged.

## `detailLevel` (type: `string`):

Full match stats = one row per match with every figure (charged as match-details when FotMob has team stats or player ratings for the match; matches FotMob covers with score and events only, and previews, are charged as match-listed). Fixture list only = teams, kick-off, status and score, charged as match-listed: cheaper and faster for schedules and results.

## `includePlayers` (type: `boolean`):

Add every player who played, with FotMob rating, minutes, goals, assists, xG, xA, shots, passes, duels and more, in the match row and as one flat table (PLAYERS.csv in the run's key-value store, one row per player per match).

## `includeLineups` (type: `boolean`):

Add the starting eleven, substitutes, formation and coach of both teams.

## `includeShots` (type: `boolean`):

Add every shot with minute, player, xG, xGOT, outcome, body part and pitch position.

## `includeMomentum` (type: `boolean`):

Add FotMob's momentum line: one value per minute, positive when the home team was on top and negative when the away team was.

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

The run stops after this many match rows and lists the matches it did not read in a row that is not charged. Monitoring mode keeps to it too, oldest match first; matches that did not fit are not remembered and come in the next monitoring run.

## `monitoringMode` (type: `boolean`):

For a daily or hourly schedule. Each run looks at the leagues and teams (and dates; without dates, the last three days in your time zone), returns only finished matches that an earlier monitoring run has not returned, and remembers them. A run with nothing new returns one row that is not charged, and remembered matches are not read again. Dates more than 300 days ago are refused in monitoring mode (use a normal run for past seasons). Postponed and cancelled matches are never charged.

## `monitorName` (type: `string`):

Give each monitoring schedule its own name, such as premier-league or my-teams, when several schedules follow overlapping leagues or teams: each name remembers its own matches, so every schedule gets each match once. Letters, digits and "-", up to 40 characters. Empty = one shared memory per detailLevel (list and details are remembered apart).

## `resetMonitoringState` (type: `boolean`):

Monitoring only, and only in a run you start by hand: clears the remembered matches of this monitor (the same detailLevel and monitorName), so this run returns them again. Turn it off afterwards. Runs started by a schedule ignore it and say so in a row that is not charged, so a schedule never charges every match again.

## `useProxy` (type: `boolean`):

Requests go directly to FotMob with a pause between them. When FotMob refuses a request (HTTP 403 or 429), the run asks again from fresh Apify datacenter proxy addresses. Turn this off to never use a proxy: a refusal is then waited out once and, if it continues, the run stops and lists what it did not read.

## Actor input object example

```json
{
  "matches": [
    "https://www.fotmob.com/match/4813585",
    "https://www.fotmob.com/match/5795461"
  ],
  "timezone": "UTC",
  "matchStatus": "finished",
  "detailLevel": "details",
  "includePlayers": true,
  "includeLineups": true,
  "includeShots": false,
  "includeMomentum": false,
  "maxMatches": 50,
  "monitoringMode": false,
  "resetMonitoringState": false,
  "useProxy": true
}
```

# Actor output Schema

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

One row per match: score, half-time and penalty score, winner, scorers with minutes, xG, xGOT, possession, shots and every other team stat as home and away columns, player of the match, venue, attendance, referee, formations, coaches, goals, cards, substitutions, the event timeline, player ratings and line-ups. Matches FotMob does not have, matches not started or still being played, lines that are not matches and runs with nothing new come back as their own rows and are not charged.

## `players` (type: `string`):

One row per player per match: team, position, started, minutes, FotMob rating, goals, assists, xG, xA, shots, passes, duels, tackles and more. Very large runs are split into PLAYERS-2.csv, PLAYERS-3.csv, ...

# 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 = {
    "matches": [
        "https://www.fotmob.com/match/4813585",
        "https://www.fotmob.com/match/5795461"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("neverempty/fotmob-match-stats-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 = { "matches": [
        "https://www.fotmob.com/match/4813585",
        "https://www.fotmob.com/match/5795461",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("neverempty/fotmob-match-stats-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 '{
  "matches": [
    "https://www.fotmob.com/match/4813585",
    "https://www.fotmob.com/match/5795461"
  ]
}' |
apify call neverempty/fotmob-match-stats-scraper --silent --output-dataset

```

## MCP server setup

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