# FotMob Scraper — Football xG, Stats, Shotmaps, Lineups & Tables (`yugenox/fotmob-scraper`) Actor

Scrape FotMob football data by league, season and date: results and fixtures with xG and xGOT, team stats, shotmaps with xG per shot, goals and cards, lineups with player ratings, player match stats, venue, referee and league tables. 50+ named leagues, any FotMob competition by link. No login.

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

## Pricing

from $1.50 / 1,000 rows

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: football xG, match stats, shotmaps, lineups and league tables

Scrape **FotMob** football data by league, season and date. For every match you get the result and, when you switch on details, **xG and xGOT, possession, shots and 40+ other team stats (full match and each half), the shotmap with xG per shot, goals, assists, cards, substitutions and VAR decisions, lineups with formations and player ratings, match stats for every player, venue, referee, attendance and weather**. Add **league tables** (with form, qualification zones, the xG table and home / away tables) in the same run. Upcoming fixtures and live matches work too. No login, no cookies, no account.

Works for the Premier League, LaLiga, Bundesliga, Serie A, Ligue 1, the Champions League, the World Cup and about 50 other competitions by name, and for **any competition on FotMob** by its link.

### What you get

| | |
|---|---|
| **Match** | Match id and link, league, season, round, kick-off time (UTC), status (finished, live, scheduled, postponed …), teams, score, half-time score |
| **xG summary** | Home / away xG, xGOT, xG from open play and set plays, possession, shots, shots on target, big chances, corners, fouls, yellow and red cards |
| **Team stats** | Every stat FotMob shows (passes, long balls, crosses, duels, tackles, interceptions, distance covered, sprints …) for the whole match, 1st half and 2nd half |
| **Shotmap** | Every shot: minute, player, result (goal, saved, missed, post), situation, shot type, x / y position, xG, xGOT, on target, blocked, from inside the box, where it crossed the goal line |
| **Events** | Goals (scorer, assist, penalty, own goal, header, xG), cards with the reason, substitutions (in / out, injury), VAR decisions, missed penalties |
| **Lineups** | Formation, coach, team rating, starters and bench with shirt number, position, captain, age, country, market value, rating, minutes subbed in / out, and unavailable players |
| **Player stats** | Everyone who played: rating, minutes, goals, assists, xG, xA and about 60 more values (touches, passes, duels won, tackles, recoveries, saves, distance covered, top speed …) |
| **Match info** | Stadium, city, capacity, referee, attendance, player of the match, weather, highlights link |
| **League table** | Position, played, W / D / L, goals, goal difference, points, deductions, form (e.g. LWWDW), qualification zone, xG, xG conceded, expected points and xG-table position, home and away tables; one table per group for group stages |

### How to use it

1. Enter one or more **Leagues and cups**: a name (`Premier League`, `LaLiga`, `Champions League`, `MLS` …), a FotMob league link (`fotmob.com/leagues/47/overview/premier-league`) or a FotMob league id (`47`).
2. Optionally pick a **Season** (`2025/2026`, `2025-26`, `2026`, `2026 - Clausura`), which **Matches** you want (finished, upcoming, live or all), a **Date from / Date to** window and **Teams**.
3. Keep **Match details** on for xG, stats, shotmaps and lineups (off = fixtures and results only, cheaper and faster). Turn on **League table rows** for the standings.
4. Set **Max rows** and run.

You can also paste **Match links** (`fotmob.com/matches/arsenal-vs-chelsea/2ugr8l#5795452`, `fotmob.com/match/5795452`) or match ids.

#### Input examples

The 5 latest Premier League results with full details:

```json
{
  "leagues": ["Premier League"],
  "maxItems": 5
}
```

Every LaLiga match of 2024/25 with xG, shotmaps and lineups, plus the final table:

```json
{
  "leagues": ["LaLiga"],
  "season": "2024/2025",
  "matchStatus": "all",
  "includeTable": true,
  "maxItems": 0
}
```

This weekend's results in the top 5 leagues (schedule it every Monday):

```json
{
  "leagues": ["Premier League", "LaLiga", "Bundesliga", "Serie A", "Ligue 1"],
  "dateFrom": "3 days ago",
  "dateTo": "today",
  "maxItems": 0
}
```

The next 10 Champions League fixtures, no details needed:

```json
{
  "leagues": ["Champions League"],
  "matchStatus": "upcoming",
  "includeDetails": false,
  "maxItems": 10
}
```

All of Arsenal's league matches this season, with only the shotmap and player stats:

```json
{
  "leagues": ["Premier League"],
  "teams": ["Arsenal"],
  "matchStatus": "all",
  "detailSections": ["shots", "playerStats"],
  "maxItems": 0
}
```

### Output example

