{
  "openapi": "3.0.1",
  "info": {
    "title": "Flashscore Scraper | Match Results, Fixtures & Stats",
    "description": "Get Flashscore matches for 20 sports: teams, start time, status, final score, period scores and winner, plus ATP/WTA ranks for tennis singles. Daily lists or whole league seasons, optional statistics and incidents. No login.",
    "version": "0.0",
    "x-build-id": "FNtZa7umPu9P2sRq8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/genial_candlestand~flashscore-results-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-genial_candlestand-flashscore-results-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/genial_candlestand~flashscore-results-scraper/runs": {
      "post": {
        "operationId": "runs-sync-genial_candlestand-flashscore-results-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/genial_candlestand~flashscore-results-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-genial_candlestand-flashscore-results-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 (day mode)",
            "type": "array",
            "description": "Sports whose daily match lists you want, all leagues worldwide. Used with Days. Leave empty for tournament URLs only.",
            "items": {
              "type": "string",
              "enum": [
                "football",
                "tennis",
                "basketball",
                "hockey",
                "american-football",
                "baseball",
                "handball",
                "volleyball",
                "cricket",
                "darts",
                "snooker",
                "table-tennis",
                "esports",
                "futsal",
                "badminton",
                "floorball",
                "water-polo",
                "bandy",
                "rugby-union",
                "rugby-league"
              ],
              "enumTitles": [
                "Football (soccer)",
                "Tennis",
                "Basketball",
                "Ice hockey",
                "American football",
                "Baseball",
                "Handball",
                "Volleyball",
                "Cricket",
                "Darts",
                "Snooker",
                "Table tennis",
                "Esports",
                "Futsal",
                "Badminton",
                "Floorball",
                "Water polo",
                "Bandy",
                "Rugby union",
                "Rugby league"
              ]
            }
          },
          "dayOffsets": {
            "title": "Days (day mode)",
            "type": "array",
            "description": "Days relative to today, from \"-7\" (7 days ago) to \"7\" (in 7 days). Flashscore lists days only in this window; for older matches use a tournament season URL. Applies to \"Sports\" only.",
            "items": {
              "type": "string",
              "enum": [
                "-7",
                "-6",
                "-5",
                "-4",
                "-3",
                "-2",
                "-1",
                "0",
                "1",
                "2",
                "3",
                "4",
                "5",
                "6",
                "7"
              ],
              "enumTitles": [
                "7 days ago",
                "6 days ago",
                "5 days ago",
                "4 days ago",
                "3 days ago",
                "2 days ago",
                "Yesterday",
                "Today",
                "Tomorrow",
                "In 2 days",
                "In 3 days",
                "In 4 days",
                "In 5 days",
                "In 6 days",
                "In 7 days"
              ]
            },
            "default": [
              "0"
            ]
          },
          "startUrls": {
            "title": "Tournament URLs (season mode)",
            "type": "array",
            "description": "www.flashscore.com league pages, current or past season, e.g. a premier-league-2024-2025/results/ page. Returns every match of that season.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "tournamentMatches": {
            "title": "Tournament matches",
            "enum": [
              "auto",
              "results",
              "fixtures",
              "both"
            ],
            "type": "string",
            "description": "Which matches to take from each tournament URL. \"auto\" follows the URL: /fixtures/ gives upcoming matches, /results/ or no tab gives played ones. Past seasons have results only. Applies to \"Tournament URLs\" only.",
            "default": "auto"
          },
          "matchStatus": {
            "title": "Match status",
            "enum": [
              "all",
              "finished",
              "live",
              "scheduled"
            ],
            "type": "string",
            "description": "Keep only matches with this status. Live matches exist only for today (\"0\"); finished ones only for past days and today.",
            "default": "all"
          },
          "tournaments": {
            "title": "Tournament name filter (day mode)",
            "type": "array",
            "description": "Keep only day-list matches whose tournament or country contains one of these texts (case-insensitive), e.g. \"Premier League\", \"ATP\", \"ENGLAND\". Empty = all tournaments. Applies to \"Sports\" only, not to tournament URLs.",
            "items": {
              "type": "string"
            }
          },
          "includeDetails": {
            "title": "Include match statistics and incidents",
            "type": "boolean",
            "description": "For finished matches, also fetch match statistics and incidents as published. What you get depends on the sport: football — statistics (possession, shots, xG…) and incidents (goals with assists, cards, substitutions); tennis — statistics (aces, double faults, serve and return points, break points…); basketball — statistics where the league has them (NBA and many top leagues); hockey — incidents (goals, penalties) and statistics in top leagues (NHL, KHL…); volleyball, darts, handball, cricket and other set/frame sports — nothing. Charged as an extra \"Match details\" event only per match where something was found; matches without details are free.",
            "default": false
          },
          "timezoneOffsetHours": {
            "title": "Timezone offset (hours)",
            "minimum": -12,
            "maximum": 14,
            "type": "integer",
            "description": "Where a \"day\" starts and ends, as a whole-hour UTC offset (e.g. 1 for Paris in winter, -5 for New York). Start times in the output are always UTC.",
            "default": 0
          },
          "maxItems": {
            "title": "Max matches",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many matches in total. A busy football day has over 1,000 matches.",
            "default": 1000
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed: Flashscore data loads without a proxy. Turn on Apify Proxy only if your runs get blocked.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}