{
  "openapi": "3.0.1",
  "info": {
    "title": "Baltic & Latvian Sports Odds: Optibet, OlyBet, Betsafe, Pafbet",
    "description": "Scrape Latvian pre-match odds from Optibet, OlyBet, Betsafe, Pafbet and more. Football, basketball, hockey and tennis; coverage varies by book. Flat JSON/CSV/Excel selections with optional best-price, margin and arbitrage comparisons. No sportsbook login or third-party odds API key.",
    "version": "0.2",
    "x-build-id": "YbgkCFLvSmF8wNfAU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/stacklark~baltic-bookmaker-odds/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-stacklark-baltic-bookmaker-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/stacklark~baltic-bookmaker-odds/runs": {
      "post": {
        "operationId": "runs-sync-stacklark-baltic-bookmaker-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/stacklark~baltic-bookmaker-odds/run-sync": {
      "post": {
        "operationId": "run-sync-stacklark-baltic-bookmaker-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": {
          "country": {
            "title": "Country",
            "enum": [
              "lv"
            ],
            "type": "string",
            "description": "Latvia is available now. Lithuania and Estonia are planned updates; comparisons stay within one country.",
            "default": "lv"
          },
          "sports": {
            "title": "Sports",
            "type": "array",
            "description": "Football by default. Sports coverage varies by bookmaker; unsupported books are skipped and reported in RUN_SUMMARY. See README for the coverage table.",
            "items": {
              "type": "string",
              "enum": [
                "football",
                "basketball",
                "ice_hockey",
                "tennis",
                "mma",
                "esports",
                "handball",
                "volleyball",
                "table_tennis",
                "american_football"
              ]
            },
            "default": [
              "football"
            ]
          },
          "eventQuery": {
            "title": "Match or team (optional)",
            "maxLength": 200,
            "type": "string",
            "description": "Team name or both teams separated by vs, e.g. Real Madrid vs PSV. Case/accent-insensitive whole words; no guessed aliases or spelling correction. Senior-team searches exclude youth/women/reserves unless specified. Search stays within Hours ahead, sports and competition filters.",
            "default": ""
          },
          "selection": {
            "title": "Selection or team (optional)",
            "maxLength": 200,
            "type": "string",
            "description": "Team to win, e.g. Real Madrid, or home/away/draw/over/under/yes/no. A team name selects match-winner markets only (1x2/moneyline). Leave blank for all selections. Ambiguous team names do not choose a side.",
            "default": ""
          },
          "bestOddsOnly": {
            "title": "Show only highest odds",
            "type": "boolean",
            "description": "Return only the highest price per event, selection, market, line and settlement scope across the collected country books. Tied best books are retained. Full markets are compared before filtering; only saved rows are charged. Works even when Include comparison is off. Unknown settlement scope is excluded.",
            "default": false
          },
          "stake": {
            "title": "Stake for potential return (optional)",
            "minimum": 0,
            "maximum": 1000000,
            "type": "number",
            "description": "0 disables the calculation. Otherwise adds stake_amount, potential_return (including stake) and potential_profit, rounded to two decimals, in the same currency units you enter. Assumes a full win at the recorded price; no guarantee of a win, price availability or payout.",
            "default": 0
          },
          "useBrowserFallback": {
            "title": "Use optional browser fallback",
            "type": "boolean",
            "description": "Allow an isolated browser when a selected source rejects HTTP. Requires browser dependencies and at least 1024 MB memory. No proxies configured by default.",
            "default": false
          },
          "matchedOnly": {
            "title": "Only events on two or more books",
            "type": "boolean",
            "description": "Return only events with quotes from at least two selected books.",
            "default": true
          },
          "bookmakers": {
            "title": "Bookmakers",
            "type": "array",
            "description": "Empty selects the fast default Latvian HTTP books. Spelet is opt-in because its full league catalogue is slower; select it explicitly and set matchedOnly=false for a single-book run. Cross-country selections are rejected.",
            "items": {
              "type": "string",
              "enum": [
                "aladins",
                "betsafe",
                "casino777",
                "fenikss",
                "klondaika",
                "laimz",
                "luckybet",
                "lvbet",
                "olybet",
                "optibet",
                "paf",
                "11.lv",
                "x3000",
                "7bet.lv",
                "spelet",
                "spins",
                "synottip",
                "joker",
                "tonybet"
              ],
              "enumTitles": [
                "Aladins Latvia",
                "Betsafe / Triobet Latvia",
                "Casino777 Latvia",
                "Fenikss Latvia",
                "Klondaika Latvia",
                "Laimz Latvia",
                "Luckybet Latvia",
                "LVBet Latvia",
                "OlyBet Latvia",
                "Optibet Latvia (HTTP first, optional browser)",
                "Pafbet Latvia",
                "11.lv Latvia",
                "X3000 Latvia",
                "7bet Latvia",
                "Spelet Latvia (optional slower catalogue)",
                "Spins Latvia",
                "Synottip Latvia",
                "Joker.lv Latvia",
                "Tonybet Latvia"
              ]
            },
            "default": []
          },
          "competitions": {
            "title": "Competitions (optional)",
            "type": "array",
            "description": "Case/accent-insensitive competition-name substrings. Empty includes all competitions for requested sports.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "hoursAhead": {
            "title": "Hours ahead",
            "minimum": 1,
            "maximum": 168,
            "type": "integer",
            "description": "Upcoming pre-match events within this UTC window.",
            "default": 24
          },
          "markets": {
            "title": "Markets",
            "type": "array",
            "description": "Verified full-match markets where offered. Totals retain all lines. Moneyline covers two-way winners; 1x2 covers three-way results. Handicaps use a shared HOME line for both selections.",
            "items": {
              "type": "string",
              "enum": [
                "1x2",
                "moneyline",
                "totals",
                "btts",
                "handicap"
              ],
              "enumTitles": [
                "1x2",
                "Two-way winner",
                "Over / under",
                "Both teams to score",
                "Two-way handicap"
              ]
            },
            "default": [
              "1x2",
              "moneyline",
              "totals"
            ]
          },
          "includeComparison": {
            "title": "Include comparison",
            "type": "boolean",
            "description": "Best Baltic prices, margins, indicative arbitrage and Pinnacle guest no-vig edges. The reference can fail independently.",
            "default": true
          },
          "maxEvents": {
            "title": "Maximum matched events",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Global cap on distinct matched Baltic events across all books. Billing is per selection row, so this is not a dollar or row cap.",
            "default": 50
          },
          "includeVirtuals": {
            "title": "Include virtual/simulated sport",
            "type": "boolean",
            "description": "Include FIFA-style simulated football and other virtual sport. Real esports such as CS2 are selected separately under sports. Default false.",
            "default": false
          },
          "includeReference": {
            "title": "Include Pinnacle reference",
            "type": "boolean",
            "description": "Optional delayed guest reference for football. Independent of local best-price and arbitrage calculations; unavailable reference fields stay null.",
            "default": true
          },
          "marketsBySport": {
            "title": "Markets by sport (optional)",
            "type": "object",
            "description": "Overrides the Markets setting per sport, e.g. {\"tennis\":[\"moneyline\",\"totals\",\"handicap\"]}. Omitted sports use Markets.",
            "default": {},
            "additionalProperties": true
          },
          "proxyConfiguration": {
            "title": "Regional proxy fallback",
            "type": "object",
            "description": "Used only after a supported feed denies direct access. Apify cloud defaults to Latvian residential egress; local runs stay direct unless custom proxy URLs are supplied. Disable Use Apify Proxy to opt out. Regional proxy traffic adds platform usage.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "LV"
            }
          },
          "maxRows": {
            "title": "Maximum selection rows",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Billable-row ceiling applied after selection/best-odds filters. Keeps whole events in the filtered output, including tied best books. 0 disables the ceiling. Source/proxy collection still occurs before output filtering; use Apify maximum total charge for a monetary cap.",
            "default": 3000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}