{
  "openapi": "3.0.1",
  "info": {
    "title": "Sports Betting Odds Scraper",
    "description": "Sports Betting Odds Scraper SD - Sports Betting Odds Scraper is a sports data tool that extracts moneyline, spread, total, team-total and prop odds from ESPN (DraftKings lines with opening prices), Pinnacle and Bovada, with best price, no-vig fair odds, edge and arbitrage.",
    "version": "1.0",
    "x-build-id": "A1dPUiOMQzbknzieN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~sports-betting-odds-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-sports-betting-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/neuro-scraper~sports-betting-odds-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-sports-betting-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/neuro-scraper~sports-betting-odds-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-sports-betting-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": "League keys: nfl, ncaaf, cfl, nba, wnba, ncaab, euroleague, mlb, nhl, mls, epl, championship, laliga, seriea, bundesliga, ligue1, ucl, uel, ufc. Any other ESPN league works as an ESPN path for the ESPN book, e.g. soccer/bra.1 or soccer/ned.1.",
            "items": {
              "type": "string"
            }
          },
          "sports": {
            "title": "Sports (every league of the sport)",
            "type": "array",
            "description": "Whole sports from Pinnacle and Bovada, league by league in each site's own menu order (featured leagues first) up to 'Max events per league / sport': football, basketball, baseball, hockey, soccer, tennis, mma, boxing, golf, cricket, esports, darts, handball, volleyball, rugby-union, rugby-league, aussie-rules, table-tennis, snooker. ESPN needs a league, so it is not used here.",
            "items": {
              "type": "string"
            }
          },
          "eventUrls": {
            "title": "Event URLs",
            "type": "array",
            "description": "Single games: a Pinnacle event link (https://www.pinnacle.com/en/football/nfl/.../1637432962/) or a Bovada event link (https://www.bovada.lv/sports/football/nfl/philadelphia-eagles-jacksonville-jaguars-202610110930).",
            "items": {
              "type": "string"
            }
          },
          "books": {
            "title": "Sportsbooks",
            "type": "array",
            "description": "espn = ESPN's odds feed (DraftKings lines today, with opening prices, scores and logos); pinnacle = Pinnacle (sharp lines, limits, alternates, props); bovada = Bovada.",
            "items": {
              "type": "string",
              "enum": [
                "espn",
                "pinnacle",
                "bovada"
              ],
              "enumTitles": [
                "ESPN odds feed (DraftKings lines)",
                "Pinnacle",
                "Bovada"
              ]
            },
            "default": [
              "espn",
              "pinnacle",
              "bovada"
            ]
          },
          "markets": {
            "title": "Markets",
            "type": "array",
            "description": "h2h = moneyline (with the draw in soccer), spreads = point spread / run line / puck line / handicap, totals = over/under, team_totals, player_props and specials (game props, futures, outrights - Pinnacle).",
            "items": {
              "type": "string",
              "enum": [
                "h2h",
                "spreads",
                "totals",
                "team_totals",
                "player_props",
                "specials"
              ],
              "enumTitles": [
                "Moneyline (h2h)",
                "Spreads",
                "Totals (over/under)",
                "Team totals",
                "Player props",
                "Specials / futures"
              ]
            },
            "default": [
              "h2h",
              "spreads",
              "totals"
            ]
          },
          "periods": {
            "title": "Periods",
            "type": "array",
            "description": "game = full game; first_half = 1st half (1st period in hockey, first 5 innings in baseball, 1st set in tennis); other = quarters and other periods. Periods other than the full game come from Pinnacle (and Bovada where its main coupon lists them).",
            "items": {
              "type": "string",
              "enum": [
                "game",
                "first_half",
                "other"
              ],
              "enumTitles": [
                "Full game",
                "First half / period",
                "Other periods"
              ]
            },
            "default": [
              "game"
            ]
          },
          "includeAlternateLines": {
            "title": "Include alternate spreads & totals",
            "type": "boolean",
            "description": "Adds Pinnacle's alternate spread and total lines (many more rows).",
            "default": false
          },
          "statusFilter": {
            "title": "Game status",
            "enum": [
              "all",
              "scheduled",
              "live",
              "final"
            ],
            "type": "string",
            "description": "all, scheduled (pre-match only), live (in-play now) or final (finished games with ESPN closing lines - give a past date range).",
            "default": "all"
          },
          "dateFrom": {
            "title": "Date from",
            "type": "string",
            "description": "YYYY-MM-DD (UTC). ESPN is read one day per page from this date; Pinnacle and Bovada games are filtered to the window. Empty = ESPN's current slate and every open game."
          },
          "dateTo": {
            "title": "Date to",
            "type": "string",
            "description": "YYYY-MM-DD (UTC). Empty = same as Date from. At most 62 days."
          },
          "lookAheadHours": {
            "title": "Look-ahead window (hours)",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Only games starting within this many hours from now (0 = no limit).",
            "default": 0
          },
          "team": {
            "title": "Team",
            "type": "string",
            "description": "Only games whose home or away team contains this text, e.g. Eagles."
          },
          "oddsFormat": {
            "title": "Odds format",
            "enum": [
              "american",
              "decimal",
              "fractional",
              "probability"
            ],
            "type": "string",
            "description": "Format of the price columns (price, bestPrice, openPrice, fair prices). priceAmerican, priceDecimal and priceFractional are always included.",
            "default": "american"
          },
          "outputMode": {
            "title": "Output shape",
            "enum": [
              "rows",
              "events"
            ],
            "type": "string",
            "description": "rows = one row per book x market x outcome (spreadsheet friendly); events = one record per game with every book's prices, best price per outcome and arbitrage.",
            "default": "rows"
          },
          "onlyArbitrage": {
            "title": "Only arbitrage",
            "type": "boolean",
            "description": "Keep only markets where the best prices across books add up to an arbitrage (sum of 1/decimal below 1).",
            "default": false
          },
          "minArbitrageProfit": {
            "title": "Min arbitrage profit %",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "With 'Only arbitrage': the smallest guaranteed return in percent, e.g. 0.5.",
            "default": 0
          },
          "onlyValueBets": {
            "title": "Only +EV prices",
            "type": "boolean",
            "description": "Keep only prices that beat Pinnacle's no-vig fair price (edge above 'Min value edge %'). Needs Pinnacle in Sportsbooks.",
            "default": false
          },
          "minValueEdge": {
            "title": "Min value edge %",
            "minimum": 0,
            "maximum": 100,
            "type": "number",
            "description": "Edge = price x Pinnacle fair probability - 1, in percent.",
            "default": 0
          },
          "monitorMode": {
            "title": "Monitoring mode - only new odds and line moves",
            "type": "boolean",
            "description": "Remembers every price in a named key-value store and outputs only prices that are new or moved since the last run, with previous price, change, first-seen price and direction. Schedule the Actor to track line movement.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Name of the memory used by monitoring mode; give each scheduled task its own key.",
            "default": "default"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "date",
              "dateDesc",
              "league"
            ],
            "type": "string",
            "description": "Order of the output within each league or sport.",
            "default": "date"
          },
          "maxEventsPerSport": {
            "title": "Max events per league / sport",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Most games read per league or sport from each book.",
            "default": 50
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Most rows (or games in the events shape) in the dataset; each one is one result.",
            "default": 200
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "All three feeds answered without a proxy in our tests; residential proxy is the default.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}