{
  "openapi": "3.0.1",
  "info": {
    "title": "Flashscore Scraper - Results, Stats, Lineups & Bookmaker Odds",
    "description": "Flashscore data for football, tennis, basketball, hockey and 13 more sports: results with period scores, match statistics (xG, possession, shots), lineups with ratings, incidents and opening/closing odds from ~20 bookmakers. By day or whole tournament seasons from the archive.",
    "version": "0.1",
    "x-build-id": "jNuuKKouerZxv9dWG"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/artsiom_k~flashscore-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-artsiom_k-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/artsiom_k~flashscore-scraper/runs": {
      "post": {
        "operationId": "runs-sync-artsiom_k-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/artsiom_k~flashscore-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-artsiom_k-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": {
          "entityType": {
            "title": "What to scrape",
            "enum": [
              "matches",
              "statistics",
              "lineups",
              "incidents",
              "odds"
            ],
            "type": "string",
            "description": "One row per match, per match period (statistics), per player (lineups), per incident or per bookmaker odds selection.",
            "default": "matches"
          },
          "sports": {
            "title": "Sports",
            "type": "array",
            "description": "Listing by day: which sports. Ignored when Tournaments or Match URLs are given.",
            "items": {
              "type": "string",
              "enum": [
                "football",
                "tennis",
                "basketball",
                "hockey",
                "american-football",
                "baseball",
                "handball",
                "rugby-union",
                "rugby-league",
                "volleyball",
                "futsal",
                "floorball",
                "darts",
                "badminton",
                "water-polo",
                "table-tennis",
                "esports"
              ],
              "enumTitles": [
                "Football (soccer)",
                "Tennis",
                "Basketball",
                "Ice hockey",
                "American football",
                "Baseball",
                "Handball",
                "Rugby union",
                "Rugby league",
                "Volleyball",
                "Futsal",
                "Floorball",
                "Darts",
                "Badminton",
                "Water polo",
                "Table tennis",
                "Esports"
              ]
            },
            "default": [
              "football"
            ]
          },
          "dateFrom": {
            "title": "From date",
            "type": "string",
            "description": "First day (YYYY-MM-DD, UTC). Leave both dates empty for yesterday and today (upcoming: today and tomorrow). Listing by day covers 7 days back to 7 days ahead; for older matches use Tournaments, where the dates only filter."
          },
          "dateTo": {
            "title": "To date",
            "type": "string",
            "description": "Last day (YYYY-MM-DD, UTC)."
          },
          "matchStatus": {
            "title": "Match status",
            "enum": [
              "finished",
              "upcoming",
              "all"
            ],
            "type": "string",
            "description": "Finished matches have results, statistics and closing odds; upcoming ones have fixtures and current odds.",
            "default": "finished"
          },
          "tournaments": {
            "title": "Tournaments",
            "type": "array",
            "description": "Flashscore tournament URLs, e.g. https://www.flashscore.com/football/england/premier-league/ or https://www.flashscore.com/tennis/atp-singles/wimbledon/. Returns whole seasons (see Seasons) from Flashscore's archive.",
            "items": {
              "type": "string"
            }
          },
          "seasons": {
            "title": "Seasons",
            "type": "array",
            "description": "Tournaments only: which seasons, e.g. 2024/2025, 24/25 or 2024 (calendar-year events). Empty = the current season. \"all\" = every season in the archive.",
            "items": {
              "type": "string"
            }
          },
          "matchUrls": {
            "title": "Match URLs",
            "type": "array",
            "description": "Flashscore match URLs or 8-character match ids. Overrides every other way of picking matches.",
            "items": {
              "type": "string"
            }
          },
          "oddsCountry": {
            "title": "Bookmakers of country (odds)",
            "enum": [
              "GB",
              "DE",
              "PL",
              "AT",
              "US",
              "NG",
              "IN"
            ],
            "type": "string",
            "description": "Odds only: Flashscore shows the bookmakers licensed in a country. The UK has the most.",
            "default": "GB"
          },
          "oddsMarkets": {
            "title": "Odds markets",
            "type": "array",
            "description": "Odds only: which markets. Empty = all. A football match has ~3,000 odds rows across all markets, periods and ~20 UK bookmakers.",
            "items": {
              "type": "string",
              "enum": [
                "home_draw_away",
                "home_away",
                "over_under",
                "asian_handicap",
                "european_handicap",
                "double_chance",
                "draw_no_bet",
                "both_teams_to_score",
                "correct_score",
                "half_full_time",
                "odd_or_even"
              ],
              "enumTitles": [
                "1X2 (home/draw/away)",
                "Moneyline (home/away)",
                "Over/under (totals)",
                "Asian handicap (spread)",
                "European handicap",
                "Double chance",
                "Draw no bet",
                "Both teams to score",
                "Correct score",
                "Half-time/full-time",
                "Odd/even"
              ]
            },
            "default": [
              "home_draw_away",
              "home_away",
              "over_under",
              "asian_handicap"
            ]
          },
          "oddsPeriods": {
            "title": "Odds periods",
            "type": "array",
            "description": "Odds only: which parts of the match. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "full_time",
                "full_time_over_time",
                "first_half",
                "second_half",
                "first_quarter",
                "first_set",
                "second_set"
              ],
              "enumTitles": [
                "Full time (regular time)",
                "Full time incl. overtime",
                "1st half",
                "2nd half",
                "1st quarter",
                "1st set",
                "2nd set"
              ]
            },
            "default": [
              "full_time",
              "full_time_over_time"
            ]
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many rows. Clear it for everything in range.",
            "default": 50
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "full",
              "incremental"
            ],
            "type": "string",
            "description": "\"incremental\" remembers the finished matches earlier incremental runs with the same settings returned and skips them, so a daily schedule gets only new results.",
            "default": "full"
          },
          "concurrency": {
            "title": "Concurrency",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Requests in parallel.",
            "default": 10
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed: Flashscore answers without a proxy. Available in case a shared IP gets limited."
          },
          "disableTelemetry": {
            "title": "Turn off telemetry",
            "type": "boolean",
            "description": "By default each run reports its status and errors to the developer and, only if the run fails, its input values, to find and fix problems. Results are never sent. Tick this to send nothing. See \"Diagnostics and telemetry\" in the README for the full list.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}