# Transfermarkt Players Scraper · Profiles+values · $1/1K (`mlg14/transfermarkt-scraper`) Actor

Search Transfermarkt players by name for scouting, recruitment and market value research. Returns club, position, nationalities, age, market value in EUR, birth date, height, foot and contract dates. No login. Optional profile details. $1/1K results.

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

## Pricing

$1.00 / 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.

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

Search Transfermarkt players by name and collect public football profile data in a structured dataset. Scrape Transfermarkt player names, clubs, positions, nationalities, market values, and contract details, then export Transfermarkt data to CSV or JSON. The actor also serves as a Transfermarkt API alternative for a player search workflow: provide one name or name fragment, set a result limit, and receive one record per matching player.

The search follows the site's player result pages and can open each matching profile for deeper fields. A search can return similar names, so the dataset preserves the original query alongside each player name and profile URL. You can inspect the match before joining the results to another dataset.

### What data can you extract from Transfermarkt?

Each dataset item represents one player. The table below covers every output field. Blank values are returned as `null` when the site does not list them, and `nationalities` is an array that can hold more than one country.

| Field | Description | Example |
| --- | --- | --- |
| `playerId` | Stable numeric player identifier displayed in the profile URL | `28003` |
| `playerName` | Display name in the search result | `Lionel Messi` |
| `playerUrl` | Direct public player profile URL | `https://www.transfermarkt.com/lionel-messi/profil/spieler/28003` |
| `searchQuery` | Search text supplied for the run | `Messi` |
| `position` | Position abbreviation from search, or full profile position when enabled | `Attack - Right Winger` |
| `club` | Current club name where one is listed | `Inter Miami CF` |
| `clubId` | Club identifier from its public URL | `69261` |
| `clubUrl` | Direct public club URL | `https://www.transfermarkt.com/inter-miami-cf/startseite/verein/69261` |
| `age` | Age shown in the current search results | `39` |
| `nationalities` | Citizenship countries shown for the player | `["Argentina", "Spain"]` |
| `marketValue` | Displayed value, preserving the site's currency and unit | `€ 15.00 m` |
| `marketValueEur` | Displayed euro value converted to whole euros | `15000000` |
| `imageUrl` | Player portrait URL | Public image URL |
| `agent` | Listed representative or agency, if available | `Relatives` |
| `nameInHomeCountry` | Name in home country from the profile | `Lionel Andrés Messi Cuccitini` |
| `dateOfBirth` | Profile birth date in ISO format | `1987-06-24` |
| `placeOfBirth` | Place of birth from the profile | `Rosario` |
| `heightCm` | Height converted from meters to centimeters | `170` |
| `preferredFoot` | Preferred foot on the profile | `left` |
| `joined` | Date joined current club, in ISO format | `2023-07-15` |
| `contractExpires` | Listed contract expiration date, in ISO format | `2028-12-31` |
| `lastContractExtension` | Most recent listed extension date | `2025-10-23` |
| `outfitter` | Listed equipment outfitter | `adidas` |
| `marketValueUpdatedAt` | Date of the displayed market value update | `2026-06-02` |

`marketValueEur` is a conversion of the rounded figure visible on the page. It is useful for sorting and filtering, but it is not a more precise valuation than `marketValue`. When the site displays a dash instead of a price, the text field can contain that dash while the numeric field is `null`.

Profile fields are collected only when `includeProfileDetails` is enabled. Search page fields such as ID, name, profile URL, age, citizenship, club, and displayed market value are available without opening each profile. A profile can still omit a contract date, height, or representative; the actor does not invent missing values.

### How to scrape Transfermarkt players

1. Enter a player name or part of a name in **Player name**. For a wide search, `Messi` is a useful example; `Lionel Messi` is more specific but can still return similarly named players.
2. Set **Maximum players**. A value of 30 stops after 30 distinct player records. Set 0 to continue through the available player result pages.
3. Leave **Include profile details** on for birth dates, height, full position, foot, and contract data. Turn it off when the search listing fields are enough and fewer page requests are preferable.
4. Run the actor. It searches player result pages in order, follows the player pagination, skips duplicate player IDs, and stops at the requested item count or the end of the available results.
5. Open the default dataset and download CSV or JSON. Keep `playerId` and `playerUrl` when you want to reconcile results in later runs.

