# FotMob Scraper — Football Results, Match Stats, xG & Tables (`hipersoft/fotmob-scraper`) Actor

Scrape FotMob football data: fixtures and results by date and league, full match stats (xG, possession, shots), goals, cards, substitutions, venue, referee, attendance, lineups with ratings, and league tables with xG. Export CSV/JSON.

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

## Pricing

from $0.001 / result

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 Scraper: Football Results, Match Stats, xG, Lineups & League Tables

**FotMob Scraper** extracts football (soccer) data from **FotMob (fotmob.com)**, one of the most popular football apps, covering hundreds of leagues worldwide: **Premier League, LaLiga, Bundesliga, Serie A, Ligue 1, Champions League, Europa League, MLS, World Cup and Nations League qualifiers** and many more. Get **fixtures and results by date**, plus full **match details**: **expected goals (xG), possession, shots, shots on target, big chances, passes and other team stats, goals with scorers and assists, cards, substitutions, venue, referee, attendance and player of the match**. Optionally add **lineups with formations and player ratings** and **league tables with xG, xGA and expected points**. Export to **CSV, Excel or JSON**.

### What does FotMob Scraper do?

- ⚽ **Fixtures and results** for any date range, across all leagues or only the ones you choose.
- 📊 **Match stats**: xG, possession, total shots, shots on target, big chances, corners, fouls, passes and more.
- 🥅 **Match events**: goals (scorer, assist, own goal, penalty), yellow and red cards, substitutions.
- 🏟️ **Match info**: venue, city, capacity, referee, attendance and player of the match.
- 👕 **Lineups (optional)**: formations, starting XI with shirt numbers and FotMob ratings, substitutes.
- 🏆 **League tables (optional)**: position, played, W/D/L, goals, goal difference, points, xG, xGA and expected points.
- 🎯 **Filters**: league IDs, league name text and finished matches only.

### What data can you scrape from FotMob?

| Field | Description |
|---|---|
| Match ID, link | FotMob match |
| League, round | Competition and round |
| Kick-off, status | UTC kick-off time, status |
| Teams and score | Home/away teams, IDs and score |
| Stats | xG, possession, shots, passes… (home/away) |
| Events | Goals, assists, cards, substitutions |
| Venue | Stadium, city, country, capacity |
| Referee, attendance | Match officials and crowd |
| Player of the match | Top-rated player |
| Lineups | Formation, starters with ratings, subs |
| Table | Position, W/D/L, goals, points, xG, xGA, xPts |

### Use cases for football data

- **Sports betting and trading models**: feed xG, shots and results into prediction models.
- **Fantasy football**: track player ratings, goals and assists.
- **Football analytics and scouting**: analyse team performance with xG and advanced stats.
- **Media and content**: auto-generate match reports, results pages and tables.
- **Apps, bots and dashboards**: power Telegram, Discord or web widgets with live data.

### How to scrape FotMob

1. Click **Try for free** to open FotMob Scraper in Apify Console.
2. Pick a **date range** and optionally **league IDs** (e.g. 47 for the Premier League).
3. Keep **Include match details** on for stats and events; turn on **lineups** if needed.
4. Optionally add **league tables**.
5. Click **Start** and download the data as **CSV, Excel or JSON**.

### Input

#### Example input

```json
{
  "dateFrom": "2026-10-03",
  "dateTo": "2026-10-05",
  "leagueIds": ["47", "87", "54"],
  "finishedOnly": true,
  "includeDetails": true,
  "includeLineups": true,
  "standingsLeagueIds": ["47"]
}
```

| Field | Description |
|---|---|
| **From / To date** | Match days to collect (max 60 days). |
| **League IDs** | FotMob league IDs. Popular: 47 Premier League, 87 LaLiga, 54 Bundesliga, 55 Serie A, 53 Ligue 1, 42 Champions League, 73 Europa League, 130 MLS. |
| **League name contains** | Text filter on league names. |
| **Finished matches only** | Skip upcoming and live matches. |
| **Include match details** | Stats, events, venue, referee, attendance. |
| **Include lineups** | Formations, starters with ratings, subs. |
| **Specific match IDs** | Scrape these matches directly. |
| **League tables** | League IDs to export current tables. |
| **Max rows** | Overall limit (0 = no limit). |

### Output

#### Match example

