# How to Get Transfermarkt Player Market Values & Transfer History via REST API in 2026 (No Scrapers)

> Source: <https://dev.to/alik472_/how-to-get-transfermarkt-player-market-values-transfer-history-via-rest-api-in-2026-no-scrapers-46bg>
> Published: 2026-12-04 06:39:20+00:00

**Key takeaway:** IndieAPIs exposes Transfermarkt and FotMob valuation histories and transfers through REST endpoints like GET /market-value?team=42 and GET /transfers?team=42, plus a hosted MCP config, so one request returns a full squad's valuation history instead of looping over 25-30 players.

If you have ever built a scouting dashboard, fantasy football pricing model, or transfer tracker, you have hit the same wall: **Transfermarkt has no official public REST API**.

Most tutorials tell you to spin up a BeautifulSoup or Playwright scraper against Transfermarkt HTML pages. That works for a day — until rate limits, DOM class renames, or Cloudflare challenges break your pipeline right in the middle of a transfer window.

Here is how to pull **structured Transfermarkt & FotMob player market valuation histories**, **club-to-club transfers**, and **player profiles** cleanly via REST JSON (or directly inside Claude/Cursor via MCP) with **zero HTML scraping**.

A common mistake when scraping or querying player APIs is looping over 25–30 players one by one just to value a single club.

With **[Global Football Data API on IndieAPIs](https://indieapis.com/football-api/market-value-transfers-api)**, you can:

`GET /search?search=Arsenal&type=team`
`GET /market-value?team=42` (filterable by `&source=transfermarkt` or `&source=fotmob`)` GET /transfers?team=42`
*(Disclosure: I built IndieAPIs — the Free tier gives 500 calls/month across all 24 REST & MCP endpoints with an atomic hard monthly cap so you never pay surprise overages.)*

``` python
import csv
import os
import requests

API_KEY = os.environ["INDIEAPIS_API_KEY"]
BASE = "https://api.indieapis.com/v1/global-football-data"
HEADERS = {"X-IndieAPIs-Key": API_KEY, "Accept": "application/json"}

# 1. Resolve club name -> exact numeric team ID
team = requests.get(
    f"{BASE}/search",
    params={"search": "Arsenal", "type": "team"},
    headers=HEADERS,
    timeout=15,
).json()["response"][0]

team_id = team["id"]

# 2. Fetch full-squad Transfermarkt EUR valuation history in ONE request
mv = requests.get(
    f"{BASE}/market-value",
    params={"team": team_id, "source": "transfermarkt"},
    headers=HEADERS,
    timeout=15,
).json()["response"]

with open("arsenal_market_values.csv", "w", newline="", encoding="utf-8") as f:
    writer = csv.writer(f)
    writer.writerow(["player_id", "player_name", "date", "value_eur", "source"])
    for item in mv:
        p = item["player"]
        for point in item.get("values", []):
            writer.writerow([p["id"], p["name"], point["date"], point["value"], point["source"]])

print(f"Exported valuation histories for {len(mv)} players.")
{
  "get": "market-value",
  "parameters": { "team": "42" },
  "results": 24,
  "response": [
    {
      "player": { "id": 1460, "name": "Bukayo Saka" },
      "values": [
        { "date": "2025-06-01", "value": 140000000, "currency": "EUR", "source": "transfermarkt" },
        { "date": "2026-03-01", "value": 150000000, "currency": "EUR", "source": "transfermarkt" }
      ]
    }
  ]
}
```

`GET /transfers`)

``` js
const res = await fetch(
  "https://api.indieapis.com/v1/global-football-data/transfers?team=42",
  { headers: { "X-IndieAPIs-Key": process.env.INDIEAPIS_API_KEY } }
);
const data = await res.json();
console.log("Transfers returned:", data.results);
```

Where this gets really interesting for analytics and scouting models is combining valuation trajectories with on-pitch output using the **same numeric player & team IDs** across all 24 endpoints:

`GET /players?team=42&season=2026` — season goals, assists, minutes, key passes, ratings`GET /momentum?fixture=<id>` — expected goals (xG), shotmaps & attack momentum`GET /injuries?team=42&season=2026` — active and historical injury log
You can check all **1,830+ supported league IDs** (including Premier League `39`, Champions League `2`, La Liga `140`, Serie A `135`, Bundesliga `78`, and 155 women's leagues) in the free directory: [indieapis.com/football-api/leagues](https://indieapis.com/football-api/leagues).

If you want to ask Claude Desktop, Claude Code, or Cursor *"Compare Arsenal and Chelsea's squad valuation trend against their recent xG"* without writing boilerplate scripts, paste this hosted Streamable HTTP MCP config:

```
{
  "mcpServers": {
    "football-data": {
      "url": "https://indieapis.com/mcp/global-football-data",
      "headers": {
        "X-IndieAPIs-Key": "ia_live_your_key_here"
      }
    }
  }
}
```

No local server required — and every plan enforces a strict hard monthly quota cap (**500 calls/mo Free** with $0 overages; paid plans from $15/mo for 50k calls).