The actor returns players only. The search page also has separate sections for clubs, officials, referees, and agents; those sections are outside this actor's dataset. A search word may appear in several of those sections, but only the player section contributes records.

### Input

| Parameter | Type | Default | Description |
| --- | --- | --- | --- |
| `playerName` | string | `Lionel Messi` | A full player name or name fragment to search. |
| `maxItems` | integer | `30` | Maximum number of distinct players. Use `0` for all available matches. |
| `includeProfileDetails` | boolean | `true` | Open each profile to add detailed biographical and contract fields. |
| `proxyConfiguration` | object | Proxy enabled | Optional proxy settings for access to public pages. |

Example input used in a verified 30-record run:

```json
{
  "playerName": "Messi",
  "maxItems": 30,
  "includeProfileDetails": true
}
```

The name is a search query, not a unique player lookup key. A query for `Messi` returned Lionel Messi along with other players whose names matched the site's search. For an exact player workflow, select the desired `playerId` from the results. Keeping the ID is more dependable than matching only on a display name, because names can repeat or change.

The maximum is applied across all player result pages, not separately to each page. If a search has fewer matches than the requested maximum, the actor returns the available matches. If the search has no player results, the dataset is empty. The actor does not fill a requested maximum with unrelated categories from the search page.

### Output example

This item came from the verified run above. It is shown in full so the relationship between listing fields and profile fields is clear:

```json
{
  "playerId": "28003",
  "playerName": "Lionel Messi",
  "playerUrl": "https://www.transfermarkt.com/lionel-messi/profil/spieler/28003",
  "searchQuery": "Messi",
  "position": "Attack - Right Winger",
  "club": "Inter Miami CF",
  "clubId": "69261",
  "clubUrl": "https://www.transfermarkt.com/inter-miami-cf/startseite/verein/69261",
  "age": 39,
  "nationalities": ["Argentina", "Spain"],
  "marketValue": "€ 15.00 m",
  "marketValueEur": 15000000,
  "imageUrl": "https://img.a.transfermarkt.technology/portrait/header/28003-1771694720.jpg?lm=4711",
  "agent": "Relatives",
  "nameInHomeCountry": "Lionel Andrés Messi Cuccitini",
  "dateOfBirth": "1987-06-24",
  "placeOfBirth": "Rosario",
  "heightCm": 170,
  "preferredFoot": "left",
  "joined": "2023-07-15",
  "contractExpires": "2028-12-31",
  "lastContractExtension": "2025-10-23",
  "outfitter": "adidas",
  "marketValueUpdatedAt": "2026-06-02"
}
```

The dataset is flat: one JSON object per player, with camelCase field names. Dates use `YYYY-MM-DD` wherever a date can be parsed. The displayed market value remains available as text alongside the numeric euro conversion. Multiple citizenships remain a list rather than being merged into a single string.

### Use cases

- **Player research:** Gather public profiles for a name or family name and compare positions, ages, citizenships, and current clubs in one table.
- **Recruitment lists:** Start with a search result set, then filter by age, playing position, and listed market value. Review the source profile before acting on any record.
- **Roster enrichment:** Join a separate roster to the returned `playerId` or `playerUrl` and fill public profile attributes such as date of birth and preferred foot.
- **Market value tracking:** Schedule repeated searches, retain dated snapshots, and compare the displayed value or `marketValueUpdatedAt` field across runs.
- **Contract research:** Collect listed join dates, contract expiration dates, and extension dates when public profiles provide them. Treat a blank field as unknown.
- **Name matching:** Examine several players returned for a shared surname and use stable IDs, club links, nationalities, and birth dates to disambiguate them.

