# FotMob Standings, Fixtures & Player Profile Extractor (`nimbryxo-studio/fotmob-standings-fixtures-and-player-profile`) Actor

Search FotMob for teams, players, leagues, and matches, then pull league standings and fixtures, team and squad profiles, player stats, or every match played on a given date.

- **URL**: https://apify.com/nimbryxo-studio/fotmob-standings-fixtures-and-player-profile.md
- **Developed by:** [Nimbryxo-studio](https://apify.com/nimbryxo-studio) (community)
- **Categories:** Automation, Developer tools, News
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/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 Standings, Fixtures & Player Profile Extractor

FotMob tracks live scores, league tables, and player stats for football competitions worldwide. This actor turns that data into structured records: search for a team, player, league, or match by name; pull a league's standings and fixtures; look up a team or player profile; or list every match played on a given day.

### What this actor does

- Searches FotMob's name index for teams, players, matches, or leagues matching a free-text term
- Pulls a league's metadata, available seasons, full standings table, and (optionally) its upcoming fixtures in one go
- Fetches a league's standings table on its own, for a specific or current season
- Looks up a team's profile (next/last match, stadium, recent form) and, optionally, its full squad with per-player stats
- Fetches exact matches or player profiles by FotMob ID, or every match played anywhere in the world on a given date
- Leaves out any field FotMob doesn't report for that record rather than sending it empty

### Output per record

Every record carries a `recordType` and a `scrapedAt` UTC timestamp. The fields present depend on the record type.

**Suggestion** (`recordType: "suggestion"`, mode=search)

- `suggestionType` — `team`, `player`, `match`, or `league`
- Team suggestions: `teamId`, `teamName`, `teamShortName`, `leagueId`, `leagueName`, `countryCode`
- Player suggestions: `playerId`, `playerName`, `teamId`, `teamName`, `position`, `isCoach`
- Match suggestions: `matchId`, `homeTeam`, `awayTeam`, `homeScore`, `awayScore`, `matchDate`, `leagueId`, `leagueName`, `matchStatus`
- League suggestions: `leagueId`, `leagueName`, `countryCode`, `countryName`
- `sourceUrl`

**League** (`recordType: "league"`, mode=byLeague)

- `leagueId`, `leagueName`, `shortName`, `countryCode`
- `selectedSeason`, `latestSeason`, `availableSeasons`
- `leagueColor`, `seopath`, `sourceUrl`

**Standings** (`recordType: "standings"`, modes=byLeague, standings)

- `teamId`, `teamName`, `teamShortName`, `position`
- `played`, `wins`, `draws`, `losses`, `goalDifference`, `points`, `deduction`
- `scoresStr`, `qualColor`, `pageUrl`
- `leagueId`, `leagueName`, `season`, `sourceUrl`

**Fixture** (`recordType: "fixture"`, mode=byLeague with `includeFixtures`)

- `matchId`, `homeTeam`, `awayTeam`, `homeTeamId`, `awayTeamId`, `homeScore`, `awayScore`
- `round`, `utcTime`, `matchStatus`, `isStarted`, `isFinished`, `isCancelled`, `isAwarded`
- `leagueId`, `leagueName`, `sourceUrl`

**Match** (`recordType: "match"`, modes=byMatch, byDate)

- `matchId`, `homeTeam`, `awayTeam`, `homeTeamId`, `awayTeamId`, `homeScore`, `awayScore`
- `matchDate`, `utcTime`, `time`, `matchStatus`, `scoreStr`, `isStarted`, `isFinished`, `isCancelled`
- `leagueId`, `leagueName`, `countryCode`, `pageUrl`, `sourceUrl`

**Team** (`recordType: "team"`, mode=byTeam)

- `teamId`, `teamName`, `teamShortName`, `countryCode`, `gender`, `latestSeason`, `seopath`
- `nextMatchOpponent`, `nextMatchId`, `nextMatchUtcTime`, `nextMatchTournament`
- `lastMatchOpponent`, `lastMatchId`, `lastMatchUtcTime`, `lastMatchTournament`
- `stadiumName`, `stadiumCity`, `stadiumCapacity`, `teamForm`, `sourceUrl`

**Squad member** (`recordType: "squadMember"`, mode=byTeam with `includeSquad`)

- `playerId`, `playerName`, `teamId`, `position`, `positionIdsDesc`, `countryCode`, `countryName`
- `shirtNumber`, `age`, `dateOfBirth`
- `goals`, `assists`, `rating`, `yellowCards`, `redCards`, `sourceUrl`

**Player** (`recordType: "player"`, mode=byPlayer)

- `playerId`, `playerName`, `birthDate`, `contractEnd`, `gender`
- `isCoach`, `isCaptain`, `onLoan`
- `primaryTeamId`, `primaryTeamName`, `position`
- `mainLeagueName`, `mainLeagueId`, plus one `mainLeague<Stat>` field per stat FotMob reports (e.g. `mainLeagueGoals`)
- `injury`, `marketValue`, `marketValueCurrency`, `marketValueDate`, `sourceUrl`

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `search` | `search`, `byLeague`, `standings`, `byTeam`, `byMatch`, `byPlayer`, or `byDate` |
| `searchTerm` | string | `manchester` | Team, player, or league name (mode=search) |
| `leagueId` | string | `47` | League to fetch (modes=byLeague, standings); select list covers 30 major competitions |
| `season` | string | – | Season label like `2026/2027`; empty uses the league's current season (modes=byLeague, standings) |
| `teamId` | string | – | FotMob team ID, e.g. `8456` for Manchester City (mode=byTeam) |
| `matchIds` | array | `[]` | FotMob match IDs (mode=byMatch) |
| `playerIds` | array | `[]` | FotMob player IDs (mode=byPlayer) |
| `date` | string | `2024-08-01` | Match date as `YYYY-MM-DD` (mode=byDate) |
| `fromDate` | string | – | Keep only matches on or after this date (`YYYY-MM-DD`) |
| `toDate` | string | – | Keep only matches on or before this date (`YYYY-MM-DD`) |
| `containsKeyword` | string | – | Only keep records whose team/player/league name contains this text |
| `includeFixtures` | boolean | `false` | Also emit upcoming fixtures (mode=byLeague) |
| `includeSquad` | boolean | `false` | Also emit squad members (mode=byTeam) |
| `maxItems` | integer | `50` | Maximum number of records to return (1-1000) |
| `proxyConfiguration` | object | off | Optional proxy, used automatically if FotMob blocks the default connection |

#### Example: search for a team

```json
{
    "mode": "search",
    "searchTerm": "manchester",
    "maxItems": 10
}
```

#### Example: Premier League table with upcoming fixtures

```json
{
    "mode": "byLeague",
    "leagueId": "47",
    "includeFixtures": true,
    "maxItems": 50
}
```

#### Example: a team's profile and full squad

```json
{
    "mode": "byTeam",
    "teamId": "8456",
    "includeSquad": true,
    "maxItems": 50
}
```

#### Example: every match on a given date

```json
{
    "mode": "byDate",
    "date": "2024-08-01",
    "maxItems": 100
}
```

### Use cases

- **Live score dashboards** — pull `byDate` matches daily to track fixtures and results across every league at once
- **League table tracking** — monitor standings for a competition across the season with `byLeague` or `standings`
- **Squad and transfer research** — fetch a team's full squad with per-player stats, or a specific player's profile and market value
- **Content and betting-adjacent research** — resolve names to FotMob IDs via `search` before fetching full detail records
- **Historical season comparisons** — set `season` to pull a league's past-season standings alongside the current one

### FAQ

**What's the difference between `byLeague` and `standings`?** `byLeague` returns the league's own metadata record plus its standings and (optionally) fixtures in one run. `standings` skips the league metadata and fixtures and only emits the table rows — use it when you just need the table.

**How do I find a `leagueId` or `teamId`?** Run `mode: "search"` with the competition or team name; the resulting `suggestion` record includes the matching `leagueId` or `teamId` you can reuse in other modes.

**Why are some player stat fields different between players?** `mainLeague<Stat>` fields are generated from whatever stats FotMob reports for that player's primary league (e.g. goals, assists, rating), so the exact set of fields can vary by player and position.

**Why is `includeSquad` separate from `byTeam`?** Fetching the full squad adds many extra records per team, so it's opt-in; leave it off when you only need the team's overview (next/last match, stadium, form).

**Does `season` work for any league?** It only takes effect for `byLeague` and `standings`, and only if FotMob has data for that season under the given `leagueId`; leaving it empty returns the league's current season.

**Why would a date return zero matches?** Some days genuinely have no scheduled matches in major leagues (off-season periods, international breaks); try a date with known fixtures if you need a non-empty result.

**Is this affiliated with FotMob?** No. This actor reads FotMob's publicly accessible data and is not affiliated with, endorsed by, or sponsored by FotMob.

# Actor input Schema

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

What to fetch.

## `searchTerm` (type: `string`):

Team, player or league name (mode=search).

## `leagueId` (type: `string`):

League to fetch (mode=byLeague / standings).

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

Season label like `2026/2027`; empty uses the league's current season (mode=byLeague / standings).

## `teamId` (type: `string`):

FotMob team ID, e.g. `8456` for Manchester City (mode=byTeam).

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

FotMob match IDs (mode=byMatch).

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

FotMob player IDs (mode=byPlayer).

## `date` (type: `string`):

Match date as YYYY-MM-DD (mode=byDate).

## `fromDate` (type: `string`):

Keep only matches on or after this date (YYYY-MM-DD).

## `toDate` (type: `string`):

Keep only matches on or before this date (YYYY-MM-DD).

## `containsKeyword` (type: `string`):

Only keep records whose team / player / league name contains this text.

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

Also emit upcoming fixtures (mode=byLeague).

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

Also emit squad members (mode=byTeam).

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

Hard cap on emitted records.

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

Optional proxy (used automatically if the API blocks the datacenter IP).

## Actor input object example

```json
{
  "mode": "search",
  "searchTerm": "manchester",
  "leagueId": "47",
  "matchIds": [],
  "playerIds": [],
  "date": "2024-08-01",
  "includeFixtures": false,
  "includeSquad": false,
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `matches` (type: `string`):

Dataset containing all scraped FotMob records.

# 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 = {
    "mode": "search",
    "searchTerm": "manchester",
    "leagueId": "47",
    "matchIds": [],
    "playerIds": [],
    "includeFixtures": false,
    "includeSquad": false,
    "maxItems": 10,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("nimbryxo-studio/fotmob-standings-fixtures-and-player-profile").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 = {
    "mode": "search",
    "searchTerm": "manchester",
    "leagueId": "47",
    "matchIds": [],
    "playerIds": [],
    "includeFixtures": False,
    "includeSquad": False,
    "maxItems": 10,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("nimbryxo-studio/fotmob-standings-fixtures-and-player-profile").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 '{
  "mode": "search",
  "searchTerm": "manchester",
  "leagueId": "47",
  "matchIds": [],
  "playerIds": [],
  "includeFixtures": false,
  "includeSquad": false,
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call nimbryxo-studio/fotmob-standings-fixtures-and-player-profile --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nimbryxo-studio/fotmob-standings-fixtures-and-player-profile"
        }
    }
}
```

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/szVT7XW87OZyZPdDG/builds/DMFFTBIoEP37qexw0/openapi.json
