# Transfermarkt Scraper: Market Value, Transfers, Squads & Tables (`memo23/transfermarkt-scraper`) Actor

Scrape Transfermarkt players, clubs and leagues: market value, position, age, citizenship, club, contract end, agent, foot and height. Add value history, every transfer with its fee and performance stats. Club squads with values, league tables, a league's clubs and search.

- **URL**: https://apify.com/memo23/transfermarkt-scraper.md
- **Developed by:** [Muhamed Didovic](https://apify.com/memo23) (community)
- **Categories:** News, 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.50 / 1,000 players

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

## Transfermarkt Scraper: Market Value, Transfers, Squads & Tables

<p align="center"><img src="https://api.apify.com/v2/key-value-stores/YJ6jn2wWz7pdA4lFE/records/logo" alt="Transfermarkt Scraper" width="140"></p>

**Football data from Transfermarkt as clean rows.** Look up players and clubs by link, id or name, read whole club squads and league tables, and get each player's market value with its trend, peak and world rank, position, age, nationalities, club, contract, agent, foot and height. Add a player's full market-value history, every transfer with its fee, and performance stats per season and competition.

### Why Use This Scraper?

- **Market values with context.** Current value, previous value and trend, peak and lowest values with dates, and the worldwide value rank.
- **Whole squads.** Every player of a club for a season, with value, position, age, nationality and contract.
- **League tables.** Rank, played, wins, draws, losses, goals and points, plus the league's club list.
- **Transfer histories.** Date, from and to club and league, fee, market value at the time, loans and free transfers.
- **Value histories.** Every market-value point a player has had, with club and age at the time.
- **Any Transfermarkt site.** Links from .com, .de, .co.uk, .es, .it, .fr and the others all work.

### Overview

This actor is for scouts and analysts comparing players, agencies and clubs tracking values and contracts, fantasy and betting tools that need squads and tables, and journalists and researchers studying the transfer market.

You give it links, ids, competition codes or names. It returns rows of six kinds, set in `recordType`: `player`, `club`, `squad-player`, `table-row`, `transfer` and `market-value`. The dataset exports as JSON, CSV, Excel or through the API, and a `RUN_SUMMARY` record lists what each input delivered.

### Supported Inputs

| What you give | What you get |
|---|---|
| A player link or id, e.g. `…/kylian-mbappe/profil/spieler/342229` | The player's profile, with history, transfers and stats when asked |
| A club link or id, e.g. `…/fc-bayern-munchen/startseite/verein/27` | The club and its squad |
| A competition link or code, e.g. `GB1`, `ES1`, `L1` | The league table and its clubs |
| A search term, e.g. `pedri` | Matching players and clubs |
| A season, e.g. `2025` or `2025/26` | Squads and tables for that season |

### Use Cases

- **Scouting:** profiles, values and contract ends for players across leagues.
- **Value tracking:** market-value histories and trends for a squad or a watchlist.
- **Transfer research:** who moved where, for how much, and at what value.
- **League data:** tables and squads for apps, models and reports.
- **Agency work:** contracts, options and agents of players you follow.

### How It Works

![How it works](https://api.apify.com/v2/key-value-stores/YJ6jn2wWz7pdA4lFE/records/how-it-works)

1. **Add players, clubs, competitions or search terms.**
2. **Each is read from Transfermarkt.**
3. **Squads, tables, histories, transfers and stats are added** as you choose.
4. **Everything becomes rows,** duplicates dropped.
5. **Export** the dataset as JSON, CSV or Excel, or read it through the API.

### Input Configuration

| Field | Type | Default | Description |
|---|---|---|---|
| `startUrls` | array | none | Player, club, competition or search links from any Transfermarkt site. |
| `searchTerms` | array | none | Player or club names. |
| `searchFor` | string | players and clubs | Players, clubs or both. |
| `maxSearchResults` | integer | `10` | Matches per search term. |
| `playerIds`, `clubIds`, `competitionIds` | array | none | Transfermarkt ids, or competition codes like GB1. |
| `season` | string | current | e.g. 2025, 2025/26 or 25/26. |
| `includeSquad` | boolean | `true` | A club's full squad as rows. |
| `competitionData` | string | `both` | Table, clubs, or both. |
| `includeMarketValueHistory` | boolean | `false` | Every value point of each player. |
| `includeTransfers` | boolean | `false` | Each player's transfers. |
| `includeStats` | boolean | `false` | Appearances, minutes, goals, assists and cards per season and competition. |

#### A player with everything

```json
{ "playerIds": ["342229"], "includeMarketValueHistory": true, "includeTransfers": true, "includeStats": true }
```

#### The Premier League table and its clubs

```json
{ "competitionIds": ["GB1"], "competitionData": "both" }
```

### Output Overview

Player rows: `playerName`, `marketValueEur`, `marketValue`, `marketValueUpdated`, `position`, `age`, `nationalities`, `clubName`, `contractUntil`, `agent`, `foot`, `heightCm`, `dateOfBirth`, `placeOfBirth`, `otherPositions`, `shirtNumber`, `joinedOn`, `contractOption`, `onLoanFrom`, `previousMarketValueEur`, `marketValueTrend`, `peakMarketValueEur`, `peakMarketValueDate`, `lowestMarketValueEur`, `valueRankWorldwide`, `nationalTeam`, `internationalCaps`, `internationalGoals`, `outfitter`, `socialMedia`, `photoUrl`, `playerId`, `profileUrl`; with stats: `careerStats`, `seasonStats`.

Club rows: `clubName`, `totalMarketValueEur`, `squadSize`, `averageAge`, `averageMarketValueEur`, `leagueName`, `country`, `manager`, `managerContractUntil`, `stadium`, `stadiumCapacity`, `officialName`, `city`, `clubColors`, `crestUrl`, `clubId`, `clubUrl`.

Squad-player rows: `clubName`, `season`, `shirtNumber`, `playerName`, `position`, `age`, `nationalities`, `marketValueEur`, `contractUntil`, `joinedOn`, `heightCm`, `foot`, `isCaptain`, `playerId`.

Table rows: `competitionName`, `season`, `rank`, `clubName`, `played`, `wins`, `draws`, `losses`, `goalsFor`, `goalsAgainst`, `goalDifference`, `points`, `previousRank`, `movement`.

Transfer rows: `playerName`, `date`, `season`, `fromClub`, `toClub`, `fee`, `feeEur`, `marketValueEur`, `transferType`, `ageAtTransfer`, `fromLeague`, `toLeague`, `upcoming`.

Market-value rows: `playerName`, `date`, `marketValueEur`, `marketValue`, `clubName`, `age`, `season`.

### Output Samples

```json
{
  "recordType": "player",
  "playerName": "Kylian Mbappé",
  "marketValue": "€200.00M",
  "marketValueEur": 200000000,
  "position": "Centre-Forward",
  "age": 27,
  "clubName": "Real Madrid",
  "contractUntil": "2029-06-30",
  "agent": "Relatives",
  "foot": "right",
  "heightCm": 180,
  "playerId": "342229"
}
```

### Key Output Fields

- `marketValueEur`, `marketValueTrend`, `peakMarketValueEur`, `valueRankWorldwide`: what a player is worth and where it is heading.
- `contractUntil`, `contractOption`, `onLoanFrom`, `agent`: the contract situation.
- `feeEur`, `transferType`, `marketValueEur` on transfer rows: what each move cost.
- `rank`, `points`, `goalDifference`: the league table.

### FAQ

**Which leagues work?**
Every competition on Transfermarkt; use its code from the link (GB1 Premier League, ES1 LaLiga, L1 Bundesliga, IT1 Serie A, FR1 Ligue 1) or the link itself.

**Which season is used?**
The current one unless you set `season`.

**What does the free Apify plan get?**
Up to 20 rows from the first input per run. Any paid Apify plan removes the limit.

**How much does it cost?**
$0.01 per run start; $0.0015 per player or club ($1.50 per 1,000), $0.0005 per squad player or transfer ($0.50 per 1,000), $0.0003 per table row ($0.30 per 1,000), $0.0002 per market-value point ($0.20 per 1,000), and $0.001 per player with performance stats ($1.00 per 1,000). A Premier League table with its 20 clubs costs about $0.05. Duplicates and the run summary are never charged.

### Support

Found a bug or missing a field? Open an issue on the actor's [Issues tab](https://apify.com/memo23/transfermarkt-scraper/issues) with your run link and input.

### Additional Services

Need a scheduled feed of values or transfers, or a custom export? Ask on the Issues tab; tailored work is available.

### Explore More Scrapers

- [**Sofascore Scraper**](https://apify.com/memo23/sofascore-scraper): live scores, matches and player ratings.

Full list at [apify.com/memo23](https://apify.com/memo23).

### 🤖 For AI Agents & LLM Apps

Compact reference for agents calling this actor through the [Apify MCP server](https://mcp.apify.com) or the Apify API (actor: `memo23/transfermarkt-scraper`).

**Purpose:** Transfermarkt players, clubs, squads, league tables, transfers and market-value histories.

**Minimal input:**

```json
{ "searchTerms": ["haaland"], "searchFor": "players" }
```

**Output:** rows with `recordType` player (playerName, marketValueEur, position, age, clubName, contractUntil, agent), club (clubName, totalMarketValueEur, squadSize, manager), squad-player, table-row (rank, clubName, points), transfer (date, fromClub, toClub, feeEur) or market-value (date, marketValueEur).

**Behaviors an agent should know:**

- Club inputs bring their squad unless `includeSquad` is off; competition inputs bring the table and club list.
- Histories, transfers and stats are off by default.
- Billing: $0.01 per run start; `player` and `club` $0.0015, `squad-player` and `transfer` $0.0005, `table-row` $0.0003, `market-value` $0.0002, `player-stats` $0.001.

### ⚠️ Disclaimer

This Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by Transfermarkt. All trademarks mentioned are the property of their respective owners.

It returns publicly available football information. It does not access accounts or content behind a login. Users are responsible for making sure their use complies with Transfermarkt's terms, applicable law and their own contractual obligations.

### SEO Keywords

transfermarkt scraper, transfermarkt api, football market values, player market value, transfermarkt transfers, football squad data, league table scraper, football player database, soccer data api, transfer history, transfermarkt export to csv

# Actor input Schema

## `startUrls` (type: `array`):

Player pages (…/profil/spieler/418560, or its market-value, transfers or stats page), club pages (…/startseite/verein/281, …/kader/verein/281/saison_id/2025), competition pages (…/startseite/wettbewerb/GB1, …/tabelle/wettbewerb/GB1) or search pages (…/schnellsuche/ergebnis/schnellsuche?query=…). Any Transfermarkt country site works.

## `searchTerms` (type: `array`):

Player or club names, e.g. salah, real madrid. Each match comes with its full profile.

## `searchFor` (type: `string`):

Which matches a search term returns.

## `maxSearchResults` (type: `integer`):

For players and for clubs, each.

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

The number at the end of a player link, e.g. 418560 (Erling Haaland).

## `clubIds` (type: `array`):

The number at the end of a club link, e.g. 281 (Manchester City). National teams are clubs too, e.g. 3440 (Norway).

## `competitionIds` (type: `array`):

League or cup codes, e.g. GB1 (Premier League), ES1 (LaLiga), L1 (Bundesliga), IT1 (Serie A), FR1 (Ligue 1), CL (Champions League).

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

The year a season starts, e.g. 2024 for 2024/25. Applies to club squads, league tables and a league's clubs. Leave empty for the current season. A season in a link wins.

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

For club links and ids: every squad player as a row with shirt number, position, age, citizenship, height, foot, market value and contract. Charged per squad player.

## `competitionData` (type: `string`):

League table rows (rank, played, wins, draws, losses, goals, points, zone) and the league's clubs (squad size, average age, total market value).

## `includeMarketValueHistory` (type: `boolean`):

For players from links, ids and search: every valuation with date, club and age as separate rows, plus the lowest value and the worldwide value rank on the player row. Charged per valuation.

## `includeTransfers` (type: `boolean`):

For players from links, ids and search: every move with date, season, both clubs and leagues, fee, market value at the time and contract length, as separate rows. Charged per transfer.

## `includeStats` (type: `boolean`):

For players from links, ids and search: appearances, starts, minutes, goals, assists, cards and substitutions per season, competition and club, and career totals, on the player row. Charged as a separate event per player.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.transfermarkt.com/erling-haaland/profil/spieler/418560"
    }
  ],
  "searchFor": "players_and_clubs",
  "maxSearchResults": 10,
  "includeSquad": true,
  "competitionData": "both",
  "includeMarketValueHistory": false,
  "includeTransfers": false,
  "includeStats": false
}
```

# Actor output Schema

## `rows` (type: `string`):

All rows in the default dataset.

## `summary` (type: `string`):

What each input delivered or could not read.

# 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 = {
    "startUrls": [
        {
            "url": "https://www.transfermarkt.com/erling-haaland/profil/spieler/418560"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("memo23/transfermarkt-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 = { "startUrls": [{ "url": "https://www.transfermarkt.com/erling-haaland/profil/spieler/418560" }] }

# Run the Actor and wait for it to finish
run = client.actor("memo23/transfermarkt-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 '{
  "startUrls": [
    {
      "url": "https://www.transfermarkt.com/erling-haaland/profil/spieler/418560"
    }
  ]
}' |
apify call memo23/transfermarkt-scraper --silent --output-dataset

```

## MCP server setup

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