> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scrapeunblocker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DraftKings sportsbook odds for a league

> Reads a DraftKings sportsbook league and returns `league`, `events` (`home`, `away`, `startTime`, `status`, `live`, `url`) with their `markets` (`name`, `type`, `subcategory`, `margin` on two-way and three-way markets) and each market's `selections` (`name`, `side`, `points`, `milestone`, `player`, `american`, `decimal`, `fractional`, `impliedProbability`). Prices are numbers. `league` is a name such as `nba`, `nfl`, `mlb`, `nhl`, `ncaab`, `ufc`, `epl`, `ucl`, or a numeric DraftKings league id. By default the league's game lines come back; `availableCategories` lists the market groups, and `category` and `subcategory` (a name or id from that list) fetch one, such as player props or futures. `state` selects the US state whose lines are read (default `nj`). Some exit countries are refused; `proxy_country` chooses where the request is sent from. A league with no current events returns empty `events` and a `message`.



## OpenAPI

````yaml /api-reference/openapi.json post /sports/draftkings-odds
openapi: 3.1.0
info:
  title: ScrapeUnblocker API
  description: >-
    Public API for the ScrapeUnblocker proxy/anti-bot service. Authenticate
    every request with the `x-scrapeunblocker-key` header. Documented here:
    page-source extraction, Google SERP scraping, image fetch, and the dedicated
    plugin endpoints (search engines, marketplaces, reviews, travel, social and
    more). All other paths exist for internal operations and are intentionally
    hidden from this spec.
  version: 3.0.0
servers:
  - url: https://api.scrapeunblocker.com
    description: Production
security: []
paths:
  /sports/draftkings-odds:
    post:
      tags:
        - Plugins
      summary: DraftKings sportsbook odds for a league
      description: >-
        Reads a DraftKings sportsbook league and returns `league`, `events`
        (`home`, `away`, `startTime`, `status`, `live`, `url`) with their
        `markets` (`name`, `type`, `subcategory`, `margin` on two-way and
        three-way markets) and each market's `selections` (`name`, `side`,
        `points`, `milestone`, `player`, `american`, `decimal`, `fractional`,
        `impliedProbability`). Prices are numbers. `league` is a name such as
        `nba`, `nfl`, `mlb`, `nhl`, `ncaab`, `ufc`, `epl`, `ucl`, or a numeric
        DraftKings league id. By default the league's game lines come back;
        `availableCategories` lists the market groups, and `category` and
        `subcategory` (a name or id from that list) fetch one, such as player
        props or futures. `state` selects the US state whose lines are read
        (default `nj`). Some exit countries are refused; `proxy_country` chooses
        where the request is sent from. A league with no current events returns
        empty `events` and a `message`.
      operationId: draftkings_odds_sports_draftkings_odds_post
      parameters:
        - name: league
          in: query
          required: true
          schema:
            type: string
            description: >-
              League name or id, e.g. 'nba', 'nfl', 'nhl', 'mlb', 'epl', or
              42648.
            title: League
          description: League name or id, e.g. 'nba', 'nfl', 'nhl', 'mlb', 'epl', or 42648.
        - name: category
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Market group by name or id, e.g. 'Player Points', from
              `availableCategories`.
            title: Category
          description: >-
            Market group by name or id, e.g. 'Player Points', from
            `availableCategories`.
        - name: subcategory
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: Sub-group of `category`, by name or id.
            title: Subcategory
          description: Sub-group of `category`, by name or id.
        - name: state
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              US state code whose lines to read, e.g. 'nj', 'ny', 'pa' (default
              'nj').
            title: State
          description: >-
            US state code whose lines to read, e.g. 'nj', 'ny', 'pa' (default
            'nj').
        - name: proxy_country
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Proxy country the request is sent from (ISO-2, e.g. 'US'). Leave
              blank to let the API pick.
            title: Proxy Country
          description: >-
            Proxy country the request is sent from (ISO-2, e.g. 'US'). Leave
            blank to let the API pick.
      responses:
        '200':
          description: >-
            JSON with `league` and `events` (empty with a `message` when nothing
            is on offer).
          content:
            application/json:
              schema: {}
        '400':
          description: '`league`, `category`, `state` or the proxy country is invalid.'
        '404':
          description: No such league or category at DraftKings.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '502':
          description: Blocked, unreadable, or the call did not finish in time.
      security:
        - ScrapeUnblockerKey: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ScrapeUnblockerKey:
      type: apiKey
      in: header
      name: x-scrapeunblocker-key
      description: Your ScrapeUnblocker API key. Apply on every request.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.