{
  "openapi": "3.0.1",
  "info": {
    "title": "BetRivers Odds & Player Props Scraper (+ Unibet, LeoVegas)",
    "description": "Collect BetRivers (PA, NJ) odds and player props: moneyline, spread and total per game, plus opt-in props, team totals and alternate lines. Unibet, LeoVegas and more books in the same run. One row per market per book with American and decimal odds and implied probability.",
    "version": "0.1",
    "x-build-id": "AAVoAYxwvauPAd8U1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automatic~betrivers-odds-player-props/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automatic-betrivers-odds-player-props",
        "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/automatic~betrivers-odds-player-props/runs": {
      "post": {
        "operationId": "runs-sync-automatic-betrivers-odds-player-props",
        "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/automatic~betrivers-odds-player-props/run-sync": {
      "post": {
        "operationId": "run-sync-automatic-betrivers-odds-player-props",
        "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": {
          "books": {
            "title": "Sportsbooks",
            "uniqueItems": true,
            "type": "array",
            "description": "Books to collect. Omit the field for the default: BetRivers Pennsylvania and BetRivers New Jersey. Each book costs one request per league. An explicit empty list or null is invalid.",
            "items": {
              "type": "string",
              "enum": [
                "betrivers_pa",
                "betrivers_nj",
                "betrivers_pa_2",
                "unibet",
                "unibet_uk",
                "unibet_ca",
                "leovegas_se",
                "paf",
                "atg_se",
                "svenskaspel_se",
                "kambi_reference"
              ],
              "enumTitles": [
                "BetRivers (PA)",
                "BetRivers (NJ)",
                "BetRivers (PA, second operator feed)",
                "Unibet (international)",
                "Unibet (UK)",
                "Unibet (Canada)",
                "LeoVegas (Sweden)",
                "Paf",
                "ATG (Sweden)",
                "Svenska Spel (Sweden)",
                "Kambi reference offering"
              ]
            }
          },
          "leagues": {
            "title": "Leagues",
            "uniqueItems": true,
            "type": "array",
            "description": "League keys to collect: nfl, ncaaf, nba, wnba, ncaab, ncaaw, euroleague, mlb, nhl, epl, laliga, seriea, bundesliga, ligue_1, ucl, uel, mls, liga_mx, brasileirao, argentina_primera, eredivisie, primeira_liga, belgian_pro_league, scottish_premiership, super_lig, ufc. A competition without a key can be named by its native path, for example football/england/the_championship; its rows have league null. Omit the field to collect the default scope (NFL, NBA, NHL and MLB); that default run stops with a clear message when none of them has an upcoming game in the date window. An explicit empty list or null is invalid.",
            "items": {
              "type": "string"
            }
          },
          "marketFamilies": {
            "title": "Markets",
            "uniqueItems": true,
            "type": "array",
            "description": "moneyline (two-way, and three-way where the book offers a draw), spreads and totals are the main lines and cost one request per league per book. team_totals and props (player and game props) are read from each event's full market list, which costs one more request per event.",
            "items": {
              "type": "string",
              "enum": [
                "moneyline",
                "spreads",
                "totals",
                "team_totals",
                "props"
              ],
              "enumTitles": [
                "Moneyline",
                "Spreads",
                "Totals",
                "Team totals",
                "Props (player and game)"
              ]
            }
          },
          "periods": {
            "title": "Periods",
            "uniqueItems": true,
            "type": "array",
            "description": "game is the full game. Halves, quarters and hockey periods are read from each event's full market list (one more request per event). Quarter N and period N are both the N-th period.",
            "items": {
              "type": "string",
              "enum": [
                "game",
                "first_half",
                "first_period",
                "second_period",
                "third_period",
                "fourth_period",
                "first_five_innings"
              ],
              "enumTitles": [
                "Full game",
                "First half",
                "First quarter / period",
                "Second quarter / period",
                "Third quarter / period",
                "Fourth quarter",
                "First five innings"
              ]
            }
          },
          "mainLineOnly": {
            "title": "Main line only",
            "type": "boolean",
            "description": "Keep one spread and one total per game: the line the book marks as its main line. Turn off to also collect alternate lines and player milestone ladders (one more request per event)."
          },
          "eventMarkets": {
            "title": "Read each event's full market list",
            "type": "boolean",
            "description": "One more request per event per book. Turned on automatically by team_totals, props, a period other than game, or main line only off. Turn it on by hand for soccer handicaps, which the cheap list does not carry."
          },
          "includeRegulationTime": {
            "title": "Include regulation-time lines",
            "type": "boolean",
            "description": "In hockey, basketball, American football and baseball the standard spread and total include overtime. Some books also (or only) offer lines settled on regulation time. They are a different market from the standard line at the same number, so they are left out by default; turn this on to collect them (includesOvertime is false on those records)."
          },
          "includeLive": {
            "title": "Include games in play",
            "type": "boolean",
            "description": "By default only games that have not started are collected. Turn on to also collect games in play (flagged live: true); their prices change within seconds and are often suspended."
          },
          "dateFrom": {
            "title": "First day",
            "type": "string",
            "description": "First game day to collect, as YYYY-MM-DD (US Eastern calendar day). Omit both dates for today and the next 7 days. With only this date set, that single day is collected. Empty strings and null are invalid."
          },
          "dateTo": {
            "title": "Last day",
            "type": "string",
            "description": "Last game day to collect, as YYYY-MM-DD. A window may cover at most 120 days. Empty strings and null are invalid; omit the field for its default."
          },
          "maxEvents": {
            "title": "Maximum events per league per book",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Soonest games first. Defaults to 50, or to 5 when each event's full market list is read. Books x leagues x this number may not exceed 120 when the full market list is read."
          },
          "maxResults": {
            "title": "Maximum records",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum dataset records per run. One record is one market for one game at one book. Bare input is a 20-record sample. The Console prefill is 20; explicit inputs without this field use 1000."
          },
          "requestDelaySecs": {
            "title": "Seconds between requests",
            "minimum": 0.5,
            "maximum": 10,
            "type": "number",
            "description": "Pause between request starts. Keep at 1 or higher."
          },
          "proxyConfiguration": {
            "title": "Proxy connection (optional)",
            "type": "object",
            "description": "Apify Proxy with country US by default on the platform; local runs connect directly unless explicitly configured. Set useApifyProxy false for a direct platform connection. If a book refuses the connection, choose another group or country. No separate compute or proxy charge under pay per event."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}