One match row (trimmed: the real row has all team stats for 3 periods, every shot and event, both full lineups and every player's stats):

```json
{
  "type": "match",
  "matchId": "5795501",
  "url": "https://www.fotmob.com/matches/liverpool-vs-arsenal/2tmaz7#5795501",
  "leagueName": "Premier League",
  "season": "2026/2027",
  "round": "9",
  "kickoffUtc": "2026-11-01T16:30:00.000Z",
  "status": "finished",
  "homeTeam": "Liverpool",
  "awayTeam": "Arsenal",
  "homeScore": 0,
  "awayScore": 1,
  "halfTimeScore": "0 - 1",
  "homeXg": 1.05,
  "awayXg": 0.96,
  "homeXgot": 0,
  "awayXgot": 1.44,
  "homePossession": 56,
  "awayPossession": 44,
  "homeShots": 17,
  "awayShots": 10,
  "homeFormation": "4-2-3-1",
  "awayFormation": "4-2-3-1",
  "stadium": "Anfield",
  "referee": "Andy Madley",
  "playerOfTheMatch": { "playerId": "654096", "name": "Declan Rice", "team": "Arsenal", "rating": 8.1 },
  "stats": [
    { "period": "All", "group": "Passes", "key": "accurate_passes", "title": "Accurate passes", "home": 380, "away": 269, "homeText": "380 (82%)", "awayText": "269 (72%)" }
  ],
  "shots": [
    { "minute": 16, "side": "away", "player": "Kai Havertz", "result": "Goal", "situation": "RegularPlay", "shotType": "LeftFoot", "x": 101.49, "y": 37.74, "xg": 0.64, "xgot": 0.99, "isOnTarget": true, "isFromInsideBox": true }
  ],
  "events": [
    { "minute": 16, "type": "Goal", "side": "away", "player": "Kai Havertz", "assist": "Declan Rice", "penalty": false, "ownGoal": false, "score": "0 - 1", "xg": 0.64 }
  ],
  "lineups": {
    "home": { "team": "Liverpool", "formation": "4-2-3-1", "rating": 6.6, "starters": [{ "name": "Alisson Becker", "shirtNumber": "1", "position": "GK", "age": 34, "rating": 5.9 }] }
  },
  "playerStats": [
    { "name": "Virgil van Dijk", "team": "Liverpool", "position": "DF", "rating": 7.54, "minutesPlayed": 90, "xg": 0.05, "xa": 0.11, "stats": { "touches": 80, "accurate_passes": 55, "accurate_passes_total": 67, "duel_won": 8, "physical_metrics_distance_covered": 9241 } }
  ],
  "searchQuery": "Premier League",
  "scrapedAt": "2026-11-01T21:01:17.670Z"
}
```

A league table row:

```json
{
  "type": "standing",
  "leagueName": "LaLiga",
  "season": "2024/2025",
  "table": "LaLiga",
  "position": 1,
  "team": "Barcelona",
  "played": 38,
  "points": 88,
  "goalsFor": 102,
  "goalsAgainst": 39,
  "form": "WWWLW",
  "qualification": "Champions League",
  "xg": 92.39
}
```

Every row of a type has the same columns; a value FotMob doesn't have is `null`.

### Pricing

You pay per result (pay per event):

| Event | Price |
|---|---|
| Match or table row saved | **$1.50 per 1,000** rows |
| Match details read (xG, stats, shotmap, lineups, player stats) | **$3.50 per 1,000** matches, on top of the row: a fully detailed match costs $0.005 |
| League season read | $1.00 per 1,000 league seasons ($0.001 each, the whole season's fixtures and table in one go) |
| Run start | $0.002 per run |

Examples: the 5 latest Premier League results with details cost about $0.028; a full Premier League season (380 matches) with every detail about $1.90; the season's 380 results without details about $0.57.

### Use cases

- **Football analytics and betting models**: xG, xGOT and shot-level data for whole seasons and leagues.
- **Scouting and recruitment**: player ratings, minutes and per-match stats across leagues.
- **Fantasy football and content**: weekly results, lineups, player of the match and form tables.
- **Dashboards and apps**: fixtures, live scores and standings for your own site, refreshed on a schedule.

### Tips

- **One row per shot or per player**: in the Apify API, add `&unwind=shots` (or `&unwind=playerStats`, `&unwind=events`) to the dataset items URL to get the nested lists as flat rows, ready for a spreadsheet.
- Keep only the **Detail sections** you need to make rows smaller and exports faster; the xG / possession / shots / venue summary columns are always filled.
- **Finished** returns the newest results first; **Upcoming** the soonest fixtures first; **All** is in kick-off order.
- Leave **Season** empty for the current season. During the summer break the previous season is used automatically when the new one hasn't started yet.
- A run reads roughly 1,500 matches with details per hour (fixture and result rows without details take seconds). For several whole seasons with details, raise **Timeout** in the run options; if a run does reach its timeout, everything saved so far is kept.
- Smaller competitions have less detail on FotMob (no xG or player stats); those columns are then `null`. The `coverageLevel` column shows what FotMob has for the match.

### FAQ

**Do I need a FotMob account, cookies or a login?** No. The scraper reads the same public pages any visitor sees.

**Which competitions are supported?** Every competition on FotMob: about 50 popular leagues and cups work by name, and every other one by its FotMob link or id (open the competition on fotmob.com and copy the link).

**How fresh is the data?** As fresh as FotMob's own pages, usually a few minutes behind live play. Live matches show the score and stats at the moment of the run.

**Why does a match have no xG or player stats?** FotMob doesn't publish them for every competition. The row is still saved with the score, teams and whatever FotMob has.

**What happens if FotMob doesn't answer?** The run stops cleanly with a plain message and keeps everything saved so far; you are never charged for rows you didn't get.

**Is it legal to scrape FotMob?** This Actor only collects publicly available data: match results, statistics, lineups and league tables that anyone can see on FotMob without an account. Collecting publicly available data is generally legal, but you're responsible for how you use it, including FotMob's terms and any rights in sports data in your country. If you're unsure, check with a lawyer. More on this: [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

**Does it access any private data?** No. It reads only public match, team and competition pages. The people in the data are professional players, coaches and referees named in their public sporting role; no private accounts, contact details or personal profiles are collected. It follows FotMob's robots.txt.

*This Actor is not affiliated with, endorsed by or sponsored by FotMob.*

# Actor input Schema

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

Competitions to scrape: a name ("Premier League", "LaLiga", "Bundesliga", "Serie A", "Ligue 1", "MLS", "Champions League", "World Cup" and about 50 more), a FotMob league link (fotmob.com/leagues/47/overview/premier-league) or a FotMob league id (47). Any competition on FotMob works by its link or id.

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

Optional: the season as FotMob writes it, e.g. "2025/2026" (also "2025-26"), "2026" for calendar-year leagues, or "2026 - Clausura". Empty = the current season (or the previous one if the current season hasn't started yet).

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

Which matches of the season: finished results (newest first), upcoming fixtures (soonest first), matches being played right now, or all of them (in kick-off order).

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

Optional: only matches kicking off on or after this day (UTC). 2026-10-01, today, yesterday, "7 days ago" or "-7".

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

Optional: only matches kicking off on or before this day (UTC). 2026-10-31, today, tomorrow, "in 7 days" or "+7".

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

Optional: only matches (and table rows) of these teams, e.g. "Arsenal", "Real Madrid". Part of the name is enough; a FotMob team id works too.

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

Optional: FotMob match links (fotmob.com/matches/arsenal-vs-chelsea/2ugr8l#5795452 or fotmob.com/match/5795452) or match ids. Each one is read from its match page. League links pasted here work like the Leagues field.

## `includeDetails` (type: `boolean`):

Read each played match's own page for xG and xGOT, possession, shots and every other team stat, the shotmap with xG per shot, goals / cards / substitutions, lineups with formations and player ratings, player match stats, venue, referee and attendance. Charged per match (see Pricing). Off = fixture and result rows only (cheaper and much faster). Upcoming matches never need it.

## `detailSections` (type: `array`):

Which detail lists to put in each match row (the xG / possession / shots / venue / referee summary columns are always filled). Leave out what you don't need to keep rows small.

## `includeTable` (type: `boolean`):

Also save the league table: one row per team with position, points, goals, form, qualification zone, xG / xPoints table and home / away tables (group stages: one table per group). Table rows count toward Max rows and come before the matches.

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

Maximum number of rows (matches + table rows) for the whole run, shared fairly between your leagues. 0 = everything.

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

Apify Proxy (datacenter) is used by default and comes with every Apify plan. FotMob does not need residential proxies: if you pick them, the run uses datacenter instead.

## Actor input object example

```json
{
  "leagues": [
    "Premier League"
  ],
  "matchStatus": "finished",
  "includeDetails": true,
  "detailSections": [
    "stats",
    "shots",
    "events",
    "lineups",
    "playerStats"
  ],
  "includeTable": false,
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

All scraped rows.

## `run` (type: `string`):

Status and statistics for this run.

## `report` (type: `string`):

RUN_REPORT: how the run ended, leagues read, counts, requests and proxy use.

# 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": [
        "Premier League"
    ],
    "maxItems": 5,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("yugenox/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": ["Premier League"],
    "maxItems": 5,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("yugenox/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": [
    "Premier League"
  ],
  "maxItems": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call yugenox/fotmob-scraper --silent --output-dataset

```

## MCP server setup

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