Scraper APITransfermarkt
transfermarkt.player
A footballer's profile on Transfermarkt: club, position, contract, market value with its history, and his transfers with their fees.
- Id
transfermarkt.player- Version
- 1
- Billed per
- request — 1 unit for a charged run
- Runs
- within one request
Start it with POST /v1/scrapers/transfermarkt.player/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.
Inputs
The fields of input. A field that is not listed here is refused.
| Field | Type | Description |
|---|---|---|
playerrequired | string | A player's id on Transfermarkt, e.g. 418560, or the address of his profile (https://www.transfermarkt.com/erling-haaland/profil/spieler/418560).Limit: at least 1 characters, at most 300 characters. |
Record fields
Every record of a run has these fields. A value that is not known is null — never an empty string and never 0.
| Field | Type | Notes |
|---|---|---|
player_id | string | Transfermarkt's id of the player, e.g. 418560. |
name | string | The name the profile shows, e.g. Erling Haaland. |
url | string | The profile's page on transfermarkt.com. |
date_of_birth | string (date) or null | The day of birth. |
age | integer or null | Age in years, as Transfermarkt states it. |
place_of_birth | string or null | The town of birth. |
height_m | number or null | Height in metres. |
preferred_foot | string or null | The foot he prefers: left, right or both. |
position | string or null | The main position, e.g. Centre-Forward, Goalkeeper. |
position_group | string or null | The group of the position, e.g. Striker, Midfield, Defender, Goalkeeper. |
current_club | string or null | The club he plays for, by name; Retired or Without Club as Transfermarkt names those. |
current_club_id | string or null | Transfermarkt's id of that club. |
shirt_number | integer or null | His shirt number at that club. |
joined | string (date) or null | The day he joined that club. |
contract_until | string (date) or null | The day his contract there ends. |
outfitter | string or null | The maker of his boots, e.g. Nike. |
market_value_eur | number or null | His current market value in euros, as Transfermarkt estimates it. |
market_value_date | string (date) or null | The day that value was set. |
highest_market_value_eur | number or null | The highest market value he has had, in euros. |
highest_market_value_date | string (date) or null | The day of that highest value. |
portrait | string or null | The address of his portrait. |
market_value_history | array of object | Every market value Transfermarkt set for him, oldest first. |
date (in market_value_history[]) | string (date) | The day Transfermarkt set the value. |
value_eur (in market_value_history[]) | number or null | The market value in euros. |
club (in market_value_history[]) | string or null | The club the player was at, by name. |
age (in market_value_history[]) | integer or null | The player's age then. |
transfers | array of object | His transfers, newest first, as the transfer history lists them. |
date (in transfers[]) | string (date) or null | The day of the transfer. |
season (in transfers[]) | string or null | The season, as the page writes it, e.g. 22/23. |
from_club (in transfers[]) | string or null | The club he left, by name. |
to_club (in transfers[]) | string or null | The club he joined, by name. |
fee_eur (in transfers[]) | number or null | The fee in euros; null for a free transfer, a loan or an undisclosed fee (see fee_text). |
fee_text (in transfers[]) | string or null | The fee as the page writes it, e.g. €60.00M, Free Transfer, loan transfer, -. |
market_value_eur (in transfers[]) | number or null | His market value at the time, in euros. |
kind (in transfers[]) | string or null | Transfermarkt's kind of move, e.g. STANDARD, LOAN, END_OF_LOAN, INTERNAL_TRANSFER (from a club's youth or second team). |
fetched_at | string (date-time) | When Transfermarkt was asked, in UTC. |
Example request
# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/transfermarkt.player/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"player":"418560"}}'
# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start a run, wait for it to end, and get its records
result = client.scrape("transfermarkt.player", {"player": "418560"})
print(result.run.id, result.run.status, result.run.record_count)
# Read its records: pages are fetched as you go
for record in result.records:
print(record)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("transfermarkt.player", { player: "418560" });
console.log(run.id, run.status, run.record_count);
// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
// Start a run, wait for it to end, and get its records
run, records, err := client.Scrape(ctx, "transfermarkt.player", map[string]any{"player": "418560"})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RecordCount)
// Read its records: pages are fetched as you go
for records.Next() {
fmt.Println(string(records.Current()))
}
if err := records.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;
public class Run {
public static void main(String[] args) {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
ScrapeResult result = client.scrape("transfermarkt.player", Map.of("player", "418560"));
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
// Read its records: pages are fetched as you go
for (Map<String, Object> record : result.records()) {
System.out.println(record);
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow run transfermarkt.player --input-json '{"player":"418560"}'Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.
The body on its own:
{
"input": {
"player": "418560"
}
}Example response
The run, once it has ended. A run that has not ended within wait comes back with 202 and the status queued or running.
{
"id": "run_841742f37553189ff9c27ba1",
"scraper_id": "transfermarkt.player",
"scraper_version": 1,
"status": "ok",
"reason": null,
"input": {
"player": "418560"
},
"record_count": 1,
"units": 1,
"units_per_request": 1,
"units_per_record": null,
"units_per_page": null,
"diagnostics": {
"requests": 1,
"bytes": 259214,
"wall_ms": 885,
"facts": {}
},
"created_at": "2026-11-16T22:37:50.170950Z",
"started_at": "2026-11-16T22:37:50.178331Z",
"finished_at": "2026-11-16T22:37:51.066313Z"
}Its records, from GET /v1/runs/{id}/records. The record is a real one: this scraper's own parser read it from a page recorded from the site.
{
"records": [
{
"player_id": "418560",
"name": "Erling Haaland",
"url": "https://www.transfermarkt.com/erling-haaland/profil/spieler/418560",
"date_of_birth": "2000-07-21",
"age": 26,
"place_of_birth": "Leeds",
"height_m": 1.95,
"preferred_foot": "left",
"position": "Centre-Forward",
"position_group": "Striker",
"current_club": "Manchester City",
"current_club_id": "281",
"shirt_number": 9,
"joined": "2022-07-01",
"contract_until": "2034-06-30",
"outfitter": "Nike",
"market_value_eur": 220000000,
"market_value_date": "2026-07-22",
"highest_market_value_eur": 220000000,
"highest_market_value_date": "2026-07-22",
"portrait": "https://img.a.transfermarkt.technology/portrait/big/418560-1788115885.jpg",
"market_value_history": [
{
"date": "2016-12-18",
"value_eur": 200000,
"club": "Bryne FK",
"age": 16
},
{
"date": "2017-12-23",
"value_eur": 300000,
"club": "Molde FK",
"age": 17
}
],
"transfers": [
{
"date": "2022-07-01",
"season": "22/23",
"from_club": "Borussia Dortmund",
"to_club": "Manchester City",
"fee_eur": 60000000,
"fee_text": "€60.00M",
"market_value_eur": 150000000,
"kind": "STANDARD"
},
{
"date": "2020-01-01",
"season": "19/20",
"from_club": "Red Bull Salzburg",
"to_club": "Borussia Dortmund",
"fee_eur": 20000000,
"fee_text": "€20.00M",
"market_value_eur": 45000000,
"kind": "STANDARD"
}
],
"fetched_at": "2026-11-19T18:53:48.104550Z"
}
],
"next_cursor": null
}What was done to the record for this page, and nothing else — the API returns every value whole. A text that was cut ends with … [truncated].
- Shortened:
market_value_history: 28 items, the first 2 shown. - Shortened:
transfers: 5 items, the first 2 shown.
A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the Transfermarkt scrapers are in their own section there.