{
  "openapi": "3.0.1",
  "info": {
    "title": "Transfermarkt Scraper — Player Values, Squads & Transfers",
    "description": "Extract football player market valuations (EUR), club squads, contracts, agents, nationalities, league tables, and transfers from Transfermarkt across 50+ world leagues. Clean numeric EUR values, zero API key required, AI & MCP ready.",
    "version": "1.0",
    "x-build-id": "mxtBEyc2gX9kMTD7E"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/logiover~transfermarkt-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-logiover-transfermarkt-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/logiover~transfermarkt-scraper/runs": {
      "post": {
        "operationId": "runs-sync-logiover-transfermarkt-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/logiover~transfermarkt-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-logiover-transfermarkt-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": {
          "mode": {
            "title": "Extraction Mode",
            "enum": [
              "competitions",
              "top_players",
              "clubs",
              "transfers",
              "search"
            ],
            "type": "string",
            "description": "Choose what to extract: League/Competition Squads ('competitions'), Most Valuable Players Leaderboard ('top_players'), Specific Clubs ('clubs'), Club/Player Transfer Histories ('transfers'), or Keyword Search & Direct URLs ('search').",
            "default": "competitions"
          },
          "competitions": {
            "title": "League / Competition Codes",
            "type": "array",
            "description": "Transfermarkt competition IDs to crawl (e.g. GB1 = Premier League, ES1 = LaLiga, IT1 = Serie A, L1 = Bundesliga, FR1 = Ligue 1, TR1 = Süper Lig, NL1 = Eredivisie, PO1 = Liga Portugal, BRA1 = Brasileirão, MLS1 = MLS, SA1 = Saudi Pro League, GB2 = Championship). Pass [\"ALL\"] to crawl all 53 supported world leagues (~24,500+ players).",
            "default": [
              "GB1"
            ],
            "items": {
              "type": "string"
            }
          },
          "clubIds": {
            "title": "Club IDs",
            "type": "array",
            "description": "Specific Transfermarkt club IDs (e.g. '281' Manchester City, '418' Real Madrid, '131' FC Barcelona, '11' Arsenal, '27' Bayern Munich) for 'clubs' or 'transfers' mode.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "playerIds": {
            "title": "Player IDs",
            "type": "array",
            "description": "Specific Transfermarkt player IDs (e.g. '418560' Erling Haaland, '342229' Kylian Mbappé, '937958' Lamine Yamal) to enrich or extract transfer history for.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "queries": {
            "title": "Search Queries",
            "type": "array",
            "description": "Player or club search keywords (e.g. 'Bellingham', 'Real Madrid', 'Galatasaray') used when mode is 'search' or alongside other inputs.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Transfermarkt Start URLs",
            "type": "array",
            "description": "Direct Transfermarkt competition, club, player, or marktwertetop URLs (either plain URL strings or Apify requestList objects { \"url\": \"...\" }).",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "positionGroup": {
            "title": "Position Group Filter",
            "enum": [
              "ALL",
              "Goalkeeper",
              "Defender",
              "Midfielder",
              "Striker"
            ],
            "type": "string",
            "description": "Optionally filter players by primary tactical group.",
            "default": "ALL"
          },
          "nationalityFilter": {
            "title": "Nationality Filter",
            "type": "string",
            "description": "Optional country name or 3-letter FIFA code filter (e.g. 'Brazil' or 'BRA', 'France' or 'FRA', 'England' or 'ENG'). Leave blank for all nationalities.",
            "default": ""
          },
          "minMarketValueEur": {
            "title": "Minimum Market Value (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum current market valuation in EUR (e.g. 10000000 for €10M+). Set 0 to include all players.",
            "default": 0
          },
          "ageMin": {
            "title": "Minimum Age",
            "minimum": 0,
            "maximum": 60,
            "type": "integer",
            "description": "Minimum player age (e.g. 16). Set 0 for no lower bound.",
            "default": 0
          },
          "ageMax": {
            "title": "Maximum Age",
            "minimum": 0,
            "maximum": 60,
            "type": "integer",
            "description": "Maximum player age (e.g. 23 for U23 scouting). Set 0 for no upper bound.",
            "default": 0
          },
          "contractExpiringYear": {
            "title": "Contract Expiring By Year",
            "minimum": 0,
            "maximum": 2045,
            "type": "integer",
            "description": "Optional filter for players whose contracts expire in or before a given year (e.g. 2027 for upcoming free agents). Set 0 to disable.",
            "default": 0
          },
          "sortBy": {
            "title": "Sort Order",
            "enum": [
              "marketValueDesc",
              "clubRankAsc",
              "ageAsc"
            ],
            "type": "string",
            "description": "Ordering applied per league/batch before streaming results.",
            "default": "marketValueDesc"
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of unique deduplicated player or transfer records to extract.",
            "default": 200
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy settings for HTTP requests.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}