{
  "openapi": "3.0.1",
  "info": {
    "title": "Transfermarkt Scraper - Players, Clubs & Market Values",
    "description": "[💰 $1.0 / 1K] Scrape football/soccer data from Transfermarkt: player profiles with market value history, club squads, competition tables, and transfer records. Paste any Transfermarkt URL — the scraper detects the page type automatically. Up to 20+ languages supported.",
    "version": "1.0",
    "x-build-id": "k7JzSnE4gZdqusp1N"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/solidcode~transfermarkt-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-solidcode-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/solidcode~transfermarkt-scraper/runs": {
      "post": {
        "operationId": "runs-sync-solidcode-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/solidcode~transfermarkt-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-solidcode-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",
            "type": "array",
            "description": "Paste one or more Transfermarkt URLs. Supported page types: player profile (`/.../profil/spieler/<id>`), club squad (`/.../startseite/verein/<id>`), competition (`/.../startseite/wettbewerb/<code>`), and transfer records (`/transfers/transferrekorde/...`, `/statistik/topabloesen`). The scraper detects the page type automatically and routes to the right parser.",
            "items": {
              "type": "string"
            }
          },
          "recordType": {
            "title": "Page Type",
            "enum": [
              "auto",
              "player",
              "club",
              "competition",
              "transfers"
            ],
            "type": "string",
            "description": "Override automatic page-type detection. Use `Auto-detect` unless you specifically want to ignore URLs of other types in the input.",
            "default": "auto"
          },
          "maxResults": {
            "title": "Maximum Results",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of result rows to return across the whole run (shared across every input URL, not per URL). For club URLs this caps the number of player rows; for competition URLs it caps club rows; for transfer-list URLs it caps transfer rows. Set to 0 for unlimited. Note: Transfermarkt's all-time transfer-records list contains roughly 100,000 rows — when set to unlimited on transfer URLs, pagination stops there and the run completes early.",
            "default": 1000
          },
          "language": {
            "title": "Site Language",
            "enum": [
              "com",
              "us",
              "de",
              "en",
              "es",
              "fr",
              "it",
              "nl",
              "pt-br",
              "pl",
              "tr",
              "jp",
              "co.uk"
            ],
            "type": "string",
            "description": "Which Transfermarkt regional site to scrape from. Affects language of position labels, country names, and competition names. `English (.com)` is the global default.",
            "default": "com"
          },
          "includeMarketValueHistory": {
            "title": "Include Market Value History",
            "type": "boolean",
            "description": "For player pages, include the full historical market value timeline (date, value, age, club at the time). Adds one extra request per player.",
            "default": true
          },
          "includeTransferHistory": {
            "title": "Include Transfer History",
            "type": "boolean",
            "description": "For player pages, include every transfer in the player's career with date, from-club, to-club, fee, and market value at the time.",
            "default": true
          },
          "includeAchievements": {
            "title": "Include Achievements (Trophies)",
            "type": "boolean",
            "description": "For player pages, include trophies and titles (league titles, cups, individual awards). Adds one extra request per player.",
            "default": false
          },
          "includeInjuries": {
            "title": "Include Injury History",
            "type": "boolean",
            "description": "For player pages, include the injury history table (injury type, dates, games missed). Adds one extra request per player.",
            "default": false
          },
          "includeClubSquad": {
            "title": "Expand Club Squad to Player Profiles",
            "type": "boolean",
            "description": "For club URLs, also fetch a full profile for every player on the squad (not just the squad-row summary). WARNING: a typical first-division squad has 25-35 players — this multiplies your result count and run cost roughly 25-35x per club URL. Leave off if you only need the squad summary.",
            "default": false
          },
          "includeCompetitionClubs": {
            "title": "Expand Competition to Club Pages",
            "type": "boolean",
            "description": "For competition URLs, also fetch a full club page for every club in the competition (not just the league-table summary). WARNING: a typical top-flight league has 18-20 clubs — this multiplies your result count by roughly 18-20x per competition URL. If you also enable 'Expand Club Squad to Player Profiles', the multipliers stack (18 clubs x 25-35 players = 450+ rows per competition). Leave off if you only need the competition summary.",
            "default": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}