# Transfermarkt Scraper — Player Values, Squads & Transfers (`logiover/transfermarkt-scraper`) Actor

Extract football player market valuations (EUR), club squads, contracts, agents, nationalities, league tables, and transfers from Transfermarkt across 50+ world leagues. Clean numeric EUR values, zero API key required, AI & MCP ready.

- **URL**: https://apify.com/logiover/transfermarkt-scraper.md
- **Developed by:** [Logiover](https://apify.com/logiover) (community)
- **Categories:** Other, News
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.20 / 1,000 results

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

## Transfermarkt Scraper — Football Player Market Values, Club Squads & Transfers

> **Disclaimer:** This Actor is an independent data extraction tool and is not affiliated with, endorsed by, or sponsored by Transfermarkt GmbH & Co. KG or Axel Springer SE. All trademarks belong to their respective owners.

**Transfermarkt Scraper** is a high-speed football data extraction engine and **Transfermarkt API alternative** built to extract clean, structured player market valuations (`marketValueEur` in exact integer EUR), club rosters, contract expiration dates, player agencies, FIFA nationalities, tactical positions, league table standings, and historical transfer fees across **54 world leagues**. Teams that need to **scrape transfermarkt.com without API key** setup can launch a single run and **export Transfermarkt to CSV, Excel, JSON**, Parquet, Google Sheets, Snowflake, or BigQuery in seconds.

Engineered for club scouting departments, sports analytics pipelines, oddsmakers, player agencies, sports media desks, fantasy football platforms, and **AI agent & MCP ready** automation stacks, this **transfermarkt scraper** normalizes compact strings (`€220.00M`, `€500K`) into strongly typed numbers, links every player to their current club standing and representative agency, deduplicates across multi-league crawls, and scales smoothly from a 30-row instant check (`4.1s`) to **12,000+ unique players in 48.0 seconds**.

***

### At a Glance

| Property | Details |
| :--- | :--- |
| **Actor Slug** | `logiover/transfermarkt-scraper` |
| **Target Domain** | `transfermarkt.com` (54 world domestic leagues, 900+ clubs, global leaderboards & transfers) |
| **Extraction Modes** | `competitions` (League Squads), `top_players` (Most Valuable Leaderboard), `clubs` (Club Rosters), `transfers` (Arrivals & Departures), `search` (Keyword & URLs) |
| **Output Grain** | 1 row = 1 unique deduplicated football player (`id` = `playerId`) or 1 unique transfer (`id` = `tf_<transferId>`) |
| **Verified Scale Run** | **12,000 unique players** across **23 competitions (418 clubs)** in **48.0s** (`2026-11-17`, `0` duplicates, `0` empty columns) |
| **Verified Prefill Run** | **30 unique Premier League stars** in **4.1s** (`2026-11-17`, `SUCCEEDED`) |
| **Valuation Precision** | Exact integer EUR (`marketValueEur`, `previousMarketValueEur`, `highestMarketValueEur`, `clubMarketValueEur`, `transferFeeEur`) + formatted strings |
| **Pricing Model** | Pay Per Event (`PAY_PER_EVENT`) — **$1.80 / 1,000 results** (FREE) down to **$1.20 / 1,000 results** (GOLD / PLATINUM / DIAMOND) |
| **Export Formats** | JSON, JSONL, CSV, Excel (`.xlsx`), HTML Table, XML, RSS, Parquet via API |
| **AI & Automation** | Official Apify MCP Server (`https://mcp.apify.com?tools=logiover/transfermarkt-scraper`), LangChain, CrewAI, n8n, Make, Zapier |

***

### Key Features & Extraction Modes

#### 1. League & Competition Squads (`mode: "competitions"`)

Crawl complete club squads across any combination of **54 built-in world football leagues** — including the Premier League (`GB1`), LaLiga (`ES1`), Serie A (`IT1`), Bundesliga (`L1`), Ligue 1 (`FR1`), Liga Portugal (`PO1`), Eredivisie (`NL1`), Süper Lig (`TR1`), Brasileirão (`BRA1`), Major League Soccer (`MLS1`), Championship (`GB2`), Saudi Pro League (`SA1`), Argentine Liga Profesional (`AR1N`), Liga MX (`MEX1`), J1 League (`JAP1`), and K League 1 (`KR1`). Pass `["ALL"]` in `competitions` to scan all 54 supported divisions (~914 clubs and ~24,500+ active players) automatically.

#### 2. Global Most Valuable Players Leaderboard (`mode: "top_players"`)

Extract Transfermarkt's flagship `/spieler-statistik/wertvollstespieler/marktwertetop` ranking of the highest-valued footballers in the world, enriched with full contract dates, agency representation, valuation deltas, club league standings, and career peak values.

#### 3. Specific Club Squads (`mode: "clubs"`)

Supply one or more Transfermarkt club IDs in `clubIds` (for example `["281", "418", "131", "11", "27"]` for Manchester City, Real Madrid, FC Barcelona, Arsenal, and Bayern Munich) or club URLs in `startUrls` to pull full first-team rosters, shirt numbers, captaincy flags, joined dates, and individual player valuations.

#### 4. Club & Player Transfer Histories (`mode: "transfers"`)

Extract historical and upcoming transfers (`arrivals` and `departures`) for entire leagues (`competitions`), specific clubs (`clubIds`), or individual players (`playerIds`). Every transfer row includes exact numeric `transferFeeEur`, `transferFeeFormatted`, `marketValueEur` at the date of transfer, `transferDate`, `transferSeason` (e.g. `25/26`), `transferType` (`STANDARD`, `LOAN`, etc.), `sourceClubId` / `sourceClubName`, and `destinationClubId` / `destinationClubName`.

#### 5. Keyword Search & Direct URL Routing (`mode: "search"` & `startUrls`)

Search Transfermarkt by player name, club name, or competition keyword via `queries` (e.g. `["Jude Bellingham", "Sporting CP"]`), or paste any mix of `transfermarkt.com` player, club, competition, or `marktwertetop` URLs into `startUrls`. Every discovered entity is automatically normalized into the exact same 46-column schema.

#### 6. Built-In Scouting & Contract Intelligence Filters

Narrow results before saving (so you only pay for records matching your exact scouting criteria):

- **Tactical Position Group (`positionGroup`):** `Goalkeeper`, `Defender`, `Midfielder`, or `Striker`.
- **Citizenship (`nationalityFilter`):** Match country names (`"Brazil"`, `"France"`, `"Norway"`) or 3-letter FIFA codes (`"BRA"`, `"FRA"`, `"NOR"`).
- **Valuation Floor (`minMarketValueEur`):** Keep only players valued at or above an integer EUR threshold (e.g. `15000000` for €15M+).
- **Age Window (`ageMin` / `ageMax`):** Isolate U19, U21, or U23 prospects (`ageMax: 21`) or experienced veterans (`ageMin: 30`).
- **Expiring Contracts (`contractExpiringYear`):** Surface upcoming free agents whose contracts expire in or before a target year (e.g. `2027`).

***

### 12 High-Impact B2B, Scouting & AI Use Cases

1. **Club Recruitment & U21 Prospect Discovery:** Filter 54 global leagues for U21 wingers, centre-backs, or defensive midfielders (`ageMax: 21`, `minMarketValueEur: 1000000`) to uncover undervalued talent in South America, Scandinavia, Eastern Europe, and Asia.
2. **Free-Agent & Bosman Contract Tracking:** Query `contractExpiringYear: 2027` across Europe's top 10 divisions to identify high-value players entering the final 6–12 months of their club deals.
3. **Player Agency Portfolio Mapping & Competitive Intelligence:** Aggregate `agentName` and `agentUrl` across 12,000+ professionals to measure total client valuation under management for agencies like CAA Stellar, Gestifute, Wasserman, ROOF, and Rafaela Pimenta.
4. **Quantitative Sportsbook & xG Pricing Models:** Feed squad-level `clubMarketValueEur`, `marketValueEur`, `clubLeagueRank`, and `clubLeaguePoints` into match-outcome, Asian handicap, and seasonal points-projection models.
5. **Valuation Momentum & Market Delta Analytics:** Track `marketValueEur` vs `previousMarketValueEur` and `marketValueDelta` after each Transfermarkt seasonal valuation update to spot breakout risers before transfer windows open.
6. **Transfer Fee Benchmarking & M\&A Club Due Diligence:** Private equity groups and multi-club ownership (MCO) analysts benchmark squad asset value (`clubMarketValueEur`), squad age curves, and historical net transfer spend (`transfers` mode).
7. **Fantasy Football, Sorare & Gaming Databases:** Keep player clubs, jersey numbers (`shirtNumber`), positions (`positionShort`), heights, preferred feet, and portraits (`portraitUrl`) synchronized across 900+ clubs.
8. **Sports Journalism & Broadcast Graphics Automation:** Generate instant deadline-day rankings, nationality breakdowns, and league valuation comparisons exported directly to CSV or Google Sheets.
9. **Sponsorship & Brand Endorsement Valuation:** Correlate player market value trajectories, age, nationality, and club tier to price athlete sponsorship deals objectively.
10. **AI Scouting Copilots via Model Context Protocol (MCP):** Connect Claude Desktop, Cursor, or OpenAI Agents directly to `logiover/transfermarkt-scraper` so analysts can ask natural-language questions like *"List all left-footed centre-backs under 23 in Ligue 1 and Eredivisie worth over €5M."*
11. **Academy Pathway & Birthplace Demographics Research:** Analyze `placeOfBirth`, `countryOfBirth`, and `nationalityCode` across top-flight rosters to map diaspora talent pipelines.
12. **Automated Data Warehouse Syncs:** Schedule weekly runs via Apify Schedules + Webhooks to maintain a longitudinal time-series warehouse of global football valuations in Snowflake, BigQuery, or PostgreSQL.

***

### Supported 54 World League Codes (`competitions`)

| Code | Competition | Country | Code | Competition | Country |
| :--- | :--- | :--- | :--- | :--- | :--- |
| `GB1` | Premier League | England | `CRO1` | SuperSport HNL | Croatia |
| `ES1` | LaLiga | Spain | `SER1` | Super liga Srbije | Serbia |
| `IT1` | Serie A | Italy | `RO1` | SuperLiga | Romania |
| `L1` | Bundesliga | Germany | `UKR1` | Premier Liga | Ukraine |
| `FR1` | Ligue 1 | France | `UNG1` | Nemzeti Bajnokság | Hungary |
| `PO1` | Liga Portugal | Portugal | `BU1` | efbet Liga | Bulgaria |
| `NL1` | Eredivisie | Netherlands | `ISR1` | Ligat ha'Al | Israel |
| `TR1` | Süper Lig | Türkiye | `ZYP1` | Protathlima Cyta | Cyprus |
| `BRA1` | Campeonato Brasileiro Série A | Brazil | `UAE1` | UAE Pro League | UAE |
| `MLS1` | Major League Soccer | USA / Canada | `QSL` | Qatar Stars League | Qatar |
| `GB2` | Championship | England | `EGY1` | Egyptian Premier League | Egypt |
| `SA1` | Saudi Pro League | Saudi Arabia | `AUS1` | A-League Men | Australia |
| `BE1` | Jupiler Pro League | Belgium | `COL1` | Liga Dimayor | Colombia |
| `AR1N` | Torneo Apertura / Liga Profesional | Argentina | `CLPD` | Liga de Primera | Chile |
| `MEX1` | Liga MX | Mexico | `URU1` | Liga AUF | Uruguay |
| `RU1` | Premier Liga | Russia | `SL1` | Prva Liga | Slovenia |
| `A1` | Bundesliga | Austria | `BOS1` | Premijer Liga BiH | Bosnia |
| `SC1` | Scottish Premiership | Scotland | `ES2` | LaLiga2 | Spain |
| `C1` | Super League | Switzerland | `IT2` | Serie B | Italy |
| `DK1` | Superliga | Denmark | `L2` | 2. Bundesliga | Germany |
| `GR1` | Super League 1 | Greece | `FR2` | Ligue 2 | France |
| `PL1` | Ekstraklasa | Poland | `GB3` | League One | England |
| `TS1` | Chance Liga | Czechia | `GB4` | League Two | England |
| `JAP1` | J1 League | Japan | `NL2` | Keuken Kampioen Divisie | Netherlands |
| `KR1` | K League 1 | South Korea | `PO2` | Liga Portugal 2 | Portugal |
| `SE1` | Allsvenskan | Sweden | `TR2` | 1.Lig | Türkiye |
| `NO1` | Eliteserien | Norway | `BRA2` | Campeonato Brasileiro Série B | Brazil |

> **Tip:** Pass `"competitions": ["ALL"]` to automatically iterate through all 54 leagues in market-value priority order up to your `maxResults` limit!

***

### 9 Copy-Paste JSON Input Recipes

#### Recipe 1: Europe's "Big Five" Leagues Complete Player Database (~2,650 Players)

```json
{
  "mode": "competitions",
  "competitions": ["GB1", "ES1", "IT1", "L1", "FR1"],
  "sortBy": "marketValueDesc",
  "maxResults": 3000
}
```

#### Recipe 2: Global 12,000+ Player Bulk Warehouse Sync (`["ALL"]`)

```json
{
  "mode": "competitions",
  "competitions": ["ALL"],
  "sortBy": "marketValueDesc",
  "maxResults": 12000
}
```

#### Recipe 3: Global Top 250 Most Valuable Footballers Leaderboard (`marktwertetop`)

```json
{
  "mode": "top_players",
  "maxResults": 250
}
```

#### Recipe 4: U21 High-Potential Scouting Across South America & Iberian Leagues

```json
{
  "mode": "competitions",
  "competitions": ["BRA1", "AR1N", "COL1", "URU1", "PO1", "ES1"],
  "ageMax": 21,
  "minMarketValueEur": 2000000,
  "sortBy": "marketValueDesc",
  "maxResults": 500
}
```

#### Recipe 5: Upcoming Free Agents (Contracts Expiring by 2027 Worth €10M+)

```json
{
  "mode": "competitions",
  "competitions": ["GB1", "ES1", "IT1", "L1", "FR1", "NL1", "PO1", "TR1"],
  "contractExpiringYear": 2027,
  "minMarketValueEur": 10000000,
  "sortBy": "marketValueDesc",
  "maxResults": 400
}
```

#### Recipe 6: Specific Elite Club Rosters (Man City, Real Madrid, Barcelona, Arsenal, Bayern)

```json
{
  "mode": "clubs",
  "clubIds": ["281", "418", "131", "11", "27"],
  "sortBy": "marketValueDesc",
  "maxResults": 200
}
```

#### Recipe 7: Premier League Club Transfer Arrivals & Departures (`transfers` Mode)

```json
{
  "mode": "transfers",
  "competitions": ["GB1"],
  "maxResults": 500
}
```

#### Recipe 8: Brazilian Strikers Across All World Leagues

```json
{
  "mode": "competitions",
  "competitions": ["ALL"],
  "positionGroup": "Striker",
  "nationalityFilter": "BRA",
  "minMarketValueEur": 1000000,
  "sortBy": "marketValueDesc",
  "maxResults": 500
}
```

#### Recipe 9: Direct Transfermarkt URLs & Player Keyword Search

```json
{
  "mode": "search",
  "queries": ["Jude Bellingham", "Lamine Yamal"],
  "startUrls": [
    { "url": "https://www.transfermarkt.com/super-lig/startseite/wettbewerb/TR1" },
    { "url": "https://www.transfermarkt.com/galatasaray/startseite/verein/141" }
  ],
  "maxResults": 150
}
```

***

### Full Input Reference

| Parameter | Type | Default / Prefill | Description |
| :--- | :--- | :--- | :--- |
| `mode` | `string` | `"competitions"` | Extraction mode: `"competitions"`, `"top_players"`, `"clubs"`, `"transfers"`, or `"search"`. |
| `competitions` | `string[]` | `["GB1"]` | Array of Transfermarkt league IDs (e.g. `["GB1", "ES1", "TR1"]`) or `["ALL"]` for all 54 world leagues. |
| `clubIds` | `string[]` | `[]` | Specific Transfermarkt club IDs (e.g. `["281", "418"]`) for `"clubs"` or `"transfers"` mode. |
| `playerIds` | `string[]` | `[]` | Specific Transfermarkt player IDs (e.g. `["418560", "342229"]`) to enrich directly or pull transfer history for. |
| `queries` | `string[]` | `[]` | Keyword search strings (player, club, or league names) resolved via Transfermarkt search. |
| `startUrls` | `array` | `[]` | Direct `transfermarkt.com` competition, club, player, search, or `marktwertetop` URLs. |
| `positionGroup` | `string` | `"ALL"` | Filter players by `"ALL"`, `"Goalkeeper"`, `"Defender"`, `"Midfielder"`, or `"Striker"`. |
| `nationalityFilter` | `string` | `""` | Country name (e.g. `"France"`) or 3-letter FIFA code (e.g. `"FRA"`). Case-insensitive. |
| `minMarketValueEur` | `integer` | `0` | Minimum current player market value in EUR (e.g. `10000000` for €10M+). |
| `ageMin` | `integer` | `0` | Minimum player age (`0` = no minimum). |
| `ageMax` | `integer` | `0` | Maximum player age (`0` = no maximum; e.g. `21` for U21 prospects). |
| `contractExpiringYear` | `integer` | `0` | Only return players whose `contractUntil` year is `<= contractExpiringYear` (`0` = disabled). |
| `sortBy` | `string` | `"marketValueDesc"` | Sort order per league/batch: `"marketValueDesc"`, `"clubRankAsc"`, or `"ageAsc"`. |
| `maxResults` | `integer` | `200` (prefill `30`) | Maximum unique deduplicated rows to return (`1` to `100,000`). |
| `proxyConfiguration` | `object` | `{"useApifyProxy": true}` | Standard Apify Proxy settings or custom proxy URLs. |

***

### Complete Output Data Dictionary & Measured Fill Rates

Fill rates below were measured directly on our **12,000-row live Apify scale run** (`runId: cAQbbD2ba35kBRiC7` on `2026-11-17` across 23 competitions and 418 clubs — **zero empty columns, lowest fill 86.8%**):

| Field | Type | Measured Fill (12k Run) | Description |
| :--- | :--- | :--- | :--- |
| `id` | `string` | **100.0%** | Unique deduplication identifier (`playerId` in player modes; `tf_<transferId>` in `transfers` mode). |
| `playerId` | `string` | **100.0%** | Canonical Transfermarkt numeric player ID (e.g. `"418560"`). |
| `name` | `string` | **100.0%** | Full player display name (e.g. `"Erling Haaland"`). |
| `firstName` | `string` | **100.0%** | Given name (`"Erling"`). |
| `lastName` | `string` | **100.0%** | Surname / family name (`"Haaland"`). |
| `shortName` | `string` | **100.0%** | Abbreviated broadcast name (`"E. Haaland"`). |
| `age` | `number` | **100.0%** | Current player age in years (`26`). |
| `dateOfBirth` | `string` | **100.0%** | ISO birth date (`YYYY-MM-DD`, e.g. `"2000-07-21"`). |
| `placeOfBirth` | `string \| null` | **92.3%** | Birth city or municipality (`"Leeds"`). |
| `countryOfBirth` | `string \| null` | **100.0%** | Country of birth (`"England"`). |
| `nationality` | `string \| null` | **100.0%** | Primary sporting nationality (`"Norway"`). |
| `nationalityCode` | `string \| null` | **99.9%** | 3-letter FIFA country code (`"NOR"`). |
| `heightMeters` | `number \| null` | **96.6%** | Player height in meters (`1.95`). |
| `preferredFoot` | `string \| null` | **93.1%** | Stronger foot (`"left"`, `"right"`, or `"both"`). |
| `position` | `string \| null` | **100.0%** | Specific tactical role (`"Centre-Forward"`, `"Defensive Midfield"`, `"Centre-Back"`). |
| `positionShort` | `string \| null` | **99.9%** | Short position code (`"CF"`, `"DM"`, `"CB"`, `"GK"`, `"RW"`). |
| `positionGroup` | `string \| null` | **100.0%** | Normalized line (`"Goalkeeper"`, `"Defender"`, `"Midfielder"`, `"Striker"`). |
| `shirtNumber` | `number \| null` | **98.5%** | Current squad jersey number (`9`). |
| `isCaptain` | `boolean` | **100.0%** | Whether the player is club captain (`true` / `false`). |
| `joinedClubDate` | `string \| null` | **100.0%** | ISO date joined current club (`"2022-07-01"`). |
| `contractUntil` | `string \| null` | **93.2%** | ISO contract expiration date (`"2034-06-30"`). |
| `agentName` | `string \| null` | **90.2%** | Player agency or representative name (`"Rafaela Pimenta"`, `"CAA Stellar"`). |
| `agentUrl` | `string \| null` | **86.8%** | Full Transfermarkt agency profile URL. |
| `marketValueEur` | `number \| null` | **96.8%** | Current market valuation as an exact integer in EUR (`220000000`). |
| `marketValueFormatted` | `string \| null` | **96.8%** | Human-readable valuation string (`"€220.00M"`). |
| `marketValueUpdatedAt` | `string \| null` | **96.8%** | ISO date of latest valuation (`"2026-07-22"`). |
| `previousMarketValueEur` | `number \| null` | **93.5%** | Prior valuation in integer EUR (`200000000`). |
| `marketValueDelta` | `string \| null` | **93.5%** | Valuation change vs previous update (`"+20.000.000 € (+10,00 %)"` or `"UNCHANGED"`). |
| `highestMarketValueEur` | `number \| null` | **96.8%** | Career-high market valuation in integer EUR (`220000000`). |
| `highestMarketValueDate` | `string \| null` | **96.8%** | ISO date when career-high valuation was achieved. |
| `clubId` | `string \| null` | **100.0%** | Current Transfermarkt club ID (`"281"`). |
| `clubName` | `string \| null` | **100.0%** | Current club full name (`"Manchester City"`). |
| `clubCode` | `string \| null` | **100.0%** | Club short code / abbreviation (`"MCI"`). |
| `clubCity` | `string \| null` | **100.0%** | Club home city (`"Manchester"`). |
| `clubMarketValueEur` | `number \| null` | **100.0%** | Total combined squad valuation of the player's club in EUR (`1498300000`). |
| `clubLeagueRank` | `number \| null` | **100.0%** | Current domestic league table standing of the club (`3`). |
| `clubLeaguePoints` | `number \| null` | **100.0%** | Current domestic league points total (`21`). |
| `clubLogoUrl` | `string \| null` | **100.0%** | High-resolution club crest PNG URL. |
| `clubUrl` | `string \| null` | **100.0%** | Canonical Transfermarkt club page URL. |
| `competitionId` | `string \| null` | **100.0%** | Domestic league / competition code (`"GB1"`). |
| `competitionName` | `string \| null` | **100.0%** | Domestic league name (`"Premier League"`). |
| `competitionCountry` | `string \| null` | **100.0%** | Domestic league country (`"England"`). |
| `competitionUrl` | `string \| null` | **100.0%** | Canonical Transfermarkt competition page URL. |
| `portraitUrl` | `string \| null` | **95.4%** | High-resolution player portrait image URL. |
| `url` | `string` | **100.0%** | Canonical Transfermarkt player profile URL (or transfer URL in `transfers` mode). |
| `scrapedAt` | `string` | **100.0%** | ISO-8601 UTC extraction timestamp. |

*Additional fields populated when `mode: "transfers"` is selected:* `transferFeeEur` (`number`), `transferFeeFormatted` (`string`), `transferDate` (`string`), `transferSeason` (`string`), `transferType` (`string`), `sourceClubId` (`string`), `sourceClubName` (`string`), `destinationClubId` (`string`), and `destinationClubName` (`string`).

***

### Real Live Output Sample (Unmasked Platform Output)

Captured verbatim from live Apify run `QqLTnzdSQDQjFhDSJ` (`2026-11-17`):

```json
{
  "id": "418560",
  "playerId": "418560",
  "name": "Erling Haaland",
  "firstName": "Erling",
  "lastName": "Haaland",
  "shortName": "E. Haaland",
  "age": 26,
  "dateOfBirth": "2000-07-21",
  "placeOfBirth": "Leeds",
  "countryOfBirth": "England",
  "nationality": "Norway",
  "nationalityCode": "NOR",
  "heightMeters": 1.95,
  "preferredFoot": "left",
  "position": "Centre-Forward",
  "positionShort": "CF",
  "positionGroup": "Striker",
  "shirtNumber": 9,
  "isCaptain": false,
  "joinedClubDate": "2022-07-01",
  "contractUntil": "2034-06-30",
  "agentName": "Rafaela Pimenta",
  "agentUrl": "https://www.transfermarkt.com/rafaela-pimenta/beraterfirma/berater/282",
  "marketValueEur": 220000000,
  "marketValueFormatted": "€220.00M",
  "marketValueUpdatedAt": "2026-07-22",
  "previousMarketValueEur": 200000000,
  "marketValueDelta": "+20.000.000 € (+10,00 %)",
  "highestMarketValueEur": 220000000,
  "highestMarketValueDate": "2026-07-22",
  "clubId": "281",
  "clubName": "Manchester City",
  "clubCode": "MCI",
  "clubCity": "Manchester",
  "clubMarketValueEur": 1498300000,
  "clubLeagueRank": 3,
  "clubLeaguePoints": 21,
  "clubLogoUrl": "https://img.a.transfermarkt.technology/wappen/big/281.png?lm=1789459183",
  "clubUrl": "https://www.transfermarkt.com/manchester-city/startseite/verein/281",
  "competitionId": "GB1",
  "competitionName": "Premier League",
  "competitionCountry": "England",
  "competitionUrl": "https://www.transfermarkt.com/premier-league/startseite/wettbewerb/GB1",
  "portraitUrl": "https://img.a.transfermarkt.technology/portrait/big/418560-1788115885.jpg",
  "url": "https://www.transfermarkt.com/erling-haaland/profil/spieler/418560",
  "scrapedAt": "2026-11-17T11:36:27.307Z"
}
```

***

### Measured Performance & Scale Proof (Verified 2026-11-17)

All benchmarks below were executed directly on Apify production containers on **2026-11-17**:

| Benchmark Profile | Run ID | Status | Unique Rows | Duplicates | Empty Columns | Duration | Peak Memory |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| **Prefill / Daily QC (`GB1`, Top 30)** | `QqLTnzdSQDQjFhDSJ` | `SUCCEEDED` | **30** | `0` | `0` | **4.1s** | `60 MB` |
| **Global Scale (`["ALL"]`, 23 Leagues / 418 Clubs)** | `cAQbbD2ba35kBRiC7` | `SUCCEEDED` | **12,000** | `0` | `0` | **48.0s** | `92 MB` |
| **Max-Cost Budget Cap Proof (`$0.05` Limit)** | `DYIkokrx0hTU1PFuC` | `SUCCEEDED` | **31** | `0` | `0` | **2.8s** | `64 MB` |

- **Throughput:** ~**250 fully enriched player records per second** (`12,000` unique deduplicated players across 23 domestic leagues in `48.0s`).
- **Reliability:** `655 / 655` HTTP 200 responses (`0` failed requests, `0` duplicates).

***

### Pricing — What You Pay (Pay Per Event)

This Actor uses transparent **Pay Per Event (`PAY_PER_EVENT`)** pricing: you pay **only per result (`apify-default-dataset-item`)** delivered to your dataset, with **zero additional run or subscription fees** inside the Actor itself. Apify Store plan subscribers automatically receive steep volume discounts:

| Apify Store Plan | Price per 1,000 Results | Price per Single Result | Example: 1,000 Premier League + LaLiga Players | Example: 12,000 World Players |
| :--- | :--- | :--- | :--- | :--- |
| **FREE** | **$1.80** | `$0.00180` | `$1.80` | `$21.60` |
| **BRONZE** | **$1.60** | `$0.00160` | `$1.60` | `$19.20` |
| **SILVER** | **$1.40** | `$0.00140` | `$1.40` | `$16.80` |
| **GOLD** | **$1.20** | `$0.00120` | `$1.20` | `$14.40` |
| **PLATINUM** | **$1.20** | `$0.00120` | `$1.20` | `$14.40` |
| **DIAMOND** | **$1.20** | `$0.00120` | `$1.20` | `$14.40` |

#### Controlling Your Spend ("Maximum cost per run")

You have two independent, exact spending controls on every run:

1. **`maxResults` input field:** Caps the exact number of deduplicated rows saved.
2. **Apify "Maximum cost per run" (`maxTotalChargeUsd`):** Set a hard dollar ceiling in the Apify Console UI or via `?maxTotalChargeUsd=0.50` in the API. Built-in runtime budget protection (`_runtime_guard.js`) checks your remaining allowance before every dataset write and exits cleanly with `SUCCEEDED` status, preserving every record collected up to your dollar limit!

***

### AI Agents & Official Apify MCP Server Integration

**Transfermarkt Scraper** is **AI agent & MCP ready** out of the box via the official Apify Model Context Protocol server. Connect Claude Desktop, Cursor, Windsurf, OpenAI Agents SDK, or custom MCP clients in 30 seconds:

#### Claude Desktop / Cursor `mcp.json` Configuration

```json
{
  "mcpServers": {
    "transfermarkt-scraper": {
      "url": "https://mcp.apify.com?tools=logiover/transfermarkt-scraper",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_API_TOKEN"
      }
    }
  }
}
```

Once connected, your AI agent can autonomously invoke `logiover/transfermarkt-scraper` to answer live scouting, valuation, and contract prompts with verified structured data.

***

### API & Workflow Integrations (Node.js, Python, cURL, Make, n8n, Zapier)

#### Node.js (`apify-client`)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_API_TOKEN });

const run = await client.actor('logiover/transfermarkt-scraper').call({
    mode: 'competitions',
    competitions: ['GB1', 'ES1'],
    ageMax: 23,
    minMarketValueEur: 15000000,
    sortBy: 'marketValueDesc',
    maxResults: 200,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(`Extracted ${items.length} U23 stars:`, items[0]);
```

#### Python (`apify-client`)

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_API_TOKEN"])

run = client.actor("logiover/transfermarkt-scraper").call(
    run_input={
        "mode": "competitions",
        "competitions": ["GB1", "ES1", "IT1", "L1", "FR1"],
        "contractExpiringYear": 2027,
        "minMarketValueEur": 10000000,
        "maxResults": 500,
    }
)

items = client.dataset(run["defaultDatasetId"]).list_items().items
print(f"Loaded {len(items)} expiring-contract players")
```

#### cURL (Synchronous Run + JSON Dataset Output)

```bash
curl -X POST "https://api.apify.com/v2/acts/logiover~transfermarkt-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_API_TOKEN&maxTotalChargeUsd=1.00" \
  -H "Content-Type: application/json" \
  -d '{
    "mode": "competitions",
    "competitions": ["GB1"],
    "maxResults": 50
  }'
```

#### n8n / Make.com / Zapier No-Code Pipelines

- **n8n:** Add the official **Apify** node -> select **Run an Actor** -> enter `logiover/transfermarkt-scraper` -> follow with **Get Dataset Items** -> push directly to Postgres, Airtable, Notion, or Slack scouting alerts.
- **Make.com:** Use **Apify -> Run an Actor** (set *Run synchronously = Yes*) + **Apify -> Get Dataset Items** to populate weekly Google Sheets valuation dashboards.
- **Zapier:** Trigger **New Actor Run Finished** for `logiover/transfermarkt-scraper` and route CSV/Excel exports to email, HubSpot, or BigQuery.

***

### Troubleshooting & Best Practices

- **Getting 0 results with strict filters:** Check whether `minMarketValueEur` (remember `10000000` = €10M, not €10k!), `ageMax`, `nationalityFilter`, or `contractExpiringYear` are mutually exclusive for the selected league. Relax one filter at a time or inspect the `SUMMARY` record in the Run's default Key-Value Store (`filteredOut` count).
- **Scraping more than 600 players:** Either pass multiple league codes in `competitions` (e.g. `["GB1", "ES1", "IT1", "L1", "FR1"]`) or pass `["ALL"]` to automatically traverse all 54 world leagues (~24,500+ active squad players).
- **FIFA Nationality Codes vs Country Names:** `nationalityFilter` accepts both full English country names (`"Argentina"`, `"Netherlands"`, `"Türkiye"`) and 3-letter FIFA codes (`"ARG"`, `"NED"`, `"TUR"`).
- **Support & Feedback:** Encountered an edge case or want an additional competition code added? Open a ticket on **[Actor Issues](https://apify.com/logiover/transfermarkt-scraper/issues)** for fast engineering support, and if this Actor saves your team hours of manual scouting, a quick rating on **[Actor Reviews](https://apify.com/logiover/transfermarkt-scraper/reviews)** helps keep updates shipping!

***

### Frequently Asked Questions (FAQ)

#### How do I scrape Transfermarkt without an API key?

Transfermarkt does not offer an open self-serve public API key to general developers. Simply run `logiover/transfermarkt-scraper` on Apify with league codes (`["GB1"]`), club IDs, search keywords, or URLs — no external credentials, browser cookies, or logins are needed.

#### How are Transfermarkt market values formatted in the dataset?

Every player record provides **both** an exact integer in Euros (`marketValueEur`, e.g. `220000000`) ready for SQL `SUM()`/`AVG()` queries and machine learning models, **and** a display string (`marketValueFormatted`, e.g. `"€220.00M"`), alongside `previousMarketValueEur`, `marketValueDelta`, and `highestMarketValueEur`.

#### How many leagues and players can this Transfermarkt scraper extract in one run?

Built-in world league discovery covers **54 domestic competitions (~914 clubs and ~24,500+ active first-team players)**. In our verified `2026-11-17` benchmark, extracting **12,000 unique deduplicated players** across 23 leagues completed in **48.0 seconds**.

#### Does the Actor deduplicate players automatically?

Yes. Every player record is strictly deduplicated by Transfermarkt `playerId` (`id`) using synchronous in-memory reservation before dataset writes, guaranteeing **zero duplicate players** even when combining search queries, `startUrls`, and multi-league crawls.

#### Can I export Transfermarkt data directly to Excel, CSV, or Google Sheets?

Yes. Every Apify run dataset provides one-click downloads and REST API endpoints for **Excel (`.xlsx`), CSV, JSON, JSONL, XML, and Parquet**, and connects natively to Google Sheets via Make, Zapier, or Apify's Google Drive integration.

#### How do I find upcoming free agents with expiring contracts?

Set `contractExpiringYear` to your target year (for example `2027`) and combine it with `minMarketValueEur` (e.g. `5000000`). Only players whose `contractUntil` date falls in or before `2027` and who meet your valuation floor will be saved to your dataset.

#### Does the output include player agents and representation agencies?

Yes. Both `agentName` (90.2% fill rate across 12,000 global players) and `agentUrl` (full link to the agency's Transfermarkt profile) are extracted automatically for every player who has a verified or listed representative.

#### Can I extract historical transfer fees and loan moves?

Yes. Switch `mode` to `"transfers"` and pass `competitions` (for all clubs in a league), `clubIds` (for specific clubs), or `playerIds` (for individual career transfer histories). Each record includes `transferFeeEur`, `transferFeeFormatted`, `transferDate`, `transferSeason`, `transferType`, `sourceClubName`, and `destinationClubName`.

#### What happens if I set a "Maximum cost per run" budget limit?

The Actor integrates directly with Apify's Pay-Per-Event charging manager. When your run reaches your configured dollar ceiling (`maxTotalChargeUsd`), the Actor flushes buffered items up to your exact allowance, writes a `SUMMARY` object to the Key-Value Store, and exits cleanly with `SUCCEEDED` status — never `ABORTED`.

#### Do filtered-out players count toward my Pay-Per-Event bill?

No. Filtering (`positionGroup`, `nationalityFilter`, `minMarketValueEur`, `ageMin`, `ageMax`, `contractExpiringYear`) happens **before** `Actor.pushData()`, so you are only charged for matching records actually written to your dataset.

#### Can I pass direct Transfermarkt URLs from my browser?

Yes. Paste any `transfermarkt.com` competition (`/wettbewerb/GB1`), club (`/verein/281`), player (`/spieler/418560`), `marktwertetop`, or search URL into `startUrls` — the Actor parses the entity identifiers and enriches them automatically.

#### Are club league standings included on every player row?

Yes. When crawling competitions or enriching clubs, each player row carries `clubMarketValueEur`, `clubLeagueRank` (current table position), and `clubLeaguePoints`, saving you from joining separate league-table datasets.

#### How fast is the default prefill / test run?

With default prefill settings (`competitions: ["GB1"]`, `maxResults: 30`), the Actor completes in **~4 seconds** on Apify and returns the top 30 highest-valued Premier League players.

#### Can I use this Actor with Claude, Cursor, LangChain, or CrewAI?

Yes. Add `https://mcp.apify.com?tools=logiover/transfermarkt-scraper` to any MCP-compatible AI client so your agent can query live player valuations, squad lists, and expiring contracts on demand.

#### How often should I schedule runs to track market value changes?

Most analytics and scouting teams schedule weekly runs for squad/standing updates and daily runs during the January and Summer transfer windows (`mode: "transfers"` and `mode: "competitions"`).

#### Where is run diagnostic metadata stored?

Every run writes a structured `SUMMARY` JSON object to the run's default Key-Value Store containing exact counts for `pushed`, `duplicatesSkipped`, `filteredOut`, `competitionsProcessed`, `clubsProcessed`, `apiRequests`, and `durationSecs`.

# Changelog

This Actor's version history is a separate document: https://apify.com/logiover/transfermarkt-scraper/changelog.md

# Actor input Schema

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

Choose what to extract: League/Competition Squads ('competitions'), Most Valuable Players Leaderboard ('top_players'), Specific Clubs ('clubs'), Club/Player Transfer Histories ('transfers'), or Keyword Search & Direct URLs ('search').

## `competitions` (type: `array`):

Transfermarkt competition IDs to crawl (e.g. GB1 = Premier League, ES1 = LaLiga, IT1 = Serie A, L1 = Bundesliga, FR1 = Ligue 1, TR1 = Süper Lig, NL1 = Eredivisie, PO1 = Liga Portugal, BRA1 = Brasileirão, MLS1 = MLS, SA1 = Saudi Pro League, GB2 = Championship). Pass \["ALL"] to crawl all 53 supported world leagues (~24,500+ players).

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

Specific Transfermarkt club IDs (e.g. '281' Manchester City, '418' Real Madrid, '131' FC Barcelona, '11' Arsenal, '27' Bayern Munich) for 'clubs' or 'transfers' mode.

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

Specific Transfermarkt player IDs (e.g. '418560' Erling Haaland, '342229' Kylian Mbappé, '937958' Lamine Yamal) to enrich or extract transfer history for.

## `queries` (type: `array`):

Player or club search keywords (e.g. 'Bellingham', 'Real Madrid', 'Galatasaray') used when mode is 'search' or alongside other inputs.

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

Direct Transfermarkt competition, club, player, or marktwertetop URLs (either plain URL strings or Apify requestList objects { "url": "..." }).

## `positionGroup` (type: `string`):

Optionally filter players by primary tactical group.

## `nationalityFilter` (type: `string`):

Optional country name or 3-letter FIFA code filter (e.g. 'Brazil' or 'BRA', 'France' or 'FRA', 'England' or 'ENG'). Leave blank for all nationalities.

## `minMarketValueEur` (type: `integer`):

Minimum current market valuation in EUR (e.g. 10000000 for €10M+). Set 0 to include all players.

## `ageMin` (type: `integer`):

Minimum player age (e.g. 16). Set 0 for no lower bound.

## `ageMax` (type: `integer`):

Maximum player age (e.g. 23 for U23 scouting). Set 0 for no upper bound.

## `contractExpiringYear` (type: `integer`):

Optional filter for players whose contracts expire in or before a given year (e.g. 2027 for upcoming free agents). Set 0 to disable.

## `sortBy` (type: `string`):

Ordering applied per league/batch before streaming results.

## `maxResults` (type: `integer`):

Maximum number of unique deduplicated player or transfer records to extract.

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

Proxy settings for HTTP requests.

## Actor input object example

```json
{
  "mode": "competitions",
  "competitions": [
    "GB1"
  ],
  "clubIds": [],
  "playerIds": [],
  "queries": [],
  "startUrls": [],
  "positionGroup": "ALL",
  "nationalityFilter": "",
  "minMarketValueEur": 0,
  "ageMin": 0,
  "ageMax": 0,
  "contractExpiringYear": 0,
  "sortBy": "marketValueDesc",
  "maxResults": 30,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

# 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": "competitions",
    "competitions": [
        "GB1"
    ],
    "positionGroup": "ALL",
    "minMarketValueEur": 0,
    "sortBy": "marketValueDesc",
    "maxResults": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("logiover/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 = {
    "mode": "competitions",
    "competitions": ["GB1"],
    "positionGroup": "ALL",
    "minMarketValueEur": 0,
    "sortBy": "marketValueDesc",
    "maxResults": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("logiover/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 '{
  "mode": "competitions",
  "competitions": [
    "GB1"
  ],
  "positionGroup": "ALL",
  "minMarketValueEur": 0,
  "sortBy": "marketValueDesc",
  "maxResults": 30
}' |
apify call logiover/transfermarkt-scraper --silent --output-dataset

```

## MCP server setup

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