{
  "openapi": "3.0.1",
  "info": {
    "title": "Flashscore Match Betting Odds",
    "description": "Export Flashscore betting odds as flat rows: one bookmaker price per selection with match, competition, kickoff, status, market, line, current and opening price. 24 sports, 11 bookmaker countries, scheduled, live and finished matches.",
    "version": "0.1",
    "x-build-id": "VSZzgz4uyRunrErHN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automation-lab~flashscore-match-betting-odds/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automation-lab-flashscore-match-betting-odds",
        "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/automation-lab~flashscore-match-betting-odds/runs": {
      "post": {
        "operationId": "runs-sync-automation-lab-flashscore-match-betting-odds",
        "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/automation-lab~flashscore-match-betting-odds/run-sync": {
      "post": {
        "operationId": "run-sync-automation-lab-flashscore-match-betting-odds",
        "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 whose matches are listed for the chosen days. Ignored when Match URLs are given.",
            "items": {
              "type": "string",
              "enum": [
                "football",
                "tennis",
                "basketball",
                "hockey",
                "american-football",
                "baseball",
                "handball",
                "rugby-union",
                "floorball",
                "bandy",
                "futsal",
                "volleyball",
                "cricket",
                "darts",
                "snooker",
                "boxing",
                "aussie-rules",
                "rugby-league",
                "badminton",
                "water-polo",
                "field-hockey",
                "table-tennis",
                "mma",
                "esports"
              ],
              "enumTitles": [
                "Football (soccer)",
                "Tennis",
                "Basketball",
                "Ice hockey",
                "American football",
                "Baseball",
                "Handball",
                "Rugby union",
                "Floorball",
                "Bandy",
                "Futsal",
                "Volleyball",
                "Cricket",
                "Darts",
                "Snooker",
                "Boxing",
                "Aussie rules",
                "Rugby league",
                "Badminton",
                "Water polo",
                "Field hockey",
                "Table tennis",
                "MMA",
                "Esports"
              ]
            },
            "default": [
              "football"
            ]
          },
          "startDay": {
            "title": "Start day",
            "minimum": -7,
            "maximum": 7,
            "type": "integer",
            "description": "First day to list, relative to today in UTC: 0 is today, 1 is tomorrow, -1 is yesterday. Flashscore lists 7 days back and 7 days ahead. Ignored when Match URLs are given.",
            "default": 0
          },
          "numberOfDays": {
            "title": "Number of days",
            "minimum": 1,
            "maximum": 15,
            "type": "integer",
            "description": "How many consecutive UTC days to list, starting at Start day. The last day must be no later than 7 days ahead. Ignored when Match URLs are given.",
            "default": 1
          },
          "matchStatuses": {
            "title": "Match status",
            "type": "array",
            "description": "Which matches to keep from the daily lists: not started, in progress, or finished (finished matches keep their closing odds). Postponed and cancelled matches are always left out. Empty means scheduled and live. Ignored when Match URLs are given.",
            "items": {
              "type": "string",
              "enum": [
                "scheduled",
                "live",
                "finished"
              ],
              "enumTitles": [
                "Scheduled (not started)",
                "Live (in progress)",
                "Finished (closing odds)"
              ]
            },
            "default": [
              "scheduled",
              "live"
            ]
          },
          "competitions": {
            "title": "Competitions",
            "type": "array",
            "description": "Keep only matches whose \"Country: Competition\" text contains any of these words, case-insensitive (for example \"England: Premier League\", \"Premier League\", \"NBA\" or \"ATP\"). A match is kept when any one entry matches. Empty keeps every competition. Ignored when Match URLs are given.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "matchUrls": {
            "title": "Match URLs or IDs",
            "type": "array",
            "description": "Flashscore match links (for example https://www.flashscore.com/match/football/arsenal-hA1Zm19f/chelsea-4fGZN2oK/?mid=AbCd1234) or 8-character match IDs. When given, only these matches are fetched, and Sports, days, Match status and Competitions are ignored.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "markets": {
            "title": "Markets",
            "type": "array",
            "description": "Bet types to export. The default is the match-winner markets: 1X2 for sports with draws and Home/Away for the rest. Clear the list to export every market Flashscore lists for the match. A match that has none of the chosen markets gives no rows.",
            "items": {
              "type": "string",
              "enum": [
                "HOME_DRAW_AWAY",
                "HOME_AWAY",
                "OVER_UNDER",
                "BOTH_TEAMS_TO_SCORE",
                "DOUBLE_CHANCE",
                "DRAW_NO_BET",
                "ASIAN_HANDICAP",
                "EUROPEAN_HANDICAP",
                "CORRECT_SCORE",
                "HALF_FULL_TIME",
                "ODD_OR_EVEN"
              ],
              "enumTitles": [
                "1X2 (home / draw / away)",
                "Home/Away (2-way winner, incl. overtime where it exists)",
                "Over/Under totals",
                "Both teams to score",
                "Double chance (1X, 12, X2)",
                "Draw no bet",
                "Asian handicap",
                "European handicap",
                "Correct score",
                "Half time / full time",
                "Odd/Even total"
              ]
            },
            "default": [
              "HOME_DRAW_AWAY",
              "HOME_AWAY"
            ]
          },
          "includeAllPeriods": {
            "title": "Include half, quarter, period and set markets",
            "type": "boolean",
            "description": "Off: only whole-match markets (full time, and full time including overtime). On: also first half, second half, quarters, periods and sets.",
            "default": false
          },
          "bookmakers": {
            "title": "Bookmakers",
            "type": "array",
            "description": "Keep only bookmakers whose name contains any of these words, case-insensitive (for example \"bet365\", \"William Hill\"). Empty keeps every bookmaker Flashscore shows for the chosen country.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "bookmakerCountry": {
            "title": "Bookmaker country",
            "enum": [
              "GB",
              "IE",
              "US",
              "CA",
              "DE",
              "IT",
              "ES",
              "PL",
              "NG",
              "IN",
              "AU"
            ],
            "type": "string",
            "description": "Flashscore shows a different bookmaker list in each country. Choose whose list to export. The United Kingdom has the most bookmakers.",
            "default": "GB"
          },
          "maxMatches": {
            "title": "Maximum matches",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Most matches to fetch odds for in this run, across all sports and days. Matches with no odds for the chosen filters count toward it but produce no rows. You pay per odds row, not per match.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}