{
  "openapi": "3.0.1",
  "info": {
    "title": "DraftKings Line Movement Tracker & Historical Odds",
    "description": "Track every DraftKings Sportsbook line move: moneyline, spread and total with old and new line, price and direction, opening vs current lines, and the full line history of DraftKings player props. Schedule it for a gap-free move log. Free preview with no key.",
    "version": "1.0",
    "x-build-id": "9NbdO3eFUc1z6cmNg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pp-api~draftkings-line-movement/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pp-api-draftkings-line-movement",
        "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/pp-api~draftkings-line-movement/runs": {
      "post": {
        "operationId": "runs-sync-pp-api-draftkings-line-movement",
        "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/pp-api~draftkings-line-movement/run-sync": {
      "post": {
        "operationId": "run-sync-pp-api-draftkings-line-movement",
        "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": {
          "apiKey": {
            "title": "API key (optional)",
            "type": "string",
            "description": "Your draftkingsapi.com key (starts with dk_). Free plan, no card: https://draftkingsapi.com/sign-up. Leave empty for a free preview of real recent DraftKings line moves."
          },
          "mode": {
            "title": "What to fetch",
            "enum": [
              "moves",
              "open-vs-current",
              "prop-history"
            ],
            "type": "string",
            "description": "Line moves returns every moneyline, spread and total move with old and new line and price. Opening vs current gives one row per side with where it opened, where it is now and how often it moved. Player prop line history returns every recorded change of DraftKings player over/unders.",
            "default": "moves"
          },
          "sport": {
            "title": "Sport",
            "enum": [
              "all",
              "NBA",
              "NFL",
              "NHL",
              "MLB",
              "NCAAB",
              "NCAAF",
              "EPL",
              "MLS"
            ],
            "type": "string",
            "description": "Sport to track. Player prop line history covers the sports DraftKings lists player over/unders for (NBA, NFL, NHL and others in season).",
            "default": "all"
          },
          "market": {
            "title": "Market",
            "enum": [
              "all",
              "moneyline",
              "spread",
              "total"
            ],
            "type": "string",
            "description": "Line moves and opening vs current: which game market to include.",
            "default": "all"
          },
          "moveType": {
            "title": "Kind of move",
            "enum": [
              "all",
              "line",
              "price"
            ],
            "type": "string",
            "description": "A line move changes the spread or total number; a price move changes only the odds.",
            "default": "all"
          },
          "games": {
            "title": "Games",
            "enum": [
              "upcoming",
              "today",
              "all"
            ],
            "type": "string",
            "description": "Line moves and opening vs current: which games to read. Every retained game also includes finished games and uses more requests.",
            "default": "upcoming"
          },
          "search": {
            "title": "Team",
            "type": "string",
            "description": "Optional part of a team name, for example Lakers."
          },
          "eventId": {
            "title": "Event ID",
            "type": "string",
            "description": "Optional draftkingsapi.com event id (the event_id field) to follow a single game."
          },
          "lookbackHours": {
            "title": "Look back (hours)",
            "minimum": 1,
            "maximum": 720,
            "type": "integer",
            "description": "Line moves, first run only: return moves from this many hours back. Later runs continue after the last move they saw.",
            "default": 24
          },
          "resumeFromLastRun": {
            "title": "Resume from last run",
            "type": "boolean",
            "description": "Line moves: scheduled runs return only moves recorded since the previous run, so nothing is missed or repeated.",
            "default": true
          },
          "stateKey": {
            "title": "Tracker name",
            "type": "string",
            "description": "Keep separate trackers apart (each sport and market filter also keeps its own position).",
            "default": "default"
          },
          "state": {
            "title": "State",
            "enum": [
              "NJ",
              "NY",
              "PA",
              "MI",
              "IL",
              "OH",
              "MA",
              "AZ",
              "CO",
              "VA",
              "NC",
              "TN",
              "IN",
              "KS",
              "KY",
              "LA",
              "MD",
              "CT",
              "IA",
              "WV",
              "WY",
              "NH",
              "VT",
              "ME",
              "MO",
              "OR",
              "AR"
            ],
            "type": "string",
            "description": "Player prop line history: the DraftKings Sportsbook state to read. Lines can differ by state.",
            "default": "NJ"
          },
          "marketIds": {
            "title": "Market IDs",
            "type": "array",
            "description": "Player prop line history: DraftKings market ids to follow. Leave empty to pick up the sport's current player over/under markets automatically.",
            "items": {
              "type": "string"
            }
          },
          "player": {
            "title": "Player",
            "type": "string",
            "description": "Player prop line history: optional part of a player name."
          },
          "stat": {
            "title": "Stat",
            "type": "string",
            "description": "Player prop line history: optional stat, for example Points, Rebounds, Passing Yards or Shots on Goal."
          },
          "propOutput": {
            "title": "Prop output",
            "enum": [
              "points",
              "summary"
            ],
            "type": "string",
            "description": "Player prop line history: every change of line and price, or one row per prop with opening line, current line and move counts.",
            "default": "points"
          },
          "maxMarkets": {
            "title": "Max props",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Player prop line history: read at most this many props. Each prop is one API request.",
            "default": 20
          },
          "maxRequests": {
            "title": "Max API requests",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Stop after this many requests on your draftkingsapi.com plan. Each page of up to 100 quotes, each snapshot and each prop history is one request.",
            "default": 50
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many rows.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}