{
  "openapi": "3.0.1",
  "info": {
    "title": "Transfermarkt Scraper: Player Market Values, Squads, Transfers",
    "description": "Scrape Transfermarkt players, club squads, league tables and transfer windows by name, link or league code: market value and full value history, position, age, nationality, club, contract end, agency, career transfers and season stats. Any country site. No login.",
    "version": "0.1",
    "x-build-id": "CbFhDvc1MSNe01E65"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/themineworks~transfermarkt-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-themineworks-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/themineworks~transfermarkt-scraper/runs": {
      "post": {
        "operationId": "runs-sync-themineworks-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/themineworks~transfermarkt-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-themineworks-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": {
          "players": {
            "title": "Players",
            "type": "array",
            "description": "Player names, Transfermarkt profile links from any country site (.com, .co.uk, .de, .es, .it, .fr, .us and others) or player ids. Example: Erling Haaland, https://www.transfermarkt.com/lionel-messi/profil/spieler/28003, 342229. One row per player.",
            "items": {
              "type": "string"
            }
          },
          "clubs": {
            "title": "Clubs",
            "type": "array",
            "description": "Club links from any Transfermarkt country site, club ids or club names. Example: https://www.transfermarkt.co.uk/liverpool-fc/startseite/verein/31, 418 (Real Madrid), FC Barcelona. A link with saison_id reads that season. What each club returns is set by 'Club output'.",
            "items": {
              "type": "string"
            }
          },
          "clubOutput": {
            "title": "Club output",
            "enum": [
              "squad",
              "transfers"
            ],
            "type": "string",
            "description": "squad: one row per player in the club's squad, with the full player profile. transfers: one row per arrival and departure of the season, with fee, loan flag, market value and the other club.",
            "default": "squad"
          },
          "competitions": {
            "title": "Competitions (leagues)",
            "type": "array",
            "description": "League links from any Transfermarkt country site, league codes or league names. Example: https://www.transfermarkt.com/premier-league/startseite/wettbewerb/GB1, ES1 (LaLiga), L1 (Bundesliga), IT1 (Serie A), FR1 (Ligue 1), MLS1. What each league returns is set by 'Competition output'.",
            "items": {
              "type": "string"
            }
          },
          "competitionOutput": {
            "title": "Competition output",
            "enum": [
              "clubs",
              "players",
              "transfers"
            ],
            "type": "string",
            "description": "clubs: one row per club with table position, points, goals, squad size, average age and squad market value. players: every player of every club in the league (one row each). transfers: every arrival and departure of every club in the league for the season and window you choose.",
            "default": "clubs"
          },
          "season": {
            "title": "Season (start year)",
            "minimum": 1950,
            "maximum": 2100,
            "type": "integer",
            "description": "The season to read for squads, league tables and transfers, as its start year: 2025 means 2025/26. Leave empty for the current season. A club or league link with saison_id overrides this for that link."
          },
          "transferWindow": {
            "title": "Transfer window",
            "enum": [
              "all",
              "summer",
              "winter"
            ],
            "type": "string",
            "description": "For transfers: all of the season, only the summer window (May to October) or only the winter window (November to April).",
            "default": "all"
          },
          "includeMarketValueHistory": {
            "title": "Market value history",
            "type": "boolean",
            "description": "Each player row gets every market value Transfermarkt has published for that player, with date, value, club and age. Same price per row.",
            "default": true
          },
          "includeTransferHistory": {
            "title": "Transfer history",
            "type": "boolean",
            "description": "Each player row gets the career transfers: date, season, from club, to club, fee, loan or transfer, market value at the time. Same price per row.",
            "default": true
          },
          "includeSeasonStats": {
            "title": "Season stats",
            "type": "boolean",
            "description": "Each player row gets stats per season and competition: appearances, starts, goals, assists, minutes, yellow and red cards. Summed from every game Transfermarkt records. Slower for long careers. Same price per row.",
            "default": false
          },
          "statsSeasons": {
            "title": "Seasons of stats",
            "minimum": 1,
            "maximum": 40,
            "type": "integer",
            "description": "How many of the latest seasons the season stats cover, 1 to 40. Example: 3.",
            "default": 3
          },
          "searchResultsPerName": {
            "title": "Matches per name",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "For a typed name, how many matches to return, best match first, 1 to 10. Example: 1 for the best match only, 5 for everyone called Haaland.",
            "default": 1
          },
          "domain": {
            "title": "Links point to",
            "enum": [
              "com",
              "co.uk",
              "us",
              "de",
              "es",
              "it",
              "fr",
              "nl",
              "pt",
              "com.tr",
              "com.br",
              "pl",
              "world"
            ],
            "type": "string",
            "description": "The Transfermarkt country site used for the profile, club and transfer links in the output. The data is the same on every site.",
            "default": "com"
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The most rows (players, clubs and transfers together) the whole run returns, 1 to 100,000. A Premier League squad is about 30 players; all 20 squads are about 550. Example: 1000.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}