{
  "openapi": "3.0.1",
  "info": {
    "title": "DraftKings Odds Scraper",
    "description": "DraftKings Odds Scraper - sportsbook game lines, player props and futures with American/decimal odds, betting splits, fair probabilities, sharp-book edges, Pick6 player props, DFS contests and salaries, and prediction-market prices.",
    "version": "1.0",
    "x-build-id": "7GsfDQqp9GPNWlFvM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~draftkings-odds-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-draftkings-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~draftkings-odds-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-draftkings-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~draftkings-odds-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-draftkings-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": {
          "dataTypes": {
            "title": "What to scrape",
            "type": "array",
            "description": "Pick one or more data types. Each type writes its own rows (the `dataType` column tells them apart).",
            "items": {
              "type": "string",
              "enum": [
                "gameLines",
                "games",
                "playerProps",
                "futures",
                "pick6",
                "dfsContests",
                "dfsPlayers",
                "predictionMarkets",
                "leagues"
              ],
              "enumTitles": [
                "Sportsbook game lines (one row per selection)",
                "Games (one row per game, all books and comparisons)",
                "Sportsbook player props",
                "Futures (champion, awards, season wins)",
                "Pick6 player props (more / less, multipliers)",
                "DFS contests",
                "DFS player salaries",
                "Prediction-market game contracts",
                "Leagues list"
              ]
            },
            "default": [
              "gameLines",
              "games"
            ]
          },
          "leagues": {
            "title": "Leagues",
            "type": "array",
            "description": "League names or league ids exactly as DraftKings lists them, e.g. NFL, NBA, NHL, MLB, NCAAF, College Basketball (M), EPL, or ids like 88808. \"ALL\" = every league that has odds right now.",
            "default": [
              "NFL",
              "NBA"
            ],
            "items": {
              "type": "string"
            }
          },
          "sport": {
            "title": "Sport (all its leagues)",
            "type": "string",
            "description": "Optional sport name, e.g. Basketball, Football, Hockey, Soccer, Tennis. Adds every league of that sport to the Leagues list.",
            "default": ""
          },
          "maxItems": {
            "title": "Max rows per league and data type",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "How many rows each league gives for each data type (20 x 2 leagues x 2 types = up to 80 rows). Prediction-market rows follow the exchange's own next-page cursor.",
            "default": 100
          },
          "propCategories": {
            "title": "Player prop categories",
            "type": "array",
            "description": "Only these prop tabs, e.g. Player Points, Player Rebounds, Passing Props, Rushing Props. Empty = every tab whose name has 'Player' in it.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "futuresCategories": {
            "title": "Futures categories",
            "type": "array",
            "description": "Only these futures tabs, e.g. Team Futures, Awards, Wins/Playoffs. Empty = every futures-type tab (futures, awards, winners, wins, playoffs, MVP, division, conference).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxPropsPerGame": {
            "title": "Max prop selections per game",
            "minimum": 0,
            "type": "integer",
            "description": "Cap on player-prop selections per game, so one game does not use the whole limit. 0 = no cap.",
            "default": 0
          },
          "eventIds": {
            "title": "Event ids",
            "type": "array",
            "description": "Only these sportsbook event ids (the number in a game link, e.g. 35056398).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "teams": {
            "title": "Teams",
            "type": "array",
            "description": "Only games of these teams (any part of the name or the abbreviation, e.g. Lakers, KC, Celtics).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "playerNames": {
            "title": "Player names",
            "type": "array",
            "description": "Only props, Pick6 lines and DFS salaries of these players (any part of the name, e.g. Mahomes, LeBron James).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "statTypes": {
            "title": "Stat types",
            "type": "array",
            "description": "Only these stats for Pick6 and props, e.g. Points, Rebounds, Passing Yards, Strikeouts. Empty = all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "oddsFormat": {
            "title": "Odds format of the odds column",
            "enum": [
              "american",
              "decimal",
              "fractional"
            ],
            "type": "string",
            "description": "Format of the `odds` column. All three formats are always in their own columns as well.",
            "default": "american"
          },
          "includeAlternateLines": {
            "title": "Include alternate lines",
            "type": "boolean",
            "description": "Also return alternate spreads, totals and alternate Pick6 lines. Off = main lines only.",
            "default": false
          },
          "liveOnly": {
            "title": "Live games only",
            "type": "boolean",
            "description": "Only games that are in play right now.",
            "default": false
          },
          "daysAhead": {
            "title": "Days ahead",
            "minimum": 0,
            "type": "integer",
            "description": "Only games starting within this many days from now. 0 = no limit.",
            "default": 0
          },
          "dateFrom": {
            "title": "Start date from",
            "type": "string",
            "description": "Only games starting on or after this date (YYYY-MM-DD).",
            "default": ""
          },
          "dateTo": {
            "title": "Start date to",
            "type": "string",
            "description": "Only games starting on or before this date (YYYY-MM-DD).",
            "default": ""
          },
          "includeBettingSplits": {
            "title": "Include betting splits",
            "type": "boolean",
            "description": "Add `handlePercent` (share of money) and `betsPercent` (share of tickets) for moneyline, spread and total selections.",
            "default": true
          },
          "compareWithSharpBook": {
            "title": "Compare with a sharp book (edges, arbitrage)",
            "type": "boolean",
            "description": "Price each game at Pinnacle too: no-vig fair probabilities, edge % of every DraftKings price, value bets, arbitrage check and the sharp book's limit.",
            "default": true
          },
          "minEdgePercent": {
            "title": "Minimum edge % for value bets",
            "type": "number",
            "description": "A DraftKings price is listed in `valueBets` when its edge over the sharp fair price is at least this many percent.",
            "default": 1
          },
          "includePredictionMarkets": {
            "title": "Add prediction-market prices to games",
            "type": "boolean",
            "description": "Add each game's prediction-market contract prices (bid, ask, last trade, volume) to the games rows.",
            "default": true
          },
          "kalshiSeries": {
            "title": "Prediction-market series",
            "type": "array",
            "description": "Series tickers for the prediction-market rows, e.g. KXNFLGAME, KXNBAGAME, KXNHLGAME. Empty = the game series of the chosen leagues.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeOpeningLines": {
            "title": "Track opening lines and movement",
            "type": "boolean",
            "description": "Remember the first price and line seen for every game and return opening prices and movement on later runs.",
            "default": true
          },
          "historyStoreName": {
            "title": "Line history store name",
            "type": "string",
            "description": "Named key-value store that keeps the opening lines between runs. Use one name per watch list.",
            "default": "draftkings-odds-history"
          },
          "includeGameInfo": {
            "title": "Include venue, week and game links",
            "type": "boolean",
            "description": "Add venue, week number, status text and a game-center link to game rows.",
            "default": true
          },
          "dfsGameTypes": {
            "title": "DFS game types",
            "type": "array",
            "description": "Only these DFS contest styles, e.g. Classic, Showdown Captain Mode, Tiers. Empty = all.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "draftGroupIds": {
            "title": "DFS draft group ids",
            "type": "array",
            "description": "DFS salary slates to read for DFS player rows (the dg number of a contest). Empty = the main slates of each league.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeContestDetails": {
            "title": "Include DFS contest details",
            "type": "boolean",
            "description": "Open every DFS contest for its payout table (first-place prize, paid positions), salary cap and late-swap rule.",
            "default": true
          },
          "minEntryFee": {
            "title": "DFS minimum entry fee ($)",
            "type": "number",
            "description": "Only DFS contests with at least this entry fee. 0 = off.",
            "default": 0
          },
          "maxEntryFee": {
            "title": "DFS maximum entry fee ($)",
            "type": "number",
            "description": "Only DFS contests with at most this entry fee. 0 = off.",
            "default": 0
          },
          "maxConcurrency": {
            "title": "Parallel jobs",
            "minimum": 1,
            "maximum": 32,
            "type": "integer",
            "description": "How many league / data-type jobs run at the same time, each on its own connection. 8 is fast and polite.",
            "default": 8
          },
          "usState": {
            "title": "Sportsbook state",
            "enum": [
              "NJ",
              "NY",
              "PA",
              "OH",
              "MI",
              "IL",
              "MA",
              "AZ",
              "CO",
              "VA",
              "IN",
              "TN",
              "NC",
              "ON"
            ],
            "type": "string",
            "description": "The state whose DraftKings book is priced (lines can differ slightly by state). ON = Ontario, Canada.",
            "default": "NJ"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy. US residential IPs are needed and used by default.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}