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.

Why Full-Squad Market Value Lookup Matters

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, you can:

  1. Resolve any club or player name to its exact numeric ID in one call: GET /search?search=Arsenal&type=team
  2. Pull the entire squad's historical EUR valuation curves in a single request: GET /market-value?team=42 (filterable by &source=transfermarkt or &source=fotmob)
  3. Fetch chronological club transfers, loans, fees, and dates: 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 Example: Export a Club's Full Transfermarkt Market Value History to CSV

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.") 

Sample JSON Response (GET /market-value?team=42)

{ "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" } ] } ] } 

Node.js Example: Club Transfer History (GET /transfers)

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); 

Combine Market Value with Expected Goals (xG) & Performance Stats

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 /market-value?team=42 — Transfermarkt & FotMob EUR valuation curves
  • 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.

Query Player Valuations Directly from Claude or Cursor (Hosted MCP)

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).

Useful Links