# Transfermarkt \[Just 💰$0.5] — football market values (`blackfalcondata/transfermarkt-market-value-scraper`) Actor

💰 $0.5 per 1,000 records. Scrape transfermarkt.com — player market values with full history · transfer records with fees · club squads with staff plus competitions with standings. Incremental mode tracks new and changed records across scheduled runs.

- **URL**: https://apify.com/blackfalcondata/transfermarkt-market-value-scraper.md
- **Developed by:** [Black Falcon Data](https://apify.com/blackfalcondata) (community)
- **Categories:** Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

### What does Transfermarkt Market Value & Transfer Scraper do?

Transfermarkt Market Value & Transfer Scraper extracts football data from [transfermarkt.com](https://transfermarkt.com): player market values with the complete dated value history, transfer records with fees, contract and agent details, full club squads with coaching staff, and competitions with club tables and league standings. Point it at player, club or competition pages — or the global market-value ranking — and export structured JSON, CSV or Excel.

**New to Apify?** [Sign up free](https://console.apify.com/sign-up?fpr=1h3gvi&fp_sid=ctaplain) and use the included $5 monthly platform credit to test this actor.

### Key features

<!-- KEY_FEATURES:START -->
- **📈 Full market-value history, not just today's value** — every player ships the entire market-value curve (`date`, `valueEUR`, `club`, `age`) plus current value, all-time peak and peak date.
- **🧩 Players, clubs and competitions in one actor** — player profiles, full club squads with staff, and competitions with club tables and standings — mix entity types freely in one run.
- **🔁 Complete transfer history with fees** — from/to club, date, season, fee and value-at-transfer per move, plus career fee totals and a latest-transfers feed per league.
- **📊 Per-match career performance log** — opt-in per-match career log — goals, assists, minutes, cards per game — plus career totals.
- **♻️ Market-value change tracking** — incremental runs flag NEW / UPDATED / UNCHANGED / EXPIRED — a scheduled market-value change feed with notifications only for what moved.
- **🔔 Notifications** — Telegram, Slack, Discord, WhatsApp Cloud API, and generic webhook out of the box. Pair with incremental for daily new-listing alerts without pipeline glue.
- **🎯 Batch searches** — pass `["term1", "term2"]` for query, location, or city to batch multiple searches in one run — shared dedup state, single dataset, one Actor-Start charge instead of N.
- **📦 Compact mode** — AI-agent and MCP-friendly payloads with core fields only.
- **🔌 MCP connectors** — export your results into Notion via Apify's MCP connectors — a clean run-summary page, no glue code. Opt-in via the App connector field; deterministic field-mapping, no AI. Built on Apify's connector framework, so more destinations open up as their catalog grows.
<!-- KEY_FEATURES:END -->

### What data can you extract from transfermarkt.com?

Each result includes Core entity fields (`entityType`, `id`, `slug`, `name`, `url`, `scrapedAt`, `searchQuery`, and `changeType`, and more) and detail fields when enrichment is enabled (`detailedPosition`). In standard mode, all fields are always present — unavailable data points are returned as `null`, never omitted. In compact mode, only core fields are returned.

### Input

The main inputs are a result limit. Additional filters and options are available in the input schema.

Key parameters:

- **`startUrls`** — Paste Transfermarkt player, club, or competition page URLs — mix entity types freely; each becomes one record.
- **`searchQuery`** — Search Transfermarkt by player name (e.g. "Haaland"). JSON array for several names.
- **`playerIds`** — Numeric player IDs — the number at the end of a profile URL (418560 = Haaland).
- **`clubIds`** — Numeric club IDs (281 = Manchester City). Each club is scraped with its squad.
- **`competitionCodes`** — Competition codes: GB1 (Premier League), ES1 (LaLiga), IT1 (Serie A), L1 (Bundesliga), CL (Champions League).
- **`topMarketValue`** — Scrape the N most valuable players in the world from the market-value ranking (0 = off). (default: `0`)
- **`includeMarketValueHistory`** — Include every dated market-value data point for each player (the complete value curve, not just the current value). (default: `true`)
- **`includeTransfers`** — Include each player's full transfer history with fees and the market value at the time of each move. (default: `true`)
- **`includePerformanceLog`** — Include the player's per-match career log (goals, assists, minutes, cards per game) plus career totals. Adds extra data per player. (default: `false`)
- **`includeUpcomingMatches`** — Include the player's upcoming club and national-team fixtures. (default: `false`)
- **`includeSquad`** — Include the full squad list for each club (players with shirt number, position, age, nationality and market value). (default: `true`)
- **`includeStaff`** — Include the club's coaching and support staff with roles and contract dates. (default: `true`)
- ...and 24 more parameters

### Input examples

**Basic search** — Fetch entities from the provided start URL.

→ Full payload per result — all standard fields populated where the source provides them.

```json
{
  "startUrls": [
    "https://www.transfermarkt.com/erling-haaland/profil/spieler/418560"
  ],
  "maxResults": 50
}
````

**Incremental tracking** — Only emit entities that changed since the previous run with this `stateKey`.

→ First run builds the baseline state. Subsequent runs emit only records that are new or whose tracked content changed. Set `emitUnchanged: true` to include unchanged records as well.

```json
{
  "startUrls": [
    "https://www.transfermarkt.com/erling-haaland/profil/spieler/418560"
  ],
  "maxResults": 200,
  "incrementalMode": true,
  "stateKey": "transfermarkt-tracker"
}
```

**Compact output for AI agents** — Return only core fields for AI-agent and MCP workflows.

→ Small payload with the most important fields — ideal for piping into LLMs without token overhead.

```json
{
  "startUrls": [
    "https://www.transfermarkt.com/erling-haaland/profil/spieler/418560"
  ],
  "maxResults": 50,
  "compact": true
}
```

### Output

Each run produces a dataset of structured entity records. Results can be downloaded as JSON, CSV, or Excel from the Dataset tab in Apify Console.

### Example entity record

```json
{
  "entityType": "player",
  "id": "342229",
  "slug": "kylian-mbappe",
  "name": "Kylian Mbappé",
  "url": "https://www.transfermarkt.com/kylian-mbappe/profil/spieler/342229",
  "source": "transfermarkt.com",
  "scrapedAt": "2026-07-17T11:34:34.014Z",
  "nativeName": "Kylian Mbappé Lottin",
  "dateOfBirth": "1998-12-20",
  "age": 27,
  "placeOfBirth": "Paris",
  "birthCountry": "France",
  "citizenships": [
    "France",
    "Cameroon"
  ],
  "height": 180,
  "position": "Attack",
  "detailedPosition": "Centre-Forward",
  "foot": "right",
  "shirtNumber": "10",
  "currentClubId": "418",
  "currentClubName": "Real Madrid",
  "joinedDate": "2024-07-01",
  "contractExpiry": "2029-06-30",
  "agent": "Relatives",
  "outfitter": "Nike",
  "currentMarketValue": 180000000,
  "currentMarketValueText": "€180.00m Last update: 05/06/2026",
  "marketValueHistory": [
    {
      "date": "2015-12-02",
      "valueEUR": 50000,
      "valueText": "€50k",
      "club": "AS Monaco U19",
      "clubId": "9669",
      "age": 16
    },
    {
      "date": "2016-02-04",
      "valueEUR": 250000,
      "valueText": "€250k",
      "club": "AS Monaco",
      "clubId": "162",
      "age": 17
    },
    {
      "date": "2016-04-09",
      "valueEUR": 1000000,
      "valueText": "€1.00m",
      "club": "AS Monaco",
      "age": 17
    },
    {
      "date": "2016-07-13",
      "valueEUR": 1500000,
      "valueText": "€1.50m",
      "club": "AS Monaco",
      "age": 17
    },
    {
      "date": "2016-11-01",
      "valueEUR": 4000000,
      "valueText": "€4.00m",
      "club": "AS Monaco",
      "age": 17
    },
    "... 26 more items"
  ],
  "peakMarketValue": 200000000,
  "peakMarketValueDate": "2018-12-17",
  "transfers": [
    {
      "date": "2024-07-01",
      "season": "24/25",
      "fromClub": "PSG",
      "fromClubId": "583",
      "toClub": "Real Madrid",
      "toClubId": "418",
      "feeText": "free transfer",
      "feeEUR": 0,
      "marketValueText": "€180.00m",
      "marketValueEUR": 180000000,
      "upcoming": false
    },
    {
      "date": "2018-07-01",
      "season": "18/19",
      "fromClub": "Monaco",
      "fromClubId": "162",
      "toClub": "PSG",
      "toClubId": "583",
      "feeText": "€180.00m",
      "feeEUR": 180000000,
      "marketValueText": "€120.00m",
      "marketValueEUR": 120000000,
      "upcoming": false
    },
    {
      "date": "2018-06-30",
      "season": "17/18",
      "fromClub": "PSG",
      "fromClubId": "583",
      "toClub": "Monaco",
      "toClubId": "162",
      "feeText": "End of loan",
      "marketValueText": "€120.00m",
      "marketValueEUR": 120000000,
      "upcoming": false
    },
    {
      "date": "2017-08-31",
      "season": "17/18",
      "fromClub": "Monaco",
      "fromClubId": "162",
      "toClub": "PSG",
      "toClubId": "583",
      "feeText": "loan transfer",
      "marketValueText": "€35.00m",
      "marketValueEUR": 35000000,
      "upcoming": false
    },
    {
      "date": "2016-01-01",
      "season": "15/16",
      "fromClub": "Monaco U19",
      "fromClubId": "9669",
      "toClub": "Monaco",
      "toClubId": "162",
      "feeText": "-",
      "marketValueText": "€50k",
      "marketValueEUR": 50000,
      "upcoming": false
    },
    "... 3 more items"
  ],
  "totalTransferFees": 180000000
}
```

### Incremental fields

When incremental mode is on, each record also carries:

- `changeType` — one of `NEW`, `UPDATED`, `UNCHANGED`, `REAPPEARED`, `EXPIRED`. Default output covers `NEW` / `UPDATED` / `REAPPEARED`; set `emitUnchanged: true` or `emitExpired: true` to opt into the others.

### How to scrape transfermarkt.com

1. Go to [Transfermarkt Market Value & Transfer Scraper](https://apify.com/blackfalcondata/transfermarkt-market-value-scraper?fpr=1h3gvi) in Apify Console.
2. Configure the input.
3. Set `maxResults` to control how many results you need.
4. Click **Start** and wait for the run to finish.
5. Export the dataset as JSON, CSV, or Excel.

### Use cases

- Extract entity data from transfermarkt.com for market research and competitive analysis.
- Monitor new and changed entities on scheduled runs without processing the full dataset every time.
- Feed structured data into AI agents, MCP tools, and automated pipelines using compact mode.
- Export clean, structured data to dashboards, spreadsheets, or data warehouses.

### How much does it cost to scrape transfermarkt.com?

Transfermarkt Market Value & Transfer Scraper uses [pay-per-event](https://docs.apify.com/platform/actors/paid-actors/pay-per-event) pricing. You pay a small fee when the run starts and then for each result that is actually produced.

- **Run start:** $0.00005 per run
- **Per result:** $0.0005 per entity record

Example costs:

- 10 results: **$0.00505**
- 25 results: **$0.013**
- 100 results: **$0.05**
- 200 results: **$0.1**
- 500 results: **$0.25**

#### Example: recurring monitoring savings

These examples compare full re-scrapes with incremental runs at different churn rates. Churn is the share of entities that are new or whose tracked content changed since the previous run. Actual churn depends on your query breadth, source activity, and polling frequency — the scenarios below are examples, not predictions.

Example setup: 200 results per run, daily polling (30 runs/month). Event-pricing examples scale linearly with result count.

| Churn rate | Full re-scrape run cost | Incremental run cost | Savings vs full re-scrape | Monthly cost after baseline |
|---|---:|---:|---:|---:|
| 5% — stable niche query | $0.10 | $0.00505 | $0.10 (95%) | $0.15 |
| 15% — moderate broad query | $0.10 | $0.02 | $0.09 (85%) | $0.45 |
| 30% — high-volume aggregator | $0.10 | $0.03 | $0.07 (70%) | $0.90 |

Full re-scrape monthly cost at daily polling: $3.00. First month with incremental costs $0.25 / $0.54 / $0.97 for the 5% / 15% / 30% scenarios because the first run builds baseline state at full cost before incremental savings apply.

Platform usage is included in the per-result fee shown above.

### FAQ

#### How many results can I get from transfermarkt.com?

The number of results depends on the search query and available entities on transfermarkt.com. Use the `maxResults` parameter to control how many results are returned per run.

#### Does Transfermarkt Market Value & Transfer Scraper support recurring monitoring?

Yes. Enable incremental mode to only receive new or changed entities on subsequent runs. This is ideal for scheduled monitoring where you want to track changes over time without re-processing the full dataset.

#### Can I integrate Transfermarkt Market Value & Transfer Scraper with other apps?

Yes. Transfermarkt Market Value & Transfer Scraper works with Apify's [integrations](https://apify.com/integrations?fpr=1h3gvi) to connect with tools like Zapier, Make, Google Sheets, Slack, and more. You can also use webhooks to trigger actions when a run completes.

#### Can I use Transfermarkt Market Value & Transfer Scraper with the Apify API?

Yes. You can start runs, manage inputs, and retrieve results programmatically through the [Apify API](https://docs.apify.com/api/v2). Client libraries are available for JavaScript, Python, and other languages.

#### Can I use Transfermarkt Market Value & Transfer Scraper through an MCP Server?

Yes. Apify provides an [MCP Server](https://apify.com/apify/actors-mcp-server?fpr=1h3gvi) that lets AI assistants and agents call this actor directly. Use compact mode and `excludeEmptyFields` to keep payloads manageable for LLM context windows.

#### Is it legal to scrape transfermarkt.com?

This actor extracts publicly available data from transfermarkt.com. Web scraping of public information is generally considered legal, but you should always review the target site's terms of service and ensure your use case complies with applicable laws and regulations, including GDPR where relevant.

#### Your feedback

If you have questions, need a feature, or found a bug, please [open an issue](https://apify.com/blackfalcondata/transfermarkt-market-value-scraper/issues?fpr=1h3gvi) on the actor's page in Apify Console. Your feedback helps us improve.

### You might also like

- [AutoScout24 Scraper — European Car Listings](https://apify.com/blackfalcondata/autoscout24-scraper?fpr=1h3gvi) — Scrape European car listings with full dealer, pricing and specification data.
- [Google Maps Scraper — Places, Contacts & Lead Score](https://apify.com/blackfalcondata/google-maps-scraper?fpr=1h3gvi) — Extract places, phones, websites, ratings, reviews and location data from Google Maps.
- [Reddit Scraper — Posts, Comments & Subreddits](https://apify.com/blackfalcondata/reddit-scraper?fpr=1h3gvi) — Scrape Reddit posts, comments and subreddit data for research and sentiment analysis.

### Getting started with Apify

New to Apify? [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=1h3gvi\&fp_sid=ctaplain) — no credit card required.

1. Sign up — $5 platform credit included
2. Open this actor and configure your input
3. Click **Start** — export results as JSON, CSV, or Excel

Need more later? [See Apify pricing](https://apify.com/pricing?fpr=1h3gvi).

# Actor input Schema

## `startUrls` (type: `array`):

Paste Transfermarkt player, club, or competition page URLs — mix entity types freely; each becomes one record.

## `searchQuery` (type: `string`):

Search Transfermarkt by player name (e.g. "Haaland"). JSON array for several names.

## `playerIds` (type: `array`):

Numeric player IDs — the number at the end of a profile URL (418560 = Haaland).

## `clubIds` (type: `array`):

Numeric club IDs (281 = Manchester City). Each club is scraped with its squad.

## `competitionCodes` (type: `array`):

Competition codes: GB1 (Premier League), ES1 (LaLiga), IT1 (Serie A), L1 (Bundesliga), CL (Champions League).

## `topMarketValue` (type: `integer`):

Scrape the N most valuable players in the world from the market-value ranking (0 = off).

## `includeMarketValueHistory` (type: `boolean`):

Include every dated market-value data point for each player (the complete value curve, not just the current value).

## `includeTransfers` (type: `boolean`):

Include each player's full transfer history with fees and the market value at the time of each move.

## `includePerformanceLog` (type: `boolean`):

Include the player's per-match career log (goals, assists, minutes, cards per game) plus career totals. Adds extra data per player.

## `includeUpcomingMatches` (type: `boolean`):

Include the player's upcoming club and national-team fixtures.

## `includeSquad` (type: `boolean`):

Include the full squad list for each club (players with shirt number, position, age, nationality and market value).

## `includeStaff` (type: `boolean`):

Include the club's coaching and support staff with roles and contract dates.

## `includeFixtures` (type: `boolean`):

Include the club's recent results and upcoming fixtures with scores.

## `includeRumors` (type: `boolean`):

Include the club's transfer-rumor list with probability and the linked player/club.

## `expandSquadToPlayers` (type: `boolean`):

Also scrape every squad member of each club as a full player record. Multiplies record count.

## `includeClubs` (type: `boolean`):

Include the club table for each competition (squad size, average age, foreigners, total market value per club).

## `includeStandings` (type: `boolean`):

Include the current league table (rank, played, won/drawn/lost, goals, points).

## `maxResults` (type: `integer`):

Maximum number of records to return (0 = unlimited). Applies to search / ranking / squad-expansion volume.

## `compact` (type: `boolean`):

Return only core identity + market-value fields. Ideal for AI-agent / MCP workflows.

## `excludeEmptyFields` (type: `boolean`):

Drop null, empty-string and empty-array fields from each record. Smaller payloads for agents and dashboards.

## `incrementalMode` (type: `boolean`):

Compare against the previous run and flag records NEW, UPDATED, UNCHANGED or EXPIRED — a scheduled market-value change feed.

## `stateKey` (type: `string`):

Optional stable identifier for the tracked set. Leave empty to derive automatically from your selection.

## `emitUnchanged` (type: `boolean`):

When incremental mode is on, also return records whose values did not change since the last run.

## `emitExpired` (type: `boolean`):

When incremental mode is on, also return records that disappeared from your tracked selection since the last run (flagged EXPIRED).

## `telegramToken` (type: `string`):

Telegram bot token (from @BotFather). Required for Telegram notifications.

## `telegramChatId` (type: `string`):

Telegram chat or channel ID (e.g. "-100123456789"). Required when telegramToken is set.

## `discordWebhookUrl` (type: `string`):

Discord incoming webhook URL. Server Settings → Integrations → Webhooks → New Webhook.

## `slackWebhookUrl` (type: `string`):

Slack incoming webhook URL. api.slack.com/messaging/webhooks.

## `whatsappAccessToken` (type: `string`):

WhatsApp Cloud API permanent access token (System User token from Meta Business). Recipient must have messaged the business number within the last 24h.

## `whatsappPhoneNumberId` (type: `string`):

Your WhatsApp Business phone-number ID (numeric, from Meta dashboard). Required when whatsappAccessToken is set.

## `whatsappTo` (type: `string`):

Recipient phone in E.164 format without + (e.g. "436641234567"). Recipient must have messaged your business number within last 24h.

## `webhookUrl` (type: `string`):

Receives a JSON POST with {metadata, items} after each run. Universal escape hatch for n8n / Make / Zapier / custom backends.

## `webhookHeaders` (type: `object`):

Optional JSON object of custom headers (e.g. {"Authorization":"Bearer ..."}).

## `notificationLimit` (type: `integer`):

Maximum number of records included in each notification message (1–20).

## `notifyOnlyChanges` (type: `boolean`):

When incremental mode is on, only send notifications for NEW and UPDATED records.

## `appConnector` (type: `string`):

Optional. Pick a connected app under Settings → API & Integrations to receive your results. Best-effort across MCP connectors as Apify expands its catalog.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.transfermarkt.com/erling-haaland/profil/spieler/418560"
  ],
  "topMarketValue": 0,
  "includeMarketValueHistory": true,
  "includeTransfers": true,
  "includePerformanceLog": false,
  "includeUpcomingMatches": false,
  "includeSquad": true,
  "includeStaff": true,
  "includeFixtures": false,
  "includeRumors": false,
  "expandSquadToPlayers": false,
  "includeClubs": true,
  "includeStandings": true,
  "maxResults": 50,
  "compact": false,
  "excludeEmptyFields": false,
  "incrementalMode": false,
  "emitUnchanged": false,
  "emitExpired": false,
  "notificationLimit": 5,
  "notifyOnlyChanges": false
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        "https://www.transfermarkt.com/erling-haaland/profil/spieler/418560"
    ],
    "excludeEmptyFields": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("blackfalcondata/transfermarkt-market-value-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "startUrls": ["https://www.transfermarkt.com/erling-haaland/profil/spieler/418560"],
    "excludeEmptyFields": False,
}

# Run the Actor and wait for it to finish
run = client.actor("blackfalcondata/transfermarkt-market-value-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    "https://www.transfermarkt.com/erling-haaland/profil/spieler/418560"
  ],
  "excludeEmptyFields": false
}' |
apify call blackfalcondata/transfermarkt-market-value-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=blackfalcondata/transfermarkt-market-value-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Transfermarkt [Just 💰$0.5] — football market values",
        "description": "💰 $0.5 per 1,000 records. Scrape transfermarkt.com — player market values with full history · transfer records with fees · club squads with staff plus competitions with standings. Incremental mode tracks new and changed records across scheduled runs.",
        "version": "0.1",
        "x-build-id": "PlvurLjahWQgO5zgu"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/blackfalcondata~transfermarkt-market-value-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-blackfalcondata-transfermarkt-market-value-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/blackfalcondata~transfermarkt-market-value-scraper/runs": {
            "post": {
                "operationId": "runs-sync-blackfalcondata-transfermarkt-market-value-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/blackfalcondata~transfermarkt-market-value-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-blackfalcondata-transfermarkt-market-value-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "startUrls": {
                        "title": "🔗 Transfermarkt URLs",
                        "type": "array",
                        "description": "Paste Transfermarkt player, club, or competition page URLs — mix entity types freely; each becomes one record.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "searchQuery": {
                        "title": "🔍 Player search",
                        "type": "string",
                        "description": "Search Transfermarkt by player name (e.g. \"Haaland\"). JSON array for several names."
                    },
                    "playerIds": {
                        "title": "🧑 Player IDs",
                        "type": "array",
                        "description": "Numeric player IDs — the number at the end of a profile URL (418560 = Haaland).",
                        "items": {
                            "type": "string"
                        }
                    },
                    "clubIds": {
                        "title": "🏟️ Club IDs",
                        "type": "array",
                        "description": "Numeric club IDs (281 = Manchester City). Each club is scraped with its squad.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "competitionCodes": {
                        "title": "🏆 Competition codes",
                        "type": "array",
                        "description": "Competition codes: GB1 (Premier League), ES1 (LaLiga), IT1 (Serie A), L1 (Bundesliga), CL (Champions League).",
                        "items": {
                            "type": "string"
                        }
                    },
                    "topMarketValue": {
                        "title": "💎 Top market-value players",
                        "minimum": 0,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Scrape the N most valuable players in the world from the market-value ranking (0 = off).",
                        "default": 0
                    },
                    "includeMarketValueHistory": {
                        "title": "📈 Full market-value history",
                        "type": "boolean",
                        "description": "Include every dated market-value data point for each player (the complete value curve, not just the current value).",
                        "default": true
                    },
                    "includeTransfers": {
                        "title": "🔁 Transfer history",
                        "type": "boolean",
                        "description": "Include each player's full transfer history with fees and the market value at the time of each move.",
                        "default": true
                    },
                    "includePerformanceLog": {
                        "title": "📊 Per-match performance log",
                        "type": "boolean",
                        "description": "Include the player's per-match career log (goals, assists, minutes, cards per game) plus career totals. Adds extra data per player.",
                        "default": false
                    },
                    "includeUpcomingMatches": {
                        "title": "📅 Upcoming matches",
                        "type": "boolean",
                        "description": "Include the player's upcoming club and national-team fixtures.",
                        "default": false
                    },
                    "includeSquad": {
                        "title": "👥 Club squad",
                        "type": "boolean",
                        "description": "Include the full squad list for each club (players with shirt number, position, age, nationality and market value).",
                        "default": true
                    },
                    "includeStaff": {
                        "title": "🧑‍💼 Coaching staff",
                        "type": "boolean",
                        "description": "Include the club's coaching and support staff with roles and contract dates.",
                        "default": true
                    },
                    "includeFixtures": {
                        "title": "📆 Fixtures & results",
                        "type": "boolean",
                        "description": "Include the club's recent results and upcoming fixtures with scores.",
                        "default": false
                    },
                    "includeRumors": {
                        "title": "🗞️ Transfer rumors",
                        "type": "boolean",
                        "description": "Include the club's transfer-rumor list with probability and the linked player/club.",
                        "default": false
                    },
                    "expandSquadToPlayers": {
                        "title": "🔬 Expand squad to full player records",
                        "type": "boolean",
                        "description": "Also scrape every squad member of each club as a full player record. Multiplies record count.",
                        "default": false
                    },
                    "includeClubs": {
                        "title": "🏛️ Competition clubs",
                        "type": "boolean",
                        "description": "Include the club table for each competition (squad size, average age, foreigners, total market value per club).",
                        "default": true
                    },
                    "includeStandings": {
                        "title": "📋 League standings",
                        "type": "boolean",
                        "description": "Include the current league table (rank, played, won/drawn/lost, goals, points).",
                        "default": true
                    },
                    "maxResults": {
                        "title": "💯 Max records",
                        "minimum": 0,
                        "maximum": 5000,
                        "type": "integer",
                        "description": "Maximum number of records to return (0 = unlimited). Applies to search / ranking / squad-expansion volume.",
                        "default": 50
                    },
                    "compact": {
                        "title": "📦 Compact output",
                        "type": "boolean",
                        "description": "Return only core identity + market-value fields. Ideal for AI-agent / MCP workflows.",
                        "default": false
                    },
                    "excludeEmptyFields": {
                        "title": "🧹 Exclude empty fields",
                        "type": "boolean",
                        "description": "Drop null, empty-string and empty-array fields from each record. Smaller payloads for agents and dashboards.",
                        "default": false
                    },
                    "incrementalMode": {
                        "title": "♻️ Incremental mode (value-change tracking)",
                        "type": "boolean",
                        "description": "Compare against the previous run and flag records NEW, UPDATED, UNCHANGED or EXPIRED — a scheduled market-value change feed.",
                        "default": false
                    },
                    "stateKey": {
                        "title": "🔑 State key",
                        "type": "string",
                        "description": "Optional stable identifier for the tracked set. Leave empty to derive automatically from your selection."
                    },
                    "emitUnchanged": {
                        "title": "➡️ Emit unchanged records",
                        "type": "boolean",
                        "description": "When incremental mode is on, also return records whose values did not change since the last run.",
                        "default": false
                    },
                    "emitExpired": {
                        "title": "⌛ Emit expired records",
                        "type": "boolean",
                        "description": "When incremental mode is on, also return records that disappeared from your tracked selection since the last run (flagged EXPIRED).",
                        "default": false
                    },
                    "telegramToken": {
                        "title": "🔑 Telegram Bot Token",
                        "type": "string",
                        "description": "Telegram bot token (from @BotFather). Required for Telegram notifications."
                    },
                    "telegramChatId": {
                        "title": "💬 Telegram Chat ID",
                        "type": "string",
                        "description": "Telegram chat or channel ID (e.g. \"-100123456789\"). Required when telegramToken is set."
                    },
                    "discordWebhookUrl": {
                        "title": "🎮 Discord Webhook URL",
                        "type": "string",
                        "description": "Discord incoming webhook URL. Server Settings → Integrations → Webhooks → New Webhook."
                    },
                    "slackWebhookUrl": {
                        "title": "💼 Slack Webhook URL",
                        "type": "string",
                        "description": "Slack incoming webhook URL. api.slack.com/messaging/webhooks."
                    },
                    "whatsappAccessToken": {
                        "title": "📱 WhatsApp Access Token",
                        "type": "string",
                        "description": "WhatsApp Cloud API permanent access token (System User token from Meta Business). Recipient must have messaged the business number within the last 24h."
                    },
                    "whatsappPhoneNumberId": {
                        "title": "📞 WhatsApp Phone Number ID",
                        "type": "string",
                        "description": "Your WhatsApp Business phone-number ID (numeric, from Meta dashboard). Required when whatsappAccessToken is set."
                    },
                    "whatsappTo": {
                        "title": "📲 WhatsApp Recipient",
                        "type": "string",
                        "description": "Recipient phone in E.164 format without + (e.g. \"436641234567\"). Recipient must have messaged your business number within last 24h."
                    },
                    "webhookUrl": {
                        "title": "🪝 Generic Webhook URL",
                        "type": "string",
                        "description": "Receives a JSON POST with {metadata, items} after each run. Universal escape hatch for n8n / Make / Zapier / custom backends."
                    },
                    "webhookHeaders": {
                        "title": "📋 Webhook Headers",
                        "type": "object",
                        "description": "Optional JSON object of custom headers (e.g. {\"Authorization\":\"Bearer ...\"})."
                    },
                    "notificationLimit": {
                        "title": "📊 Max records per notification",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "Maximum number of records included in each notification message (1–20).",
                        "default": 5
                    },
                    "notifyOnlyChanges": {
                        "title": "🔄 Notify only new/updated",
                        "type": "boolean",
                        "description": "When incremental mode is on, only send notifications for NEW and UPDATED records.",
                        "default": false
                    },
                    "appConnector": {
                        "title": "Send results to a connected app",
                        "type": "string",
                        "description": "Optional. Pick a connected app under Settings → API & Integrations to receive your results. Best-effort across MCP connectors as Apify expands its catalog."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
