{
  "openapi": "3.0.1",
  "info": {
    "title": "Transfermarkt Scraper — API, Market Values & Transfers | $1/1k",
    "description": "Scrape Transfermarkt player profiles with market value, value history and transfer history, plus club squads, league club lists, search and latest transfers. Players by id, URL or name; any season. No API key, no browser. Export JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "XB2MeAe4pXwfSRoeE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/glasswing~transfermarkt-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-glasswing-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/glasswing~transfermarkt-scraper/runs": {
      "post": {
        "operationId": "runs-sync-glasswing-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/glasswing~transfermarkt-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-glasswing-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": {
          "startUrls": {
            "title": "Transfermarkt URLs",
            "uniqueItems": true,
            "type": "array",
            "description": "Any Transfermarkt page, one per line: player profiles (/profil/spieler/...), club pages or squads (/verein/...), competitions (/wettbewerb/...), search results or the latest-transfers list. Links from every country site (.de, .co.uk, .us, .es, .it, .fr ...) work; they are read from transfermarkt.com in English.",
            "default": [
              "https://www.transfermarkt.com/erling-haaland/profil/spieler/418560",
              "https://www.transfermarkt.com/kylian-mbappe/profil/spieler/342229",
              "https://www.transfermarkt.com/jude-bellingham/profil/spieler/581678",
              "https://www.transfermarkt.com/mohamed-salah/profil/spieler/148455",
              "https://www.transfermarkt.com/jamal-musiala/profil/spieler/580195"
            ],
            "items": {
              "type": "string"
            }
          },
          "players": {
            "title": "Players (ids, URLs or names)",
            "type": "array",
            "description": "Transfermarkt player ids (418560), profile URLs, or player names (\"Lamine Yamal\"). A name is looked up with Transfermarkt's search and the best match is scraped. Each player is one row with the full profile.",
            "items": {
              "type": "string"
            }
          },
          "clubs": {
            "title": "Clubs (ids or URLs)",
            "type": "array",
            "description": "Transfermarkt club ids (281 = Manchester City) or club URLs. Each club gives one club row (squad size, average age, foreigners, stadium, total market value) plus one row per squad player.",
            "items": {
              "type": "string"
            }
          },
          "competitions": {
            "title": "Leagues / competitions (codes or URLs)",
            "type": "array",
            "description": "Competition codes or URLs: GB1 Premier League, ES1 LaLiga, L1 Bundesliga, IT1 Serie A, FR1 Ligue 1, NL1 Eredivisie, PO1 Liga Portugal, MLS1 MLS, CL Champions League ... Gives one row per club; switch on \"Include club squads\" for every player too.",
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Search",
            "type": "string",
            "description": "Search Transfermarkt by name. Returns the matching players (10 per results page, paged up to Maximum results) and, on the first page, the matching clubs."
          },
          "latestTransfers": {
            "title": "Latest transfers",
            "type": "boolean",
            "description": "Also scrape Transfermarkt's latest-transfers list (newest first, up to 250 rows): player, clubs, leagues and fee.",
            "default": false
          },
          "season": {
            "title": "Season (start year)",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Season for club squads and competitions, as its start year: 2025 = 2025/26. Leave empty for the current season. Player profiles always show today's data."
          },
          "includeMarketValueHistory": {
            "title": "Market value history",
            "type": "boolean",
            "description": "Add each full player profile's dated market-value history (marketValueHistory). Needs no extra request.",
            "default": true
          },
          "includeTransferHistory": {
            "title": "Transfer history",
            "type": "boolean",
            "description": "Add each full player profile's transfer history (season, date, from/to club, fee). One extra request per player.",
            "default": true
          },
          "includePlayerProfiles": {
            "title": "Full profiles for squad and search players",
            "type": "boolean",
            "description": "Turn every player found in a club squad or a search into a full profile row (market value history, transfer history, contract, agency, national team) instead of the shorter squad/search row. About 3 requests per player.",
            "default": false
          },
          "includeSquads": {
            "title": "Include club squads (competitions)",
            "type": "boolean",
            "description": "For competitions: scrape every club's squad page too (club row with stadium etc. plus one row per player) instead of only the league's club table.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many rows have been saved. Each saved row with status `ok` is one billable result. Keep it small for test runs.",
            "default": 20
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Leave off (recommended). The Actor reads Transfermarkt from the run's own IP, which Transfermarkt serves reliably. Apify Proxy's shared datacenter IPs are often answered with a firewall challenge, which only slows the run down with retries. Residential proxies are not needed.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}