{
  "openapi": "3.0.1",
  "info": {
    "title": "Flashscore Scraper: Results & Fixtures API for 20+ Sports",
    "description": "Flashscore scraper: match results and upcoming fixtures for any league or tournament in 20+ sports: football, tennis, basketball, ice hockey, NFL, baseball, cricket and rugby. Scores, winners, set and period scores, rounds, teams and logos, with monitor mode for new results. $1 per 1,000 matches.",
    "version": "0.1",
    "x-build-id": "5D1NgGvolEcN0pQan"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/localwire~flashscore-sports/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-localwire-flashscore-sports",
        "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/localwire~flashscore-sports/runs": {
      "post": {
        "operationId": "runs-sync-localwire-flashscore-sports",
        "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/localwire~flashscore-sports/run-sync": {
      "post": {
        "operationId": "run-sync-localwire-flashscore-sports",
        "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",
            "type": "array",
            "description": "Popular leagues, built in, by key: premier-league, laliga, serie-a, bundesliga, champions-league, nba, nhl, nfl, mlb, ipl and others. For anything else, paste its Flashscore URL in leagueUrls. If no league is given in either field, premier-league is used.",
            "items": {
              "type": "string",
              "enum": [
                "premier-league",
                "championship",
                "laliga",
                "serie-a",
                "bundesliga",
                "ligue-1",
                "eredivisie",
                "liga-portugal",
                "scottish-premiership",
                "mls",
                "champions-league",
                "europa-league",
                "nba",
                "euroleague",
                "nhl",
                "nfl",
                "mlb",
                "ipl",
                "big-bash-league",
                "six-nations",
                "premiership-rugby"
              ],
              "enumTitles": [
                "England: Premier League",
                "England: Championship",
                "Spain: LaLiga",
                "Italy: Serie A",
                "Germany: Bundesliga",
                "France: Ligue 1",
                "Netherlands: Eredivisie",
                "Portugal: Liga Portugal",
                "Scotland: Premiership",
                "USA: MLS",
                "Europe: Champions League",
                "Europe: Europa League",
                "USA: NBA",
                "Europe: Euroleague",
                "USA: NHL",
                "USA: NFL",
                "USA: MLB",
                "India: IPL",
                "Australia: Big Bash League",
                "Europe: Six Nations",
                "England: Premiership Rugby"
              ]
            }
          },
          "leagueUrls": {
            "title": "League or tournament URLs",
            "type": "array",
            "description": "Any league or tournament page on flashscore.com or flashscore.co.uk, e.g. https://www.flashscore.com/football/italy/serie-b/ or a tennis tournament like https://www.flashscore.com/tennis/atp-singles/paris/. Sub-pages (/results/, /fixtures/) are fine too.",
            "items": {
              "type": "string"
            }
          },
          "include": {
            "title": "Matches to include",
            "enum": [
              "both",
              "results",
              "fixtures"
            ],
            "type": "string",
            "description": "results (finished and live matches of the season so far), fixtures (upcoming matches), or both. both if left out.",
            "default": "both"
          },
          "teams": {
            "title": "Teams or players",
            "type": "array",
            "description": "Keep only matches where either side's name contains ANY of these, e.g. Arsenal, Lakers, Sinner.",
            "items": {
              "type": "string"
            }
          },
          "daysBack": {
            "title": "From N days ago",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Keep matches starting on or after this many days ago (UTC). No limit if left out, so the whole season's results are returned. Ignored when 'From date' is set."
          },
          "daysAhead": {
            "title": "Up to N days ahead",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Keep matches starting up to this many days from now (UTC). No limit if left out, so all listed fixtures are returned. Ignored when 'To date' is set."
          },
          "dateFrom": {
            "title": "From date",
            "type": "string",
            "description": "Keep matches starting on or after this date, e.g. 2026-11-01."
          },
          "dateTo": {
            "title": "To date",
            "type": "string",
            "description": "Keep matches starting on or before this date (inclusive)."
          },
          "monitorMode": {
            "title": "Monitor mode: only new results",
            "type": "boolean",
            "description": "Remember which finished matches were returned for each league and return only matches that finished since the last run. Schedule the Actor (e.g. every hour) for a results feed.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Name of the key-value store that remembers returned matches. Use a different name for each separate monitor.",
            "default": "flashscore-sports-monitor"
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many matches (1,000 if left out). Each match costs $0.001, and one league can hold 200 or more results and fixtures, so pass a small number or a date filter for a short answer.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}