{
  "openapi": "3.0.1",
  "info": {
    "title": "Flashscore Scraper: Tennis & Football Stats, Scores & Odds",
    "description": "Tennis and football stats from Flashscore: ATP, WTA, Challenger and ITF matches with surface, sets, games and tiebreaks, and each player's win rate by surface and games lines; each team's over/under, BTTS and form. Live scores, results and odds. From $0.60 per 1,000.",
    "version": "0.1",
    "x-build-id": "D7Qp080yi11m8y0nF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pikoulas~flashscore/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pikoulas-flashscore",
        "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/pikoulas~flashscore/runs": {
      "post": {
        "operationId": "runs-sync-pikoulas-flashscore",
        "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/pikoulas~flashscore/run-sync": {
      "post": {
        "operationId": "run-sync-pikoulas-flashscore",
        "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": "For dates and live matches. Football if empty.",
            "items": {
              "type": "string",
              "enum": [
                "football",
                "tennis",
                "basketball",
                "hockey",
                "american-football",
                "baseball",
                "handball",
                "volleyball",
                "rugby-union",
                "rugby-league",
                "cricket",
                "darts",
                "snooker",
                "table-tennis",
                "badminton",
                "beach-volleyball",
                "futsal",
                "floorball",
                "bandy",
                "water-polo",
                "field-hockey",
                "aussie-rules",
                "beach-soccer",
                "netball",
                "esports",
                "mma",
                "boxing",
                "kabaddi",
                "pesapallo"
              ],
              "enumTitles": [
                "Football",
                "Tennis",
                "Basketball",
                "Hockey",
                "American football",
                "Baseball",
                "Handball",
                "Volleyball",
                "Rugby union",
                "Rugby league",
                "Cricket",
                "Darts",
                "Snooker",
                "Table tennis",
                "Badminton",
                "Beach volleyball",
                "Futsal",
                "Floorball",
                "Bandy",
                "Water polo",
                "Field hockey",
                "Aussie rules",
                "Beach soccer",
                "Netball",
                "Esports",
                "MMA",
                "Boxing",
                "Kabaddi",
                "Pesapallo"
              ]
            }
          },
          "dateFrom": {
            "title": "Date",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2}|today|yesterday|tomorrow|[+-]?\\d{1,2})?$",
            "type": "string",
            "description": "Every match of these sports on this day (UTC): YYYY-MM-DD, today, yesterday, tomorrow, or days from today such as -3. Flashscore's day lists reach 7 days back and 7 ahead. Today's matches if nothing else is asked for."
          },
          "dateTo": {
            "title": "Until date",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2}|today|yesterday|tomorrow|[+-]?\\d{1,2})?$",
            "type": "string",
            "description": "For a range of days: the last day, included, written the same way."
          },
          "status": {
            "title": "Matches to keep",
            "enum": [
              "all",
              "live",
              "finished",
              "scheduled"
            ],
            "type": "string",
            "description": "Live keeps only the matches being played now.",
            "default": "all"
          },
          "competitions": {
            "title": "Competitions",
            "type": "array",
            "description": "For dates and live matches, only competitions whose Flashscore header contains one of these, such as \"ENGLAND: Premier League\", \"SPAIN:\", \"Champions League\" or \"ATP - SINGLES\". Empty for all.",
            "items": {
              "type": "string"
            }
          },
          "tennisTours": {
            "title": "Tennis tours",
            "type": "array",
            "description": "For tennis, only these tours. Empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "atp",
                "wta",
                "challenger",
                "itf",
                "other"
              ],
              "enumTitles": [
                "ATP",
                "WTA",
                "Challenger",
                "ITF",
                "Other (team cups, exhibitions, juniors)"
              ]
            }
          },
          "singlesOnly": {
            "title": "Tennis singles only",
            "type": "boolean",
            "description": "For tennis, leave doubles out.",
            "default": false
          },
          "tournaments": {
            "title": "Tournament URLs",
            "type": "array",
            "description": "Flashscore league or tournament pages, on any Flashscore domain, such as https://www.flashscore.com/football/england/premier-league/ (current season) or .../premier-league-2024-2025/ (a past one): the season's results and fixtures, and its table.",
            "items": {
              "type": "string"
            }
          },
          "includeStandings": {
            "title": "League tables",
            "type": "boolean",
            "description": "For tournament URLs: the table of the tournament's current stage, one row per team, with groups, conferences or divisions where it has them.",
            "default": true
          },
          "includeTeamStats": {
            "title": "Team and tennis player stats, betting trends",
            "type": "boolean",
            "description": "For tournament URLs of team sports: a row per team from the season's results, overall, at home and away: wins, draws, losses, goals, and in football, hockey, futsal and field hockey the share of matches over each goal line, both teams scoring, clean sheets and failing to score, with the last 5 results. For tennis: a row per singles player over every finished match the run reads (days and tournament URLs, past seasons too): wins and losses overall and by surface, sets, straight-set wins, deciding sets, tiebreaks, games won, average total games and the share of best-of-three matches over 20.5, 21.5 and 22.5 games, with the last 5 results. A tournament is read whole whatever Max matches says; set that to 1 for the stats alone. Each row is charged as a table row.",
            "default": false
          },
          "matches": {
            "title": "Match URLs or IDs",
            "type": "array",
            "description": "Flashscore match URLs, or their 8-character IDs (the mid= in the URL), any date.",
            "items": {
              "type": "string"
            }
          },
          "includeIncidents": {
            "title": "Goals, cards and substitutions",
            "type": "boolean",
            "description": "The match's incidents by period, with the player, assist and minute, plus referee, venue and attendance.",
            "default": false
          },
          "includeStatistics": {
            "title": "Match statistics",
            "type": "boolean",
            "description": "Possession, shots, xG, corners, passes... for the match and each half or period, as Flashscore shows them.",
            "default": false
          },
          "includeLineups": {
            "title": "Lineups",
            "type": "boolean",
            "description": "Formations, starting players, substitutes, coaches and missing players, with numbers and ratings.",
            "default": false
          },
          "includeOdds": {
            "title": "Betting odds",
            "type": "boolean",
            "description": "Current and opening odds of each bookmaker for each market, as decimals.",
            "default": false
          },
          "oddsMarkets": {
            "title": "Odds markets",
            "type": "array",
            "description": "Only these markets: 1X2, Home/Away, Over/Under, Both teams to score, Double chance, Draw no bet, Asian handicap, European handicap, Correct score, Half time/Full time, Odd/Even. Empty for all.",
            "items": {
              "type": "string"
            }
          },
          "oddsCountry": {
            "title": "Odds country",
            "type": "string",
            "description": "Bookmakers licensed in this country, as a two-letter code (GB, DE, IT, US...). Flashscore shows each country its own.",
            "default": "GB"
          },
          "maxMatches": {
            "title": "Max matches",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many matches. Empty for all."
          },
          "trackChanges": {
            "title": "Changes only",
            "type": "boolean",
            "description": "Give, and charge for, only the matches no earlier run with the same memory gave, and those that started, finished, changed status or score since, with the earlier score. Schedule it every few minutes on today's matches for kick-off, goal and result alerts.",
            "default": false
          },
          "memory": {
            "title": "Memory name",
            "type": "string",
            "description": "One per alert, so two schedules don't share a memory. Kept in your account's key-value store flashscore-memory; a match not seen for 14 days is forgotten.",
            "default": "default"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed to start. If Flashscore refuses the run, the actor switches to Apify residential proxy by itself.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}