{
  "openapi": "3.0.1",
  "info": {
    "title": "DraftKings Scraper — Sportsbook Odds, Lines & Player Props",
    "description": "Unofficial DraftKings sportsbook API, no login. Scrape moneylines, spreads, totals, player props, alternate lines and futures for NFL, NBA, MLB, NHL, soccer, tennis, UFC and 270+ leagues: American/decimal/fractional odds, no-vig probability, live scores, price history. JSON, CSV, Excel.",
    "version": "1.0",
    "x-build-id": "zigsNSNlIHtjBvUut"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/logiover~draftkings-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-logiover-draftkings-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/logiover~draftkings-scraper/runs": {
      "post": {
        "operationId": "runs-sync-logiover-draftkings-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/logiover~draftkings-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-logiover-draftkings-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": {
          "sports": {
            "title": "Sports",
            "type": "array",
            "description": "Sport names or ids, one per line: <code>basketball</code>, <code>football</code>, <code>baseball</code>, <code>hockey</code>, <code>soccer</code>, <code>tennis</code>, <code>mma</code>, <code>golf</code>, <code>cricket</code>, <code>motorsports</code>, <code>boxing</code>, <code>darts</code>, <code>table tennis</code>, <code>rugby union</code>, <code>rugby league</code>, <code>handball</code>, <code>e-sports</code>, <code>snooker</code> ... DraftKings adds sports during the year; the run reads its live list. Leave empty for every sport. Ignored when <b>Leagues</b> is filled.",
            "items": {
              "type": "string",
              "enumSuggestedValues": [
                "Basketball",
                "Football",
                "Baseball",
                "Hockey",
                "Soccer",
                "Tennis",
                "MMA",
                "Golf",
                "Cricket",
                "Motorsports",
                "Boxing",
                "Darts",
                "Table Tennis",
                "Rugby Union",
                "Rugby League",
                "Handball",
                "E-Sports",
                "Snooker",
                "Aussie Rules",
                "Lacrosse",
                "Badminton"
              ]
            }
          },
          "leagues": {
            "title": "Leagues",
            "type": "array",
            "description": "League names or ids, one per line: <code>NBA</code>, <code>NFL</code>, <code>College Football</code>, <code>MLB</code>, <code>NHL</code>, <code>Premier League</code>, <code>UFC</code>, <code>42648</code> ... A name matches the league name exactly first, then as a part of it (<code>premier league</code> finds every league with those words). Ids are the <code>leagueId</code> column of any run. Leave empty to use <b>Sports</b>.",
            "items": {
              "type": "string",
              "enumSuggestedValues": [
                "NBA",
                "NFL",
                "MLB",
                "NHL",
                "WNBA",
                "College Football",
                "College Basketball (M)",
                "College Basketball (W)",
                "UFC",
                "Formula 1",
                "NASCAR Cup Series",
                "English Premier League",
                "Champions League",
                "Spain - La Liga",
                "Italy - Serie A",
                "Germany - Bundesliga",
                "France - Ligue 1",
                "Europa League",
                "ATP",
                "WTA",
                "PGA Championship",
                "The Masters",
                "EuroLeague",
                "NRL",
                "AFL",
                "Twenty20 International",
                "Boxing",
                "CFL",
                "PWHL",
                "College Hockey"
              ]
            }
          },
          "marketGroups": {
            "title": "Market groups",
            "type": "array",
            "description": "<b>Game lines</b> — moneyline, spread, total and their alternate lines (the first tab of the event page).<br><b>Player props</b> — every player market: points, yards, strikeouts, goal scorers, milestones, head-to-head.<br><b>Game props</b> — halves, quarters, periods, team totals, correct score, specials, other non-player markets.<br><b>Futures</b> — season-long and tournament markets: champion, MVP, division, win totals, awards, tournament winners.<br>Clear the selection to get all four.",
            "items": {
              "type": "string",
              "enum": [
                "gameLines",
                "playerProps",
                "gameProps",
                "futures"
              ],
              "enumTitles": [
                "Game lines (moneyline, spread, total, alternates)",
                "Player props",
                "Game props (halves, quarters, team props, specials)",
                "Futures & outrights"
              ]
            },
            "default": [
              "gameLines",
              "playerProps",
              "gameProps",
              "futures"
            ]
          },
          "status": {
            "title": "Pre-match or live",
            "enum": [
              "all",
              "prematch",
              "live"
            ],
            "type": "string",
            "description": "<b>All</b> reads upcoming and in-play events, <b>Pre-match</b> only events that have not started, <b>Live</b> only events in play (with score and clock where DraftKings reports them).",
            "default": "all"
          },
          "dateFrom": {
            "title": "Starts on or after",
            "type": "string",
            "description": "Only games that start on or after this day. <code>YYYY-MM-DD</code>, <code>today</code>, <code>tomorrow</code> or <code>+3d</code>. A day matches the kick-off date in UTC or in US Eastern (the sportsbook's own day). Futures are not affected."
          },
          "dateTo": {
            "title": "Starts on or before",
            "type": "string",
            "description": "Only games that start on or before this day. Same formats as <b>Starts on or after</b>."
          },
          "teams": {
            "title": "Teams or players (event filter)",
            "type": "array",
            "description": "Keep only events where one of the participants contains one of these words: <code>Lakers</code>, <code>NE</code>, <code>Djokovic</code>. Case and accents are ignored.",
            "items": {
              "type": "string"
            }
          },
          "players": {
            "title": "Player names (prop filter)",
            "type": "array",
            "description": "Keep only selections of players whose name contains one of these words, e.g. <code>Mahomes</code>, <code>Doncic</code>. Team-only selections are dropped when this is set.",
            "items": {
              "type": "string"
            }
          },
          "marketFilter": {
            "title": "Only these markets",
            "type": "array",
            "description": "Keep a market only if its name, type, tab or section contains one of these words: <code>passing yards</code>, <code>strikeouts</code>, <code>anytime</code>, <code>first quarter</code>, <code>moneyline</code>. Case is ignored.",
            "items": {
              "type": "string"
            }
          },
          "excludeMarkets": {
            "title": "Skip these markets",
            "type": "array",
            "description": "Drop a market if its name, type, tab or section contains one of these words, e.g. <code>race to</code>, <code>1st quarter</code>, <code>exact</code>.",
            "items": {
              "type": "string"
            }
          },
          "eventIds": {
            "title": "Specific events",
            "type": "array",
            "description": "Only these events (ids from the <code>eventId</code> column of any run). The run still needs the league of each event: put the league in <b>Leagues</b> too to skip straight to it.",
            "items": {
              "type": "string"
            }
          },
          "oddsHistory": {
            "title": "Price history",
            "enum": [
              "none",
              "first",
              "series"
            ],
            "type": "string",
            "description": "Attach DraftKings' own price timeline to every row. <b>First price</b> adds <code>firstOddsAmerican</code>, <code>firstOddsAt</code> and <code>firstImpliedProbability</code> (the earliest point DraftKings keeps, for opening-to-current line movement). <b>Full series</b> adds an <code>oddsHistory</code> array with the points of the window below. Costs extra requests, so it is off by default.",
            "default": "none"
          },
          "oddsHistoryWindow": {
            "title": "Series window",
            "enum": [
              "1D",
              "1W",
              "1M",
              "ALL"
            ],
            "type": "string",
            "description": "Window of the <b>Full series</b>: 1 day (5-minute steps), 1 week (hourly), 1 month (6-hourly) or everything DraftKings keeps (daily).",
            "default": "1W"
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many rows. <code>0</code> means no limit. A full NFL week with every prop is well over 100,000 selections, so set the limit or narrow the markets. The run also stops at its own <b>Maximum cost per run</b>.",
            "default": 10000
          },
          "proxyConfiguration": {
            "title": "Proxy (optional)",
            "type": "object",
            "description": "Normally not needed: the run reads DraftKings from the platform's own connection and falls back to a small US residential rescue by itself. Fill <b>Your own proxy URLs</b> only to use a proxy of your own as that rescue route. Datacenter proxies are refused by the sportsbook.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}