# Transfermarkt Scraper: Football Players and Market Values (`santamaria-automations/transfermarkt-scraper`) Actor

Read the public Transfermarkt player lists: the most valuable players, the most valuable players of a competition or the squad of a club. Name, position, age, nationalities, club, market value as a number and the profile link. No login needed.

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

## Pricing

from $1.25 / 1,000 player delivereds

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

Read the public player lists of Transfermarkt (transfermarkt.com) and get one record per player: name, position, age, every nationality, current club, market value as a number, and the profile link. No login and no API key are needed.

### What you get

- One record per player on the lists you choose, 25 per list page.
- By default the list of the most valuable players in the world.
- Or give list addresses directly: the most valuable players of a competition (for example the Premier League), or the squad of a club (for example FC Barcelona).
- Only what the public list shows. Player profile pages are not opened.
- A player found on two lists is returned once.
- A run that is interrupted continues where it stopped. Players already delivered are not delivered or charged again.
- You pay only for players that were saved to the dataset.

### Use with AI agents (MCP)

Connect this actor to any MCP-compatible AI client, such as Claude Desktop, Cursor, VS Code, LangChain or LlamaIndex.

**MCP server URL:**

```
https://mcp.apify.com?tools=santamaria-automations/transfermarkt-scraper
```

**Example prompt once connected:**

> "Use `transfermarkt-scraper` to list the 50 most valuable football players and group them by club."

### Data extracted

| Field | Example |
|-------|---------|
| `player_id` | `937958` |
| `name` | `"Lamine Yamal"` |
| `url` | `"https://www.transfermarkt.com/lamine-yamal/profil/spieler/937958"` |
| `image_url` | Portrait image address |
| `position` | `"Right Winger"` |
| `age` | `19` |
| `date_of_birth` | `"2001-05-04"`, shown on club squads |
| `nationalities` | `["France", "Cameroon"]`, every flag the list shows |
| `club_name`, `club_id`, `club_url` | `"FC Barcelona"`, `131`, club page address |
| `market_value` | `220000000` as a number |
| `market_value_currency` | `"EUR"` |
| `market_value_text` | `"€220.00M"`, exactly as the list shows it |
| `rank` | Rank on the most valuable players and competition lists (ties repeat a rank) |
| `shirt_number`, `height_m`, `foot` | Shown on club squads |
| `joined`, `signed_from_club`, `signed_from_club_id`, `signed_from_fee_text` | Shown on club squads |
| `contract_expires` | `"2031-06-30"`, shown on club squads |
| `other_columns` | Values of any other column the table shows, keyed by the column title |
| `list_kind`, `list_url`, `page`, `scraped_at` | Where and when the row was read |

Fields that the list does not show are returned empty (null). Market values are numbers in the currency of the list (euros on transfermarkt.com), and a player without a value has `market_value` empty.

### Pricing

Pay-per-event pricing. You pay only for players that were saved to the dataset.

| Event | Price |
|-------|-------|
| Actor start (`actor-start`) | $0.001 per run |
| Player scraped (`player-result`) | $0.00125 per player |

The start event is charged once per run, together with the first saved player. A run that returns nothing is not charged. If you set a maximum cost per run, the actor stops before it goes over that limit.

### Input

| Field | Type | Description | Default |
|-------|------|-------------|---------|
| `startUrls` | string\[] | List addresses: the most valuable players list, a competition list such as `https://www.transfermarkt.com/premier-league/marktwerte/wettbewerb/GB1`, or a club squad such as `https://www.transfermarkt.com/fc-barcelona/kader/verein/131`. Other addresses are refused with a message. | the most valuable players list |
| `maxResults` | integer | Most players to return across all lists. 0 uses 100. | `100` |

The most valuable players address also accepts the list filters of the site (for example `?ausrichtung=Mittelfeld`) and `?plus=1`, which adds statistic columns (matches, goals, assists, cards, substitutions) that are returned in `other_columns`. A club squad is read in the detailed view, which adds birth date, height, foot and contract columns; add `/saison_id/2025` to read an earlier season.

### Usage examples

#### The 100 most valuable players

```json
{
  "maxResults": 100
}
```

