{
  "openapi": "3.0.1",
  "info": {
    "title": "FotMob Match Stats Scraper",
    "description": "Football match stats from FotMob: score, scorers and minutes, xG, possession, shots and every team stat, player ratings, line-ups and the event timeline. Read matches by link, or every match of a league, team or date range. Monitoring mode returns each match once after the final whistle.",
    "version": "0.1",
    "x-build-id": "UpDMIocdhFGXER4fA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neverempty~fotmob-match-stats-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neverempty-fotmob-match-stats-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/neverempty~fotmob-match-stats-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neverempty-fotmob-match-stats-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/neverempty~fotmob-match-stats-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neverempty-fotmob-match-stats-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": {
          "matches": {
            "title": "Matches",
            "type": "array",
            "description": "One match per line: a FotMob match link (https://www.fotmob.com/match/4813585, or the long link that ends in #4813585) or just the match number. Each match comes back as one row with the score, scorers and minutes, xG, possession, shots and every other team stat, player ratings, line-ups and the event timeline. A number FotMob does not have comes back as a \"not-found\" row that is not charged.",
            "items": {
              "type": "string"
            }
          },
          "leagues": {
            "title": "Leagues",
            "type": "array",
            "description": "One league per line: a short name (Premier League, LaLiga, Serie A, Bundesliga, Ligue 1, Champions League, Europa League, MLS, Eredivisie, Championship, J1 League, Brasileirao, Liga MX, Saudi Pro League, Copa Libertadores, ...), the FotMob league number (47) or a fotmob.com league link (https://www.fotmob.com/leagues/47/overview/premier-league). With dates, every match of these leagues on those days is read. Without dates, the league's current-season schedule is read (finished matches newest first, up to Maximum matches).",
            "items": {
              "type": "string"
            }
          },
          "teams": {
            "title": "Teams",
            "type": "array",
            "description": "One team per line: a fotmob.com team link (https://www.fotmob.com/teams/8668/overview/everton) or the FotMob team number (8668). With dates, every match of these teams on those days is read. Without dates, the team's matches this season are read.",
            "items": {
              "type": "string"
            }
          },
          "dateFrom": {
            "title": "From date",
            "type": "string",
            "description": "First day to read, in your time zone below: 2026-10-24, today, yesterday, \"3 days ago\" or -3. With no league or team, every match FotMob lists on those days is read (often 300 to 800 a day, so set Maximum matches). Leave both dates empty to read the current season of the leagues and teams."
          },
          "dateTo": {
            "title": "To date",
            "type": "string",
            "description": "Last day to read (included). Empty = the same day as From date. At most 93 days per run."
          },
          "timezone": {
            "title": "Time zone",
            "type": "string",
            "description": "The time zone your dates mean and that kickoffLocal and localDate are written in, such as UTC, Europe/London, America/New_York or Asia/Tokyo. A match at 00:30 UTC is on the previous day in New York.",
            "default": "UTC"
          },
          "matchStatus": {
            "title": "Which matches",
            "enum": [
              "finished",
              "live",
              "upcoming",
              "all"
            ],
            "type": "string",
            "description": "Finished = only matches after the final whistle (the default). Live = only matches being played now, with the figures so far. Upcoming = only matches not started yet, with the predicted line-ups, venue and referee. All = every match found, including postponed and cancelled ones. Named matches with another status come back as a row that says when to run again and is not charged.",
            "default": "finished"
          },
          "detailLevel": {
            "title": "Detail",
            "enum": [
              "details",
              "list"
            ],
            "type": "string",
            "description": "Full match stats = one row per match with every figure (charged as match-details when FotMob has team stats or player ratings for the match; matches FotMob covers with score and events only, and previews, are charged as match-listed). Fixture list only = teams, kick-off, status and score, charged as match-listed: cheaper and faster for schedules and results.",
            "default": "details"
          },
          "includePlayers": {
            "title": "Player ratings and stats",
            "type": "boolean",
            "description": "Add every player who played, with FotMob rating, minutes, goals, assists, xG, xA, shots, passes, duels and more, in the match row and as one flat table (PLAYERS.csv in the run's key-value store, one row per player per match).",
            "default": true
          },
          "includeLineups": {
            "title": "Line-ups",
            "type": "boolean",
            "description": "Add the starting eleven, substitutes, formation and coach of both teams.",
            "default": true
          },
          "includeShots": {
            "title": "Every shot (shot map)",
            "type": "boolean",
            "description": "Add every shot with minute, player, xG, xGOT, outcome, body part and pitch position.",
            "default": false
          },
          "includeMomentum": {
            "title": "Momentum (who was on top, minute by minute)",
            "type": "boolean",
            "description": "Add FotMob's momentum line: one value per minute, positive when the home team was on top and negative when the away team was.",
            "default": false
          },
          "maxMatches": {
            "title": "Maximum matches",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "The run stops after this many match rows and lists the matches it did not read in a row that is not charged. Monitoring mode keeps to it too, oldest match first; matches that did not fit are not remembered and come in the next monitoring run.",
            "default": 50
          },
          "monitoringMode": {
            "title": "Monitoring mode: return each match once, after its final whistle",
            "type": "boolean",
            "description": "For a daily or hourly schedule. Each run looks at the leagues and teams (and dates; without dates, the last three days in your time zone), returns only finished matches that an earlier monitoring run has not returned, and remembers them. A run with nothing new returns one row that is not charged, and remembered matches are not read again. Dates more than 300 days ago are refused in monitoring mode (use a normal run for past seasons). Postponed and cancelled matches are never charged.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name (optional)",
            "type": "string",
            "description": "Give each monitoring schedule its own name, such as premier-league or my-teams, when several schedules follow overlapping leagues or teams: each name remembers its own matches, so every schedule gets each match once. Letters, digits and \"-\", up to 40 characters. Empty = one shared memory per detailLevel (list and details are remembered apart)."
          },
          "resetMonitoringState": {
            "title": "Forget the remembered matches and start over",
            "type": "boolean",
            "description": "Monitoring only, and only in a run you start by hand: clears the remembered matches of this monitor (the same detailLevel and monitorName), so this run returns them again. Turn it off afterwards. Runs started by a schedule ignore it and say so in a row that is not charged, so a schedule never charges every match again.",
            "default": false
          },
          "useProxy": {
            "title": "Move to fresh Apify datacenter proxy addresses when FotMob refuses",
            "type": "boolean",
            "description": "Requests go directly to FotMob with a pause between them. When FotMob refuses a request (HTTP 403 or 429), the run asks again from fresh Apify datacenter proxy addresses. Turn this off to never use a proxy: a refusal is then waited out once and, if it continues, the run stops and lists what it did not read.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}