```json
{
  "recordType": "match",
  "matchId": 5181794,
  "url": "https://www.fotmob.com/match/5181794",
  "league": "UEFA Nations League A Grp. 1",
  "kickoff": "2026-10-05T18:45:00.000Z",
  "status": "Full-Time",
  "homeTeam": "France",
  "awayTeam": "Belgium",
  "homeScore": 4,
  "awayScore": 1,
  "venue": "Stade de France",
  "venueCity": "Saint-Denis",
  "referee": "Nick Walsh",
  "attendance": 75389,
  "playerOfTheMatch": "Michael Olise",
  "stats": {
    "Ball possession": { "home": 66, "away": 34 },
    "Expected goals (xG)": { "home": "1.95", "away": "0.59" },
    "Total shots": { "home": 23, "away": 5 },
    "Shots on target": { "home": 8, "away": 2 }
  },
  "events": [
    { "minute": 35, "type": "Goal", "team": "away", "player": "Dodi Lukébakio", "assist": "Roméo Lavia", "scoreAfter": "0-1" },
    { "minute": 57, "type": "Card", "card": "Yellow", "team": "away", "player": "Roméo Lavia" }
  ]
}
```

#### League table example

```json
{
  "recordType": "standing",
  "leagueId": 47,
  "league": "Premier League",
  "position": 4,
  "team": "Brentford",
  "played": 5, "wins": 2, "draws": 3, "losses": 0,
  "goalsFor": 10, "goalsAgainst": 4, "goalDifference": 6, "points": 9,
  "xG": 9.9, "xGA": 6.31, "xPoints": 8.48
}
```

### How much does it cost to scrape FotMob?

FotMob Scraper uses **pay-per-result** pricing: a small fixed price per match or table row, with automatic discounts on higher Apify plans. See the **Pricing** tab for the exact price.

### More sports data

- [TennisExplorer Scraper](https://apify.com/hipersoft/tennisexplorer-scraper): tennis results, players and odds.

### FAQ

**How do I find a league ID?**
Open the league on fotmob.com; the number in the link (e.g. fotmob.com/leagues/**47**/overview/premier-league) is the ID.

**Does it include live matches?**
Yes. Matches in progress are included with their current score and status, unless you turn on **Finished matches only**.

**How far back can I go?**
Any past date that FotMob has. Each run covers up to 60 days.

**What formats can I export?**
CSV, Excel, JSON, XML, HTML and RSS, or read the results through the Apify API.

**Can I integrate FotMob Scraper with other apps?**
FotMob Scraper can be connected with almost any cloud service or web app thanks to [integrations on the Apify platform](https://apify.com/integrations). It works with [Make](https://apify.com/integrations/make), [Zapier](https://apify.com/integrations/zapier), [Slack](https://docs.apify.com/platform/integrations/slack), [Airbyte](https://docs.apify.com/platform/integrations/airbyte), [GitHub](https://docs.apify.com/platform/integrations/github), [Google Drive](https://docs.apify.com/platform/integrations/drive) and [many more](https://apify.com/integrations), plus the [Apify API](https://docs.apify.com/api/v2), JS/Python clients and MCP. Or use [webhooks](https://docs.apify.com/platform/integrations/webhooks) to trigger an action whenever a run finishes.

**Is it legal to scrape FotMob?**
The scraper only collects publicly displayed match information. You are responsible for using the data in line with FotMob's terms.

### Related Actors

- [TennisExplorer Scraper](https://apify.com/hipersoft/tennisexplorer-scraper)

### Notes

Original clean-room implementation. Returns only public data. Not affiliated with FotMob.

# Actor input Schema

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

First match day to collect. Defaults to today.

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

Last match day to collect (max 60 days after the start date). Defaults to the start date.

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

Only matches from these FotMob league IDs (from the league link, e.g. fotmob.com/leagues/47/... → 47). Popular: 47 Premier League, 87 LaLiga, 54 Bundesliga, 55 Serie A, 53 Ligue 1, 42 Champions League, 73 Europa League, 130 MLS. Leave empty for all leagues.

## `leagueNameContains` (type: `string`):

Optional text filter on league names, e.g. 'Premier League' or 'Copa'.

## `finishedOnly` (type: `boolean`):

Skip upcoming and live matches.

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

Add match stats (xG, possession, shots…), goals, cards, substitutions, venue, referee, attendance and player of the match.

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

Add formations, starting XI, substitutes and player ratings (with match details).

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

Optional FotMob match IDs (from fotmob.com/match/<id>) to scrape directly.

## `standingsLeagueIds` (type: `array`):

Optional league IDs to also export the current league table (with xG, xGA and expected points).

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

Stop after this many rows (matches + table rows). 0 means no limit.

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

Not required for normal use.

## Actor input object example

```json
{
  "finishedOnly": false,
  "includeDetails": true,
  "includeLineups": false,
  "standingsLeagueIds": [
    "47"
  ],
  "maxItems": 0,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

The results as dataset items.

# 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 = {
    "standingsLeagueIds": [
        "47"
    ]
};

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

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

```

## MCP server setup

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