# FotMob Scraper - Live Scores, xG, Ratings & Standings (`crawloop/fotmob-scraper`) Actor

Scrape FotMob football data in one Actor: fixtures, live scores, league standings, match details with lineups/xG/player ratings, team squads, player profiles, transfers, and search. HTTP JSON API alternative — Python, Node.js, MCP.

- **URL**: https://apify.com/crawloop/fotmob-scraper.md
- **Developed by:** [Andrej Kiva](https://apify.com/crawloop) (community)
- **Categories:** News, Developer tools, Integrations
- **Stats:** 3 total users, 2 monthly users, 93.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 match (fixtures / live / result)s

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/platform/actors/running/actors-in-store#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

## FotMob Scraper - Live Scores, xG, Ratings & Standings

> Unofficial community Actor. Not affiliated with FotMob.

**FotMob scraper** and **FotMob API alternative** for football fixtures, live scores, league standings, match details (lineups, xG, player ratings), team squads, player profiles, transfers, and search — in **one Actor**. Pull structured JSON with **Python**, **Node.js**, **cURL**, or **MCP**. Optional `locale=de` for German URLs and Accept-Language.

### Sports data suite

| Actor | Role |
| --- | --- |
| FotMob Scraper ◄── you are here | Football scores, xG, ratings, standings, transfers |
| [PrizePicks Player Props Scraper](https://apify.com/crawloop/prizepicks-player-props-scraper) | US DFS pick'em lines |
| [Underdog Fantasy Player Props](https://apify.com/crawloop/underdog-fantasy-player-props-scraper-real-time-lines-odds) | Underdog props & odds |
| [DFS Multi-Source Props Scraper](https://apify.com/crawloop/dfs-multi-source-props-scraper) | Cross-platform props board |

**Suite next step:** after FotMob match ratings / xG, run [PrizePicks Player Props Scraper](https://apify.com/crawloop/prizepicks-player-props-scraper) or [DFS Multi-Source Props Scraper](https://apify.com/crawloop/dfs-multi-source-props-scraper) to join player form with live pick'em lines.

### When to use

- Pull **today's fixtures, live scores, and final results** across all competitions in one run
- Export **Bundesliga / Premier League standings**, season fixtures, and top scorers
- Deep-dive a match: **lineups, events, team stats (xG), per-player ratings**
- Load **team squads** or **player profiles** by FotMob id / URL
- Track the **transfers feed** or **search** teams and players by name
- Chain date matches → match details with `enrichMatchDetails` (no glue Actors)

**When not to use:** deep market-value / transfer-fee history — this Actor focuses on FotMob scores, ratings, and match analytics.

### Key features

- **Eight modes** — `matches`, `leagues`, `league`, `match`, `team`, `player`, `transfers`, `search` (+ `auto`)
- **One Actor vs fragmented suites** — directory → standings → match details without hopping listings
- **Enrich toggle** — `enrichMatchDetails` expands fixtures into full detail records in the same run
- **xG & ratings** — team stats and per-player ratings when FotMob publishes them
- **Locale** — `en` or `de` (German site paths / language headers; same global ids)
- **HTTP-first** — `curl_cffi` Chrome TLS against FotMob `/api/data/*`; browser not required
- **Failed lookups not written** — only successful records land in the dataset

### Input

| Field | Description |
| --- | --- |
| `mode` | `auto` / `matches` / `leagues` / `league` / `match` / `team` / `player` / `transfers` / `search` |
| `dates` / `dateFrom` / `dateTo` | Day buckets for matches (`YYYYMMDD`) |
| `timezone` | Day timezone (e.g. `Europe/Berlin`) |
| `matchStatus` | `all` / `finished` / `live` / `upcoming` |
| `leagueIds` / `leagueUrls` | Competitions (filter or league mode targets) |
| `seasons` | Optional season strings (`2025/2026`) |
| `matchIds` / `matchUrls` | Match detail targets |
| `teamIds` / `teamUrls` | Team profile targets |
| `playerIds` / `playerUrls` | Player profile targets |
| `searchQueries` | Search mode terms |
| `transferPages` | Pages for transfers mode |
| `enrichMatchDetails` | Also fetch match details in matches/league modes |
| `include*` toggles | Standings, fixtures, lineups, xG stats, shotmap, raw… |
| `locale` | `en` or `de` |
| `maxItems` | Cap (`0` = unlimited) |
| `proxyConfiguration` | Optional Apify Proxy |

#### Example — today's matches (Berlin timezone)

```json
{
  "mode": "matches",
  "timezone": "Europe/Berlin",
  "matchStatus": "all",
  "locale": "de",
  "maxItems": 200
}
```

#### Example — Bundesliga standings + fixtures

```json
{
  "mode": "league",
  "leagueIds": ["54"],
  "includeStandings": true,
  "includeFixtures": true,
  "includeTopPlayers": true
}
```

#### Example — match details (lineups, xG, ratings)

```json
{
  "mode": "match",
  "matchIds": ["4506324"],
  "includeLineups": true,
  "includeTeamStats": true,
  "includePlayerStats": true,
  "includeEvents": true
}
```

#### Example — team squad

```json
{
  "mode": "team",
  "teamIds": ["9825"],
  "includeSquad": true,
  "includeFixtures": true
}
```

#### Example — transfers feed

```json
{
  "mode": "transfers",
  "transferPages": 2,
  "maxItems": 100
}
```

#### Example — search teams / players

```json
{
  "mode": "search",
  "searchQueries": ["Bayern", "Haaland"],
  "maxItems": 50
}
```

### Output

Every dataset item has `recordType`, `source`, and `scrapedAt`. Main shapes:

| `recordType` | Highlights |
| --- | --- |
| `match` | `matchId`, teams, score, status, `utcTime`, `leagueId`, `matchUrl` |
| `leagueDir` | `leagueId`, name, category, `ccode`, `leagueUrl` |
| `league` | standings, fixtures, `matchIds`, top players, season |
| `matchDetail` | lineups, events, `teamStats` (xG…), `playerStats`, venue, H2H |
| `team` | squad, fixtures, standings slice |
| `player` | bio, primary team, position, recent matches, career |
| `transfer` | player, from/to clubs, fee fields, date |
| `searchHit` | typed suggest/search hits with ids |

#### Example — match row

```json
{
  "recordType": "match",
  "matchId": 5903801,
  "leagueId": 54,
  "leagueName": "Bundesliga",
  "ccode": "GER",
  "utcTime": "2026-08-04T17:00:00.000Z",
  "started": false,
  "finished": false,
  "homeTeam": { "id": 9823, "name": "Bayern München", "score": null },
  "awayTeam": { "id": 9788, "name": "Borussia Dortmund", "score": null },
  "matchUrl": "https://www.fotmob.com/de/match/5903801",
  "date": "20260804",
  "source": "fotmob-scraper",
  "scrapedAt": "2026-08-04T16:00:00Z"
}
```

### Use cases

- Daily **football data pipeline**: schedule `matches` → optional `enrichMatchDetails`
- **Prediction / model features**: xG, ratings, lineups from `match` mode
- **Fantasy / tipster research**: upcoming fixtures + team form tables
- **CMS scoreboards**: finished results for a date range as CSV/JSON
- **ID discovery**: `leagues` or `search` to resolve FotMob ids for downstream runs

### Integration examples

#### Node.js

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('crawloop/fotmob-scraper').call({
  mode: 'matches',
  timezone: 'Europe/Berlin',
  maxItems: 100,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.slice(0, 5));
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient(token="YOUR_TOKEN")
run = client.actor("crawloop/fotmob-scraper").call(run_input={
    "mode": "league",
    "leagueIds": ["54"],
    "includeStandings": True,
    "includeFixtures": True,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item.get("name"), len(item.get("standings") or []))
```

#### cURL

```bash
curl -s -X POST "https://api.apify.com/v2/acts/crawloop~fotmob-scraper/runs?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode":"match","matchIds":["4506324"],"includePlayerStats":true,"includeTeamStats":true}'
```

### MCP and AI assistants

Use this Actor from AI tools via [Apify MCP](https://docs.apify.com/platform/integrations/mcp). Connect your Apify account, then call this Actor by its Store ID / name (`crawloop/fotmob-scraper`).

Example prompts:

- "Run FotMob Scraper for today's matches in Europe/Berlin and return finished games as JSON"
- "Scrape Bundesliga league id 54 standings and top scorers with FotMob Scraper"
- "Get FotMob match details for match id 4506324 with lineups and xG, then summarize player ratings"

### FAQ

**Do I need a FotMob account?**\
No. The Actor uses public JSON endpoints — no login required.

**Is German `/de` a different dataset?**\
No — locale only affects language headers and URL prefix. Competition and match ids are global.

**How do I find league or match ids?**\
Run `mode=leagues` or `mode=search`, or start from `mode=matches` and read `matchId` / `leagueId` on each row.

**Can I get historical seasons?**\
Yes — `mode=league` with `seasons` like `2024/2025` when FotMob lists that season under `availableSeasons`.

**What about transfers vs Transfermarkt?**\
This Actor exposes FotMob's transfers feed (recent moves). Deep fee histories belong in a Transfermarkt-focused tool.

**Can I use this as a FotMob API alternative in production?**\
Yes for scheduled pipelines and exports (JSON/CSV). Respect fair use and FotMob terms; endpoints can change.

### Related Actors

- [PrizePicks Player Props Scraper](https://apify.com/crawloop/prizepicks-player-props-scraper)
- [Underdog Fantasy Player Props](https://apify.com/crawloop/underdog-fantasy-player-props-scraper-real-time-lines-odds)
- [DFS Multi-Source Props Scraper](https://apify.com/crawloop/dfs-multi-source-props-scraper)
- [Betr Picks Scraper](https://apify.com/crawloop/betr-picks-scraper)

# Actor input Schema

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

What to scrape. matches = fixtures/live/results by date; leagues = full competition directory; league = standings+fixtures for league ids; match = deep match details; team / player / transfers / search; auto picks from filled inputs.

## `dates` (type: `array`):

Dates for matches mode. Example: 20260804. Leave empty (with no range) for today UTC.

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

Inclusive start of a date range for matches mode.

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

Inclusive end of a date range for matches mode.

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

IANA timezone for the matches day bucket (e.g. Europe/Berlin, UTC).

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

Filter matches mode results by status.

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

FotMob league ids (e.g. 54 = Bundesliga, 47 = Premier League). Used as filter in matches mode or as targets in league mode.

## `leagueUrls` (type: `array`):

FotMob league page URLs. Ids are parsed automatically.

## `seasons` (type: `array`):

Optional seasons for league mode (e.g. 2025/2026). Empty = current season.

## `category` (type: `string`):

For leagues mode: which bucket to return.

## `countryCodes` (type: `array`):

FIFA country codes for leagues mode domestic filter (e.g. GER, ENG, ESP).

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

FotMob match ids for match mode (and optional enrich).

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

FotMob match page URLs.

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

FotMob team ids for team mode.

## `teamUrls` (type: `array`):

FotMob team page URLs.

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

FotMob player ids for player mode.

## `playerUrls` (type: `array`):

FotMob player page URLs.

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

Terms for search mode (team, player, match suggest).

## `fullSearch` (type: `boolean`):

When true, use searchapi/search instead of suggest (search mode).

## `transferPages` (type: `integer`):

How many pages to pull in transfers mode (≈50 rows/page).

## `enrichMatchDetails` (type: `boolean`):

In matches or league mode, also fetch full match details (lineups, xG, ratings) for each match id. Billed as separate match-detail events.

## `includeStandings` (type: `boolean`):

Include standings tables in league / team modes.

## `includeFixtures` (type: `boolean`):

Include fixtures / match lists in league / team modes.

## `includeTopPlayers` (type: `boolean`):

Include season top players (rating / goals / assists) in league mode.

## `includeSquad` (type: `boolean`):

Include squad groups in team mode.

## `includeTeamStats` (type: `boolean`):

Match details: team-vs-team stats including xG when available.

## `includeEvents` (type: `boolean`):

Match details: goals, cards, substitutions timeline.

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

Match details: formations, starters, subs, coach.

## `includePlayerStats` (type: `boolean`):

Match details: per-player stats and ratings.

## `includeH2H` (type: `boolean`):

Match details: previous meetings block.

## `includeShotmap` (type: `boolean`):

Match details: raw shotmap payload (larger).

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

Match details: momentum graph data.

## `includeRaw` (type: `boolean`):

Attach the full FotMob JSON as rawData (larger datasets).

## `locale` (type: `string`):

UI locale for URLs / Accept-Language (en or de). Data ids are global.

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

Stop after this many dataset records (0 = unlimited).

## `requestDelaySecs` (type: `number`):

Throttle between HTTP requests.

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

Optional Apify Proxy. Datacenter is usually enough.

## Actor input object example

```json
{
  "mode": "auto",
  "dates": [],
  "dateFrom": "",
  "dateTo": "",
  "timezone": "UTC",
  "matchStatus": "all",
  "leagueIds": [],
  "leagueUrls": [],
  "seasons": [],
  "category": "all",
  "countryCodes": [],
  "matchIds": [],
  "matchUrls": [],
  "teamIds": [],
  "teamUrls": [],
  "playerIds": [],
  "playerUrls": [],
  "searchQueries": [],
  "fullSearch": false,
  "transferPages": 1,
  "enrichMatchDetails": false,
  "includeStandings": true,
  "includeFixtures": true,
  "includeTopPlayers": true,
  "includeSquad": true,
  "includeTeamStats": true,
  "includeEvents": true,
  "includeLineups": true,
  "includePlayerStats": true,
  "includeH2H": true,
  "includeShotmap": false,
  "includeMomentum": false,
  "includeRaw": false,
  "locale": "en",
  "maxItems": 0,
  "requestDelaySecs": 0.15,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Default dataset items (one record per match, league, team, player, transfer, or search hit).

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("crawloop/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 = {}

# Run the Actor and wait for it to finish
run = client.actor("crawloop/fotmob-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call crawloop/fotmob-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=crawloop/fotmob-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/dqglvvi3lgkif5gIQ/builds/MjDyujpVD4eFmoYr2/openapi.json
