{"slug": "how-to-get-transfermarkt-player-market-values-transfer-history-via-rest-api-in", "title": "How to Get Transfermarkt Player Market Values & Transfer History via REST API in 2026 (No Scrapers)", "summary": "A developer built IndieAPIs, a REST and MCP API that returns Transfermarkt and FotMob player market-value histories, club-to-club transfers, and player profiles as structured JSON without HTML scraping. The service offers 24 endpoints sharing numeric player and team IDs, a free tier of 500 calls per month with a hard monthly cap, and a hosted MCP config for use in Claude Desktop, Claude Code, and Cursor.", "body_md": "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**.\n\nMost 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.\n\nHere 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**.\n\nA common mistake when scraping or querying player APIs is looping over 25–30 players one by one just to value a single club.\n\nWith **[Global Football Data API on IndieAPIs](https://indieapis.com/football-api/market-value-transfers-api)**, you can:\n\n`GET /search?search=Arsenal&type=team`\n`GET /market-value?team=42` (filterable by `&source=transfermarkt` or `&source=fotmob`)` GET /transfers?team=42`\n*(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.)*\n\n``` python\nimport csv\nimport os\nimport requests\n\nAPI_KEY = os.environ[\"INDIEAPIS_API_KEY\"]\nBASE = \"https://api.indieapis.com/v1/global-football-data\"\nHEADERS = {\"X-IndieAPIs-Key\": API_KEY, \"Accept\": \"application/json\"}\n\n# 1. Resolve club name -> exact numeric team ID\nteam = requests.get(\n    f\"{BASE}/search\",\n    params={\"search\": \"Arsenal\", \"type\": \"team\"},\n    headers=HEADERS,\n    timeout=15,\n).json()[\"response\"][0]\n\nteam_id = team[\"id\"]\n\n# 2. Fetch full-squad Transfermarkt EUR valuation history in ONE request\nmv = requests.get(\n    f\"{BASE}/market-value\",\n    params={\"team\": team_id, \"source\": \"transfermarkt\"},\n    headers=HEADERS,\n    timeout=15,\n).json()[\"response\"]\n\nwith open(\"arsenal_market_values.csv\", \"w\", newline=\"\", encoding=\"utf-8\") as f:\n    writer = csv.writer(f)\n    writer.writerow([\"player_id\", \"player_name\", \"date\", \"value_eur\", \"source\"])\n    for item in mv:\n        p = item[\"player\"]\n        for point in item.get(\"values\", []):\n            writer.writerow([p[\"id\"], p[\"name\"], point[\"date\"], point[\"value\"], point[\"source\"]])\n\nprint(f\"Exported valuation histories for {len(mv)} players.\")\n{\n  \"get\": \"market-value\",\n  \"parameters\": { \"team\": \"42\" },\n  \"results\": 24,\n  \"response\": [\n    {\n      \"player\": { \"id\": 1460, \"name\": \"Bukayo Saka\" },\n      \"values\": [\n        { \"date\": \"2025-06-01\", \"value\": 140000000, \"currency\": \"EUR\", \"source\": \"transfermarkt\" },\n        { \"date\": \"2026-03-01\", \"value\": 150000000, \"currency\": \"EUR\", \"source\": \"transfermarkt\" }\n      ]\n    }\n  ]\n}\n```\n\n`GET /transfers`)\n\n``` js\nconst res = await fetch(\n  \"https://api.indieapis.com/v1/global-football-data/transfers?team=42\",\n  { headers: { \"X-IndieAPIs-Key\": process.env.INDIEAPIS_API_KEY } }\n);\nconst data = await res.json();\nconsole.log(\"Transfers returned:\", data.results);\n```\n\nWhere 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:\n\n`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\nYou 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).\n\nIf 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:\n\n```\n{\n  \"mcpServers\": {\n    \"football-data\": {\n      \"url\": \"https://indieapis.com/mcp/global-football-data\",\n      \"headers\": {\n        \"X-IndieAPIs-Key\": \"ia_live_your_key_here\"\n      }\n    }\n  }\n}\n```\n\nNo 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).", "url": "https://wpnews.pro/news/how-to-get-transfermarkt-player-market-values-transfer-history-via-rest-api-in", "canonical_source": "https://dev.to/alik472_/how-to-get-transfermarkt-player-market-values-transfer-history-via-rest-api-in-2026-no-scrapers-46bg", "published_at": "2026-12-04 06:39:20+00:00", "updated_at": "2026-12-04 06:45:31.065258+00:00", "lang": "en", "topics": ["ai-tools", "agent-protocols", "developer-tools"], "entities": ["IndieAPIs", "Transfermarkt", "FotMob", "Claude Desktop", "Claude Code", "Cursor", "Arsenal", "Chelsea"], "also_reported_by": [], "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.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/how-to-get-transfermarkt-player-market-values-transfer-history-via-rest-api-in", "markdown": "https://wpnews.pro/news/how-to-get-transfermarkt-player-market-values-transfer-history-via-rest-api-in.md", "text": "https://wpnews.pro/news/how-to-get-transfermarkt-player-market-values-transfer-history-via-rest-api-in.txt", "jsonld": "https://wpnews.pro/news/how-to-get-transfermarkt-player-market-values-transfer-history-via-rest-api-in.jsonld"}}