{
  "openapi": "3.0.1",
  "info": {
    "title": "Flashscore Scraper – Live Scores, Results & Fixtures by Sport",
    "description": "Fixtures, live scores and results from Flashscore for football, tennis, basketball, hockey and 20 more sports, straight from the data feed. Period scores, tiebreaks, status, TV channels; add-ons: match summary with goals/cards, statistics, head-to-head, tennis point-by-point. Dedupe and 24 h cache.",
    "version": "1.1",
    "x-build-id": "vYVV6bcfIsVH6sajE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/budoucnost-ai~flashscore-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-budoucnost-ai-flashscore-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/budoucnost-ai~flashscore-scraper/runs": {
      "post": {
        "operationId": "runs-sync-budoucnost-ai-flashscore-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/budoucnost-ai~flashscore-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-budoucnost-ai-flashscore-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": {
          "sports": {
            "title": "Sports",
            "type": "array",
            "description": "Sports to scrape. Every selected sport is read for every selected day.",
            "items": {
              "type": "string",
              "enum": [
                "football",
                "tennis",
                "basketball",
                "hockey",
                "american-football",
                "baseball",
                "handball",
                "floorball",
                "bandy",
                "futsal",
                "volleyball",
                "cricket",
                "darts",
                "snooker",
                "badminton",
                "water-polo",
                "golf",
                "field-hockey",
                "table-tennis",
                "horse-racing",
                "esports"
              ],
              "enumTitles": [
                "Football (soccer)",
                "Tennis",
                "Basketball",
                "Ice hockey",
                "American football",
                "Baseball",
                "Handball",
                "Floorball",
                "Bandy",
                "Futsal",
                "Volleyball",
                "Cricket",
                "Darts",
                "Snooker",
                "Badminton",
                "Water polo",
                "Golf",
                "Field hockey",
                "Table tennis",
                "Horse racing",
                "Esports"
              ]
            },
            "default": [
              "tennis",
              "football"
            ]
          },
          "days": {
            "title": "Days",
            "type": "array",
            "description": "Which days to read, one per line: an offset from today in UTC (-1 = yesterday, 0 = today, 1 = tomorrow; Flashscore keeps -7..7) or a date YYYY-MM-DD. Default: today. Matches starting on the same calendar day (UTC) appear once even when several days are selected.",
            "default": [
              "0"
            ],
            "items": {
              "type": "string"
            }
          },
          "dateFrom": {
            "title": "Date from",
            "type": "string",
            "description": "Optional first day of a range (YYYY-MM-DD, within -7..+7 days from today), combined with Days."
          },
          "dateTo": {
            "title": "Date to",
            "type": "string",
            "description": "Optional last day of a range (YYYY-MM-DD)."
          },
          "leagues": {
            "title": "Competition filter (regex)",
            "type": "string",
            "description": "Case-insensitive regular expression matched against the competition name, its category (e.g. \"ATP - Singles\", \"WTA - Doubles\", \"Austria\") and country. Examples: \"ATP|WTA\", \"Premier League|La Liga\", \"^CZECH REPUBLIC\". Only matching competitions are returned – a cheap way to keep runs small."
          },
          "liveOnly": {
            "title": "Live matches only",
            "type": "boolean",
            "description": "Return only matches that are in progress right now.",
            "default": false
          },
          "finishedOnly": {
            "title": "Finished matches only",
            "type": "boolean",
            "description": "Return only finished matches (results).",
            "default": false
          },
          "matchIds": {
            "title": "Match IDs",
            "type": "array",
            "description": "Flashscore match ids (8 characters, e.g. nXaLgXBD) or match URLs. The actor scans the selected sports and days (-7..7 when Days is empty) and returns only these matches. Useful for refreshing a few matches with statistics.",
            "items": {
              "type": "string"
            }
          },
          "includeSummary": {
            "title": "Add-on: match summary",
            "type": "boolean",
            "description": "Period scores with durations, goals, cards, substitutions and other incidents with players, referee, venue, attendance, TV channels. One extra request per match; charged as \"match details\" together with the other add-ons (once per match).",
            "default": false
          },
          "includeStats": {
            "title": "Add-on: statistics",
            "type": "boolean",
            "description": "Match statistics (possession, shots, aces, break points … depending on the sport). One extra request per match.",
            "default": false
          },
          "includeH2H": {
            "title": "Add-on: head-to-head",
            "type": "boolean",
            "description": "Last matches of both participants and their mutual matches with dates, competitions and scores. One extra request per match.",
            "default": false
          },
          "includePointByPoint": {
            "title": "Add-on: point by point (tennis)",
            "type": "boolean",
            "description": "Game-by-game point sequence of every set, server and break points. One extra request per match; empty for sports without it.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum matches",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many matches have been saved. Counts unique matches after filters.",
            "default": 100
          },
          "excludeIds": {
            "title": "Exclude match IDs",
            "type": "array",
            "description": "Match ids you already have; they are skipped before any detail request and never charged.",
            "items": {
              "type": "string"
            }
          },
          "includeRegex": {
            "title": "Include regex",
            "type": "string",
            "description": "Only matches whose text (competition, category, country, both participants and their countries, status) matches this case-insensitive regular expression are returned. Example: \"Djokovic|Alcaraz\", \"Czech Republic\"."
          },
          "excludeRegex": {
            "title": "Exclude regex",
            "type": "string",
            "description": "Matches whose text matches this regular expression are skipped. Example: \"U19|U21|Women|Doubles|ITF\"."
          },
          "cacheHours": {
            "title": "Details cache (hours)",
            "minimum": 0,
            "maximum": 8760,
            "type": "integer",
            "description": "Summary, statistics, head-to-head and point-by-point of finished matches are kept in the key-value store \"flashscore-cache\" in your account and reused for this many hours, so repeated runs do not request (or pay for) them again. 0 disables the cache.",
            "default": 24
          },
          "useSharedCache": {
            "title": "Use shared cache",
            "type": "boolean",
            "description": "Details of finished matches fetched by any user of this actor within `cacheHours` are reused (free of the add-on charge, never older than cacheHours, at most 14 days). Set false, or cacheHours to 0, to always fetch fresh data.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Parallel feed requests. Keep it modest; the feed is fast anyway.",
            "default": 5
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "maximum": 30000,
            "type": "integer",
            "description": "Average pause before every request, randomised ±50 %.",
            "default": 200
          },
          "feedSign": {
            "title": "Feed signature (advanced)",
            "type": "string",
            "description": "Value of the x-fsign header the Flashscore feed requires. Leave empty to use the built-in value; set it only if the actor reports refused requests and the README's maintenance notes give a new value."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Datacenter Apify Proxy is enough for the feed; residential proxies are not needed.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}