cd /news/ai-tools/how-to-get-transfermarkt-player-mark… · home › topics › ai-tools › article
[ARTICLE · art-181628] src=dev.to ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

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

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.

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.

by read3 min views4 publishedDec 4, 2026

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

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

team = requests.get(
    f"{BASE}/search",
    params={"search": "Arsenal", "type": "team"},
    headers=HEADERS,
    timeout=15,
).json()["response"][0]

team_id = team["id"]

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)

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, ratingsGET /momentum?fixture=<id> — expected goals (xG), shotmaps & attack momentumGET /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.

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

── more in #ai-tools 4 stories · sorted by recency
── more on @indieapis 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/how-to-get-transferm…] indexed:0 read:3min 2026-12-04 · —