These examples use the data the actor actually returns. It does not provide match statistics, transfer fees, valuations hidden behind an account, or a guarantee that a football database is complete at a given moment.

### How much does it cost to scrape Transfermarkt?

The configured price is **$1.00 per 1,000 returned player records**, or $0.001 for each result. Platform usage is included in that result price. The result limit is therefore a simple way to control the number of billable records. A player profile request can add time, but the event price is based on the number of dataset items returned.

| Returned players | Calculation | Result charge |
| ---: | ---: | ---: |
| 30 | 30 × $0.001 | $0.03 |
| 500 | 500 × $0.001 | $0.50 |
| 1,000 | 1,000 × $0.001 | $1.00 |

These are arithmetic examples, not promises that every query has that many matches. A search that yields 27 players produces 27 dataset items even if `maxItems` is 30. The available result count and speed depend on the source site. A 30-player verified run with profile details completed in about a minute; page access and profile coverage can vary between runs.

For a first run, set a small `maxItems` and inspect the returned names. If the query is too broad, refine the player name and run again. If you already have a specific player in mind, a tighter query avoids paying for many similar-name matches that you will discard later.

### Tips for best results

Start with the most distinctive name fragment available. A short surname may match players with similar spelling, so check `playerName`, `club`, `nationalities`, and `dateOfBirth` before treating a result as a particular person. Search ranking is controlled by the source site and can change; use `playerId` as the stable key in your own tables.

Choose `includeProfileDetails: false` for a quick discovery pass. The actor then reads search pages but does not open each player profile. This mode still gives names, IDs, links, position abbreviations, club information when listed, age, citizenships, displayed market values, portraits, and some agent text. Enable details when you need dates, height, full position, foot, or contract fields.

Set `maxItems` according to the number of records you plan to inspect. The player search page displays ten players per page in the observed layout, so 30 results require multiple search pages. The actor follows the player pagination rather than assuming all matches are present on the first page. It also deduplicates by player ID if the site repeats a player in the result stream.

Use the text market value for display and the numeric euro field for coarse comparisons. The numeric value is calculated from a rounded page label. It should not be interpreted as an exact transaction price or a prediction of a future transfer fee.

If you run the same search repeatedly, store the run date in your destination system. Fields such as club, age, market value, and contract status can change. The current dataset describes what the public pages displayed when the run happened, not an immutable player biography.

### Limits

The actor reads public pages. Access can be challenged or rate limited, and some runs may need residential proxy access after datacenter requests are blocked. The actor retries with a fresh session and escalates its proxy route. Persistent blocks, unavailable pages, or a changed page structure can still interrupt a run.

Search pages use the site's own matching and ordering. The actor does not claim exact name matching, and a broad query can return many related names. It follows the player pagination available to the anonymous visitor. It cannot retrieve matches beyond a source imposed page cap or results the public search does not expose.

Some fields are genuinely sparse. In the verified 30-player sample, every record had a player ID, name, URL, position, citizenship, and birth date. Current club appeared on 60% of records, a numeric euro market value on 40%, and a contract expiration date on 43%. The latter fields depend on each player's public listing and profile; a missing value should not be read as zero or as a free contract.

Dates are parsed from the public profile format. If the source omits a date or presents it in a form the actor cannot interpret, the field is `null`. The actor does not infer nationality from birthplace, club from image badges, or contract dates from other websites.

This actor focuses on player search and individual profiles. It does not scrape clubs as separate dataset records, match logs, injuries, transfer histories, seasonal statistics, or the full market value chart. The public chart route returns valuation history, but that is a different record shape from the player search dataset.

### Use with AI agents (MCP)

Add this actor to any MCP client (Claude, Cursor, VS Code, n8n and others) with one URL:

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

The actor returns one dataset item per Transfermarkt player: club, position, nationalities, age, market value, birth date and contract dates. Set `maxItems` to keep results bounded, and check for an empty dataset when a name has no player matches.

**Prompt 1:** "Find Transfermarkt players named Messi and give me their clubs and market values."

