# Football Player Stats — xG, xA, Ratings & Team Form, 50 Leagues (`yugenox/football-player-season-stats`) Actor

Every player of a league season as one wide row: goals, assists, xG, xGOT, xA, FotMob rating, minutes, defensive and goalkeeper stats, physical data. Team rows add corners, cards, xGA, squad value and over/BTTS/clean-sheet form. Optional market value and contract end. 50+ leagues, no login.

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

## Pricing

from $1.00 / 1,000 season stats 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

## Football Player Stats — xG, xA, Ratings & Team Form, 50 Leagues

Get **every player of a league season as one wide row** — goals, assists, xG, xGOT, xA, xG + xA per 90, FotMob rating, minutes, chances created, dribbles, tackles, interceptions, clean sheets, save %, goals prevented, cards, and physical data (top speed, distance, sprints) where the league has it. Add **team rows** with season stats (corners, cards, fouls, xG, xG conceded, possession, squad value) and **form rates** for bettors and modelers: over 1.5 / 2.5 / 3.5 %, BTTS %, clean-sheet %, failed-to-score %, with home and away splits over the last N matches. Optional **player profiles** add market value (with range and history), contract end, position, age, height and preferred foot.

Works for the Premier League, Championship, LaLiga, Bundesliga, Serie A, Ligue 1, Eredivisie, Primeira Liga, MLS, the Champions League and 40+ more competitions by name — any other FotMob league by its link or id. No login, no cookies.

### Who uses it

- **Scouts and recruitment analysts** — screen a whole league by xG, xA, defensive actions or goals prevented, then pull market value and contract end for the shortlist.
- **Fantasy players** — weekly refresh of minutes, xG, xA and ratings for every player.
- **Football bettors and tipster sites** — corners, cards, fouls per match and over / BTTS / clean-sheet rates per team, home and away.
- **Data journalists and modelers** — a clean season table per league, every season FotMob has.

### Input

| Field | What it does |
|---|---|
| Leagues and cups | Names ("Premier League", "Championship", "Serie A"…), FotMob league links or ids |
| Seasons | Optional, e.g. "2025/2026" or "2026". Empty = current season |
| Rows | `players`, `teams` or `both` |
| Stat categories | Optional: only these categories (e.g. `xg`, `xa`, `rating`, `corners`). Empty = all |
| Teams | Optional club filter (names or ids) |
| Minimum minutes played | Skip players below this |
| Team form: last N matches | 0 = whole season |
| Add player profiles / Max profiles | Market value, contract end and more for the top-minute players |
| Max rows | Total cap; players with the most minutes come first |

Example: `{"leagues": ["Championship", "Serie A"], "rowType": "both", "minMinutes": 450}`

### Output (real row, trimmed)

```json
{
  "type": "player",
  "leagueName": "Premier League",
  "season": "2026/2027",
  "playerId": 1341475,
  "playerName": "Antonín Kinský",
  "teamName": "Tottenham Hotspur",
  "minutesPlayed": 900,
  "matchesPlayed": 10,
  "rating": 6.74,
  "cleanSheets": 4,
  "savePercentage": 66.7,
  "savesPer90": 2.2,
  "goalsPrevented": -1.9,
  "topSpeedKmh": 27.5,
  "distanceCoveredM": 60528,
  "missingCategories": []
}
```

Team row (trimmed): `{"type":"team","teamName":"AFC Bournemouth","matchesPlayed":9,"corners":41,"cornersPerMatch":4.56,"yellowCardsPerMatch":2.67,"formScope":"last 5","wins":3,"losses":2,"over25Pct":40,"bttsPct":20,"cleanSheetPct":60,"form":"LLWWW","homeForm":{…},"awayForm":{…}}`

A stat is `null` when the player does not appear in that category's list (usually zero, e.g. goals for a goalkeeper). Each row says which categories the league had (`availableCategories`) and which it lacked (`missingCategories`).

### Price

Pay per result:

- **$1.00 per 1,000 rows** (one player or team per league season)
- **$1.00 per 1,000 league seasons read** ($0.001 each)
- **$2.00 per 1,000 player profiles** (only with "Add player profiles")
- **$0.002 per run start**

A full Premier League season (~450 players) costs about $0.45; team rows for a league about $0.02.

### Tips

- Schedule it weekly: FotMob updates the lists after every match day.
- Use `minMinutes` (e.g. 450) for scouting tables that ignore cameo appearances.
- Physical data (speed, distance, sprints) exists only for some competitions, such as the Premier League and Champions League.
- For many leagues and seasons with profiles, raise the run Timeout — a stop before the timeout still saves everything collected.

### FAQ

**Is it legal to scrape FotMob?** This actor reads public pages and public stat lists that anyone can open in a browser, with no login, and follows the site's robots.txt. Sports statistics are facts. Check that your own use fits the rules that apply to you.

**Does it access any private data?** No. It returns public sporting statistics about professional players and clubs as shown on FotMob. No contact details are collected.

**Why are some per-90 stats missing for a player?** FotMob lists per-90 stats only above a minutes threshold, so short-minute players have `null` there.

**Which leagues work?** Any competition FotMob publishes season stats for. If a league has none, the run says so and doesn't charge rows.

# Actor input Schema

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

Competitions: a name ("Premier League", "Championship", "LaLiga", "Bundesliga", "Serie A", "Ligue 1", "Eredivisie", "MLS", "Champions League" and about 50 more), a FotMob league link (fotmob.com/leagues/47/overview/premier-league) or a FotMob league id (47).

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

Optional: seasons as FotMob writes them, e.g. "2025/2026" (also "2025-26"), "2026" for calendar-year leagues, or "2026 - Clausura". Empty = the current season. Each league × season is read once.

## `rowType` (type: `string`):

Player rows (one per player per league season), team rows (season stats + form), or both.

## `statCategories` (type: `array`):

Optional: only these stat categories (FotMob names like expected_goals, rating, corner_taken_team, or column names like xg, xa, corners). Empty = all categories FotMob has for the league (up to 46 player + 31 team).

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

Optional: only players / teams of these clubs (name or FotMob team id).

## `minMinutes` (type: `integer`):

Skip players with fewer league minutes this season.

## `lastNMatches` (type: `integer`):

Team rows: form rates (wins, goals, over 1.5/2.5/3.5 %, BTTS %, clean-sheet %, failed-to-score %) over the last N finished matches, plus home and away splits over their last N. 0 = the whole season.

## `includeProfiles` (type: `boolean`):

Adds market value (with range and 24-month history), contract end, position, age, birth date, height, preferred foot, nationality, shirt number, loan and injury status to player rows. One extra page per player (priced per profile).

## `maxProfiles` (type: `integer`):

Profiles are added to the players with the most minutes first, up to this many per league season.

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

Stop after this many rows in total (players with the most minutes come first).

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

Apify datacenter proxy by default (included in every plan). A residential choice runs on datacenter — FotMob does not need it.

## Actor input object example

```json
{
  "leagues": [
    "Premier League"
  ],
  "rowType": "players",
  "minMinutes": 0,
  "lastNMatches": 0,
  "includeProfiles": false,
  "maxProfiles": 50,
  "maxItems": 20,
  "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, league seasons read, counts and requests.

# 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": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("yugenox/football-player-season-stats").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": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("yugenox/football-player-season-stats").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": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call yugenox/football-player-season-stats --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,yugenox/football-player-season-stats"
        }
    }
}
```

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/IA00f04fnj9IjTXfh/builds/9XEZFc4OpumGEG9WF/openapi.json