#### One competition

```json
{
  "startUrls": ["https://www.transfermarkt.com/premier-league/marktwerte/wettbewerb/GB1"],
  "maxResults": 100
}
```

#### Two club squads

```json
{
  "startUrls": [
    "https://www.transfermarkt.com/fc-barcelona/kader/verein/131",
    "https://www.transfermarkt.com/fc-bayern-munchen/kader/verein/27"
  ],
  "maxResults": 100
}
```

### Output

Results are saved to the default dataset. Export them as JSON, CSV or Excel, or read them through the API.

Sample record:

```json
{
  "player_id": 342229,
  "name": "Kylian Mbappé",
  "url": "https://www.transfermarkt.com/kylian-mbappe/profil/spieler/342229",
  "image_url": "https://img.a.transfermarkt.technology/portrait/small/342229-1789750273.jpg?lm=4711",
  "position": "Centre-Forward",
  "age": 27,
  "date_of_birth": null,
  "nationalities": ["France", "Cameroon"],
  "club_name": "Real Madrid",
  "club_id": 418,
  "club_url": "https://www.transfermarkt.com/real-madrid/startseite/verein/418",
  "market_value": 200000000,
  "market_value_currency": "EUR",
  "market_value_text": "€200.00M",
  "rank": 3,
  "list_kind": "most-valuable",
  "list_url": "https://www.transfermarkt.com/spieler-statistik/wertvollstespieler/marktwertetop",
  "page": 1,
  "scraped_at": "2026-11-09T08:00:00Z"
}
```

### Limitations

- Only three kinds of list are read: the most valuable players list, competition lists (`/marktwerte/wettbewerb/`) and club squads (`/kader/verein/`). Search pages, player profile pages, transfer lists and match data are not read, so market value history, career statistics and injuries are not collected.
- The site lists at most 20 pages (500 players) per list. Use filters, competitions or club squads to reach other players.
- The list shows the current market value only. The birth date, height, foot and contract columns appear on club squads only.
- Only transfermarkt.com addresses are accepted. Other language editions of the site are refused.
- Market values are the site's estimates, not transaction prices.
- The run waits at least 2 seconds between pages, so a run of 100 players takes about 10 seconds plus the page loading time.
- If the site refuses every request, the run fails and nothing is charged.

### FAQ

**Which pages does it read?**
The most valuable players list, competition lists and club squads of transfermarkt.com, and their further pages. It does not use the site search.

**How do I find a competition or club address?**
Open the competition or the club on transfermarkt.com and copy the address of its market values page or squad page. The address must contain `/marktwerte/wettbewerb/` or `/kader/verein/`.

**How many players do I get per list?**
25 per page for the most valuable players and competition lists, and the whole squad for a club (about 25 to 35 players).

**What happens when a player appears on two lists?**
It is returned once.

**Is the market value a number?**
Yes. `market_value` is a number, `market_value_currency` the currency, and `market_value_text` keeps the text as the site shows it.

**What does a run cost?**
The start price plus the price per player, see the pricing table.

**What status does a run end with?**
The run status says how many players were delivered. If nothing matched, the run ends normally and says so. If the site refuses every request, the run fails and nothing is charged.

# Actor input Schema

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

Transfermarkt list pages to read: the most valuable players list (https://www.transfermarkt.com/spieler-statistik/wertvollstespieler/marktwertetop), a competition list such as https://www.transfermarkt.com/premier-league/marktwerte/wettbewerb/GB1, or a club squad such as https://www.transfermarkt.com/fc-barcelona/kader/verein/131. Other pages are refused. Leave empty to read the most valuable players list.

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

Most players to return across all lists (25 players per list page). 0 or empty uses 100.

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

Connection settings. The default works for most runs; the actor chooses the level it needs.

## Actor input object example

```json
{
  "maxResults": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `defaultDataset` (type: `string`):

Dataset containing one record per player

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

// Run the Actor and wait for it to finish
const run = await client.actor("santamaria-automations/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 = {
    "maxResults": 100,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("santamaria-automations/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 '{
  "maxResults": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call santamaria-automations/transfermarkt-scraper --silent --output-dataset

```

## MCP server setup

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