{
  "openapi": "3.0.1",
  "info": {
    "title": "FotMob Scraper — Football xG, Stats, Shotmaps, Lineups & Tables",
    "description": "Scrape FotMob football data by league, season and date: results and fixtures with xG and xGOT, team stats, shotmaps with xG per shot, goals and cards, lineups with player ratings, player match stats, venue, referee and league tables. 50+ named leagues, any FotMob competition by link. No login.",
    "version": "0.1",
    "x-build-id": "yIfIPKwED4hu1nYU6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yugenox~fotmob-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yugenox-fotmob-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/yugenox~fotmob-scraper/runs": {
      "post": {
        "operationId": "runs-sync-yugenox-fotmob-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/yugenox~fotmob-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-yugenox-fotmob-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": {
          "leagues": {
            "title": "🏆 Leagues and cups",
            "type": "array",
            "description": "Competitions to scrape: a name (\"Premier League\", \"LaLiga\", \"Bundesliga\", \"Serie A\", \"Ligue 1\", \"MLS\", \"Champions League\", \"World Cup\" and about 50 more), a FotMob league link (fotmob.com/leagues/47/overview/premier-league) or a FotMob league id (47). Any competition on FotMob works by its link or id.",
            "items": {
              "type": "string"
            }
          },
          "season": {
            "title": "Season",
            "type": "string",
            "description": "Optional: the season as FotMob writes it, e.g. \"2025/2026\" (also \"2025-26\"), \"2026\" for calendar-year leagues, or \"2026 - Clausura\". Empty = the current season (or the previous one if the current season hasn't started yet)."
          },
          "matchStatus": {
            "title": "Matches",
            "enum": [
              "finished",
              "upcoming",
              "live",
              "all"
            ],
            "type": "string",
            "description": "Which matches of the season: finished results (newest first), upcoming fixtures (soonest first), matches being played right now, or all of them (in kick-off order).",
            "default": "finished"
          },
          "dateFrom": {
            "title": "Date from",
            "type": "string",
            "description": "Optional: only matches kicking off on or after this day (UTC). 2026-10-01, today, yesterday, \"7 days ago\" or \"-7\"."
          },
          "dateTo": {
            "title": "Date to",
            "type": "string",
            "description": "Optional: only matches kicking off on or before this day (UTC). 2026-10-31, today, tomorrow, \"in 7 days\" or \"+7\"."
          },
          "teams": {
            "title": "Teams",
            "type": "array",
            "description": "Optional: only matches (and table rows) of these teams, e.g. \"Arsenal\", \"Real Madrid\". Part of the name is enough; a FotMob team id works too.",
            "items": {
              "type": "string"
            }
          },
          "matchUrls": {
            "title": "🔗 Match links",
            "type": "array",
            "description": "Optional: FotMob match links (fotmob.com/matches/arsenal-vs-chelsea/2ugr8l#5795452 or fotmob.com/match/5795452) or match ids. Each one is read from its match page. League links pasted here work like the Leagues field.",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Match details (xG, stats, shotmap, lineups)",
            "type": "boolean",
            "description": "Read each played match's own page for xG and xGOT, possession, shots and every other team stat, the shotmap with xG per shot, goals / cards / substitutions, lineups with formations and player ratings, player match stats, venue, referee and attendance. Charged per match (see Pricing). Off = fixture and result rows only (cheaper and much faster). Upcoming matches never need it.",
            "default": true
          },
          "detailSections": {
            "title": "Detail sections",
            "type": "array",
            "description": "Which detail lists to put in each match row (the xG / possession / shots / venue / referee summary columns are always filled). Leave out what you don't need to keep rows small.",
            "items": {
              "type": "string",
              "enum": [
                "stats",
                "shots",
                "events",
                "lineups",
                "playerStats",
                "momentum"
              ],
              "enumTitles": [
                "Team stats (all, 1st half, 2nd half)",
                "Shotmap (every shot with xG)",
                "Events (goals, cards, substitutions)",
                "Lineups (formations, ratings, bench, injuries)",
                "Player match stats",
                "Momentum (minute by minute)"
              ]
            },
            "default": [
              "stats",
              "shots",
              "events",
              "lineups",
              "playerStats"
            ]
          },
          "includeTable": {
            "title": "League table rows",
            "type": "boolean",
            "description": "Also save the league table: one row per team with position, points, goals, form, qualification zone, xG / xPoints table and home / away tables (group stages: one table per group). Table rows count toward Max rows and come before the matches.",
            "default": false
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of rows (matches + table rows) for the whole run, shared fairly between your leagues. 0 = everything.",
            "default": 50
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy (datacenter) is used by default and comes with every Apify plan. FotMob does not need residential proxies: if you pick them, the run uses datacenter instead.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}