```json
{
  "playerName": "Messi",
  "maxItems": 10,
  "includeProfileDetails": false
}
```

**Prompt 2:** "Get Lionel Messi's Transfermarkt profile with birth date, height, preferred foot and contract expiry."

```json
{
  "playerName": "Lionel Messi",
  "maxItems": 5,
  "includeProfileDetails": true
}
```

**Prompt 3:** "Search Transfermarkt for players called Mbappe and list their nationalities and positions."

```json
{
  "playerName": "Mbappe",
  "maxItems": 15,
  "includeProfileDetails": false
}
```

### FAQ

#### Is it legal to use this data?

The actor collects publicly visible player information. Use it in accordance with the source site's terms and applicable law, including privacy and data protection rules. Review your planned use before redistributing or combining personal information, and do not use the data for misuse of an individual player's identity.

#### Do I need to configure a proxy?

The default input enables proxy access. The actor starts with datacenter access and escalates when the site challenges that route. In the verified research, direct datacenter attempts received an HTTP 202 challenge while residential access returned the public search and profile pages. You normally do not need to change the proxy field for a standard run.

#### How fast is a run?

Runtime depends mainly on the number of search pages, whether profiles are opened, and the site's response time. The verified 30-player run with profile details finished in about a minute. Search-only runs make fewer requests. A larger result limit or repeated access challenges can take longer.

#### Can I schedule or monitor repeated searches?

Yes. Schedule the actor with the same input and inspect each run's status and dataset. Save snapshots in your destination system if you want to compare values over time. The actor returns the current public view and does not maintain historical state for you.

#### Can I export to a spreadsheet?

Yes. Download the default dataset as CSV and open it in a spreadsheet, or consume the dataset JSON through the platform API. Keep `playerId` as a text key when importing so the ID remains stable across subsequent runs.

#### Why are some fields empty?

The source may not list a current club, price, representative, contract date, or outfitter for every player. Search-only mode also skips profile fields. Missing values remain `null`; the actor does not replace them with guesses.

#### Why did my name search return more than one person?

The site's search can include similar names and partial matches. Use `playerId`, date of birth, nationality, and club to select the intended person. A more distinctive query reduces unrelated matches, but the actor does not override the source's search algorithm.

### Integrations

The default dataset is available through the platform API and can be connected to webhooks, scheduled workflows, spreadsheet imports, or other data pipelines. Use `playerId` as the join key and store each run's timestamp when comparing successive exports. CSV suits manual review; JSON preserves the nationality list and null values more clearly for programmatic processing.

### Support

Open an issue on the Issues tab; we reply within 24h and add fields on request.

# Actor input Schema

## `playerName` (type: `string`):

Player name or part of a name to search on Transfermarkt, as free text. Example: Lionel Messi or just Messi for a wider search. Use a distinctive full name for one person; similar names may also be returned.

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

Maximum number of player records to return across all search pages, integer from 0 up. Example: 30. Use a small value for quick tests; set 0 to collect all available matches.

## `includeProfileDetails` (type: `boolean`):

true or false. When true, opens each player profile to add birth date, place of birth, height, foot, agent, full position and contract dates. Example: true. Set false for faster search-only runs.

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

Proxy settings for public page access, in Apify proxy format. Example: {"useApifyProxy": true}. The actor starts with datacenter and escalates to residential when blocked.

## Actor input object example

```json
{
  "playerName": "Lionel Messi",
  "maxItems": 30,
  "includeProfileDetails": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `players` (type: `string`):

All extracted player records in the default dataset.

# 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 = {
    "playerName": "Lionel Messi"
};

// Run the Actor and wait for it to finish
const run = await client.actor("mlg14/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 = { "playerName": "Lionel Messi" }

# Run the Actor and wait for it to finish
run = client.actor("mlg14/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 '{
  "playerName": "Lionel Messi"
}' |
apify call mlg14/transfermarkt-scraper --silent --output-dataset

```

## MCP server setup

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