{
  "openapi": "3.0.1",
  "info": {
    "title": "🚀 Transfermarkt Clubs Scraper · 5,000 Free Rows/Month",
    "description": "Transfermarkt Clubs Scraper gets you club data ⚡ fast, 🎯 100% accurate and 🔍 ridiculously detailed — squad with market values & contracts, stadium, staff, fixtures & results, titles and transfer record. 💰 $1 per 1,000 rows, no start fee. Scrape your first 5,000 rows free every month 🚀",
    "version": "0.0",
    "x-build-id": "z07rsPSZW5Vtg38RK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/omkar-cloud~transfermarkt-clubs-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-omkar-cloud-transfermarkt-clubs-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/omkar-cloud~transfermarkt-clubs-scraper/runs": {
      "post": {
        "operationId": "runs-sync-omkar-cloud-transfermarkt-clubs-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/omkar-cloud~transfermarkt-clubs-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-omkar-cloud-transfermarkt-clubs-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": {
          "clubs": {
            "title": "Clubs",
            "type": "array",
            "description": "Transfermarkt club ids like `418` (Real Madrid) or pasted transfermarkt.com club URLs like `https://www.transfermarkt.com/real-madrid/startseite/verein/418` — the form is auto-detected. Rows carry `source_input` (as typed).",
            "items": {
              "type": "string"
            }
          },
          "competitions": {
            "title": "Competitions (all clubs)",
            "type": "array",
            "description": "Competition codes like `GB1` (Premier League), `ES1` (LaLiga), `L1` (Bundesliga), `CL` (Champions League), or pasted competition URLs. Every club of the season becomes a row.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Club Names",
            "type": "array",
            "description": "Names to search, like `Manchester` or `Boca Juniors`. Every club the search returns becomes a row, up to Max Clubs.",
            "items": {
              "type": "string"
            }
          },
          "season": {
            "title": "Season",
            "type": "string",
            "description": "Season for the squad and fixtures — the start year (`2025`) or the season name (`25/26`). Leave empty for the current season."
          },
          "includeSquad": {
            "title": "Include Squad",
            "type": "boolean",
            "description": "Adds `squad_players` — every player with shirt number, position, age, nationality, height, foot, joined date, contract end, signed-from club and market value.",
            "default": true
          },
          "includeStadium": {
            "title": "Include Stadium",
            "type": "boolean",
            "description": "Adds `stadium_details` — capacity, seats, built and renovated year, surface, pitch size, address, owner and naming rights.",
            "default": true
          },
          "includeStaff": {
            "title": "Include Staff",
            "type": "boolean",
            "description": "Adds `staff` — coaching staff, management, board, scouting and medical departments with roles, appointment dates and contract ends.",
            "default": false
          },
          "includeFixtures": {
            "title": "Include Fixtures & Results",
            "type": "boolean",
            "description": "Adds `fixtures` — every match of the season across all competitions with venue, opponent, formation, attendance and result, plus the home/away record.",
            "default": false
          },
          "includeTitles": {
            "title": "Include Titles",
            "type": "boolean",
            "description": "Adds `titles` — every trophy the club has won, grouped by competition with the seasons.",
            "default": false
          },
          "includeHistory": {
            "title": "Include Season History",
            "type": "boolean",
            "description": "Adds `seasons_history` — season-by-season league placements with W/D/L, goals, points, rank and the manager.",
            "default": false
          },
          "includeTransferRecords": {
            "title": "Include Record Signings & Sales",
            "type": "boolean",
            "description": "Adds `record_signings` and `record_sales` — the club's most expensive arrivals and departures of all time, ranked by fee.",
            "default": false
          },
          "includeNationalPlayers": {
            "title": "Include International Players",
            "type": "boolean",
            "description": "Adds `national_players` — current, youth and former internationals in the squad with caps and goals.",
            "default": false
          },
          "maxResults": {
            "title": "Max Clubs",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of club rows for the whole run, across every club, competition and search. Use this to control your cost (1,000 clubs = $1).",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}