{
  "openapi": "3.0.1",
  "info": {
    "title": "Flashscore Odds Movement & Closing Line Tracker",
    "description": "Track betting line movement on Flashscore. Run it on a schedule: each run snapshots pre-match odds from 100+ bookmakers and returns only the prices that moved, with previous, current and opening odds, plus closing lines at kick-off. 1X2, totals, handicaps, 21 sports.",
    "version": "1.0",
    "x-build-id": "cQBd8waSuYWVXaeur"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/incognito_mode~flashscore-odds-tracker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-incognito_mode-flashscore-odds-tracker",
        "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/incognito_mode~flashscore-odds-tracker/runs": {
      "post": {
        "operationId": "runs-sync-incognito_mode-flashscore-odds-tracker",
        "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/incognito_mode~flashscore-odds-tracker/run-sync": {
      "post": {
        "operationId": "run-sync-incognito_mode-flashscore-odds-tracker",
        "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": {
          "trackerName": {
            "title": "Tracker name",
            "type": "string",
            "description": "Names the tracker's memory: runs with the same name share one key-value store (flashscore-odds-tracker-{name}) and compare against each other's snapshots. Use one name per schedule, e.g. premier-league. Letters, digits and hyphens, up to 30 characters.",
            "default": "default"
          },
          "sports": {
            "title": "Sports",
            "type": "array",
            "description": "Which sports to follow. Ignored when Match IDs are given.",
            "items": {
              "type": "string",
              "enum": [
                "football",
                "tennis",
                "basketball",
                "hockey",
                "american-football",
                "baseball",
                "handball",
                "volleyball",
                "rugby-union",
                "rugby-league",
                "cricket",
                "futsal",
                "floorball",
                "aussie-rules",
                "badminton",
                "water-polo",
                "field-hockey",
                "table-tennis",
                "boxing",
                "mma",
                "esports"
              ],
              "enumTitles": [
                "Football (soccer)",
                "Tennis",
                "Basketball",
                "Ice hockey",
                "American football",
                "Baseball",
                "Handball",
                "Volleyball",
                "Rugby union",
                "Rugby league",
                "Cricket",
                "Futsal",
                "Floorball",
                "Aussie rules",
                "Badminton",
                "Water polo",
                "Field hockey",
                "Table tennis",
                "Boxing",
                "MMA",
                "Esports"
              ]
            },
            "default": [
              "football"
            ]
          },
          "leagues": {
            "title": "Leagues",
            "type": "array",
            "description": "Only matches from these competitions — strongly recommended, since every sport lists hundreds of minor fixtures a day. Either part of the name as Flashscore shows it (\"ENGLAND: Premier League\") or a Flashscore league URL, which matches exactly. Leave empty for every competition.",
            "items": {
              "type": "string"
            }
          },
          "matchIds": {
            "title": "Match IDs or URLs",
            "type": "array",
            "description": "Follow specific matches instead of leagues: the 8-character id (MNThRu6l) or any Flashscore match URL. Each is tracked until kick-off, whenever that is. When set, Sports, Leagues and Horizon are ignored.",
            "items": {
              "type": "string"
            }
          },
          "horizonHours": {
            "title": "Horizon",
            "minimum": 1,
            "maximum": 168,
            "type": "integer",
            "description": "Follow matches starting within this many hours. A match enters tracking when it comes into the horizon and leaves at kick-off, when its closing line is written. Up to 168 (7 days), the furthest Flashscore lists.",
            "default": 24
          },
          "bookmakerCountries": {
            "title": "Bookmaker countries",
            "type": "array",
            "description": "Flashscore shows the bookmakers licensed in one country at a time. List several and their bookmakers are merged, each bookmaker once: GB alone is about 20 bookmakers. Two-letter codes; per-state markets take a region (US-NJ, US-PA, CA-ON). Each country is one extra request per match per run.",
            "default": [
              "GB"
            ],
            "items": {
              "type": "string"
            }
          },
          "bookmakers": {
            "title": "Bookmakers",
            "type": "array",
            "description": "Only these bookmakers, by part of the name or by numeric id. \"bet365\" also matches bet365.it and bet365.us. Leave empty for every bookmaker in the chosen countries.",
            "items": {
              "type": "string"
            }
          },
          "markets": {
            "title": "Markets",
            "type": "array",
            "description": "Which betting markets to track. Every market multiplies what can move: correct score alone is 25 outcomes per bookmaker.",
            "items": {
              "type": "string",
              "enum": [
                "HOME_DRAW_AWAY",
                "HOME_AWAY",
                "OVER_UNDER",
                "ASIAN_HANDICAP",
                "BOTH_TEAMS_TO_SCORE",
                "DRAW_NO_BET",
                "DOUBLE_CHANCE",
                "EUROPEAN_HANDICAP",
                "CORRECT_SCORE",
                "HALF_FULL_TIME",
                "ODD_OR_EVEN"
              ],
              "enumTitles": [
                "1X2 (home / draw / away)",
                "Moneyline (home / away)",
                "Over / under",
                "Asian handicap",
                "Both teams to score",
                "Draw no bet",
                "Double chance",
                "European handicap",
                "Correct score",
                "Half-time / full-time",
                "Odd / even"
              ]
            },
            "default": [
              "HOME_DRAW_AWAY",
              "HOME_AWAY",
              "OVER_UNDER",
              "ASIAN_HANDICAP"
            ]
          },
          "periods": {
            "title": "Periods",
            "type": "array",
            "description": "Which part of the match: FULL_TIME, FIRST_HALF, SECOND_HALF, FULL_TIME_OVER_TIME (including overtime), FIRST_SET, SECOND_SET. An empty list returns every period.",
            "default": [
              "FULL_TIME"
            ],
            "items": {
              "type": "string"
            }
          },
          "lines": {
            "title": "Lines",
            "enum": [
              "main",
              "all"
            ],
            "type": "string",
            "description": "Over/under and handicap markets come in many lines per bookmaker. \"Main line only\" follows the one each bookmaker prices closest to even money, so a move from 2.5 to 2.75 goals is reported as a line movement. \"All lines\" follows every line separately and reports 5-10 times the rows.",
            "default": "main"
          },
          "minChangePercent": {
            "title": "Minimum price change (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only report a line once one of its prices has moved at least this much since it was last reported. Small drifts add up: 1.90 → 1.88 → 1.86 → 1.84 is reported at a 3% threshold once the total move reaches 3%. 0 reports every change.",
            "default": 0
          },
          "emitFirstSeen": {
            "title": "Report lines the first time they are seen",
            "type": "boolean",
            "description": "The first run of a tracker, and every match as it enters the horizon, reports each line once with its current and opening price: the baseline later movements are measured from. Turn off to report only movements observed by the tracker itself.",
            "default": true
          },
          "emitClosingLines": {
            "title": "Write closing lines",
            "type": "boolean",
            "description": "After kick-off, write every tracked line's closing price (Flashscore freezes pre-match odds at kick-off) next to the last price the tracker saw and the opening price — the data for closing-line value.",
            "default": true
          },
          "historyDatasetName": {
            "title": "History dataset",
            "type": "string",
            "description": "Also append every reported row to this named dataset, so a schedule builds one continuous history instead of one dataset per run. Letters, digits and hyphens, e.g. odds-history-epl. Leave empty to use only each run's own dataset."
          },
          "maxMatches": {
            "title": "Maximum matches",
            "minimum": 1,
            "type": "integer",
            "description": "Follow at most this many matches per run, soonest kick-off first. Matches with no odds yet do not count.",
            "default": 50
          },
          "maxItems": {
            "title": "Maximum rows per run",
            "minimum": 1,
            "type": "integer",
            "description": "Hard cap on charged rows per run. Anything over it is not lost: unreported movements and closing lines are carried to the next run.",
            "default": 5000
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Leave this off. Flashscore's data is reachable directly, and the bookmaker country is chosen above, not by IP — a proxy adds cost and no bookmakers. A datacenter IP is tried automatically only if a request is actually refused.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}