{
  "openapi": "3.0.1",
  "info": {
    "title": "VegasInsider Odds Scraper: NFL, NBA, MLB & NHL Lines as JSON",
    "description": "Extract spread, total, and moneyline odds from VegasInsider for NFL, NBA, MLB, and NHL. Compare bet365, BetMGM, DraftKings, FanDuel, Caesars, and 3 more books plus the site's own Consensus line, per game. Flat $0.0069/game, not an 11-event maze. Optional consensus picks and line-movement tracking.",
    "version": "0.1",
    "x-build-id": "kSXehI7CfKecq17cY"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/getascraper~vegasinsider-odds-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-getascraper-vegasinsider-odds-scraper",
        "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/getascraper~vegasinsider-odds-scraper/runs": {
      "post": {
        "operationId": "runs-sync-getascraper-vegasinsider-odds-scraper",
        "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/getascraper~vegasinsider-odds-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-getascraper-vegasinsider-odds-scraper",
        "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": {
          "leagues": {
            "title": "Leagues",
            "type": "array",
            "description": "Which VegasInsider odds boards to scrape. Each league maps to its own odds board, for example vegasinsider.com/nfl/odds/las-vegas/.",
            "items": {
              "type": "string",
              "enum": [
                "nfl",
                "nba",
                "mlb",
                "nhl",
                "ncaaf",
                "ncaab",
                "wnba"
              ],
              "enumTitles": [
                "NFL",
                "NBA",
                "MLB",
                "NHL",
                "College Football",
                "College Basketball",
                "WNBA"
              ]
            },
            "default": [
              "nfl"
            ]
          },
          "maxGamesPerLeague": {
            "title": "Max Games Per League",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum number of upcoming games to return for each selected league. Kept low by default so a first run finishes in minutes; raise it once you know how long a full slate takes.",
            "default": 15
          },
          "sportsbooks": {
            "title": "Sportsbooks",
            "type": "array",
            "description": "Which of the tracked sportsbook lines (plus the site's own Consensus line) to include for each game. Unlike the closest existing VegasInsider Actor on the Store, this does not charge separately per book, so narrowing this list is purely about trimming output, not saving money.",
            "items": {
              "type": "string",
              "enum": [
                "bet365",
                "betmgm",
                "draftkings",
                "caesars",
                "fanduel",
                "hardrock",
                "fanatics",
                "betrivers",
                "consensus"
              ],
              "enumTitles": [
                "Bet365",
                "BetMGM",
                "DraftKings",
                "Caesars",
                "FanDuel",
                "Hard Rock Bet",
                "Fanatics",
                "BetRivers",
                "Consensus"
              ]
            },
            "default": [
              "bet365",
              "betmgm",
              "draftkings",
              "caesars",
              "fanduel",
              "hardrock",
              "fanatics",
              "betrivers",
              "consensus"
            ]
          },
          "betTypes": {
            "title": "Bet Types",
            "type": "array",
            "description": "Which pregame bet markets to include for each game: point spread, total (over/under), and moneyline.",
            "items": {
              "type": "string",
              "enum": [
                "spread",
                "total",
                "moneyline"
              ],
              "enumTitles": [
                "Spread",
                "Total (Over/Under)",
                "Moneyline"
              ]
            },
            "default": [
              "spread",
              "total",
              "moneyline"
            ]
          },
          "includeOpeningLine": {
            "title": "Include Opening Line",
            "type": "boolean",
            "description": "Include each book's opening line alongside its current line. This adds no extra requests since the opening line is already present on the same odds board page.",
            "default": true
          },
          "fetchConsensusPicks": {
            "title": "Fetch Expert Consensus Picks",
            "type": "boolean",
            "description": "For each league, also visit its Consensus Picks page and attach the percentage breakdown of expert handicapper selections per game. This is a separate page render per league, so it is off by default to keep the default run fast.",
            "default": false
          },
          "monitorMode": {
            "title": "Monitor Mode (Line Movement)",
            "type": "boolean",
            "description": "Only output games whose spread, total, or moneyline has moved since the last run that used the same Monitor State Name. Pregame lines move constantly, so this is the natural way to run this Actor on a schedule instead of as a one-off lookup.",
            "default": false
          },
          "monitorStateName": {
            "title": "Monitor State Name",
            "type": "string",
            "description": "Name of the key-value store used to remember each game's lines between scheduled runs when Monitor Mode is on. Only change this if you are running multiple independent schedules and need separate line-movement histories for each.",
            "default": "vegasinsider-line-monitor"
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "vegasinsider.com returned HTTP 403 Forbidden to both a plain HTTP request and a real headless Chrome browser from a datacenter-class IP in live testing, so Residential proxy is the required default here. Do not switch this to Datacenter unless you have separately confirmed it still works.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}