{
  "openapi": "3.0.1",
  "info": {
    "title": "Player Props Scraper for PrizePicks & Underdog - DFS Lines API",
    "description": "Live DFS player prop lines from PrizePicks and Underdog in one table: player, team, opponent, stat, line, goblin and demon types, Underdog payouts and odds. Compare both apps side by side, or get only moved lines on a schedule. Independent tool, not affiliated with PrizePicks or Underdog.",
    "version": "0.1",
    "x-build-id": "wZ1f2ib2BKmd6digj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~dfs-player-props-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-dfs-player-props-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/scrapesage~dfs-player-props-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-dfs-player-props-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/scrapesage~dfs-player-props-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-dfs-player-props-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": "Which sports to read. Each PrizePicks league in a sport is one paid read, so picking only what you need keeps a run cheap. Underdog is one read for every sport. Pick <b>All sports</b> for the whole board. Left empty with no player or stat named, the run is a short sample of the biggest sport with lines right now.",
            "items": {
              "type": "string",
              "enum": [
                "ALL",
                "NFL",
                "CFB",
                "CFL",
                "NBA",
                "WNBA",
                "CBB",
                "MLB",
                "INTL_BASEBALL",
                "NHL",
                "SOCCER",
                "TENNIS",
                "MMA",
                "BOXING",
                "GOLF",
                "RACING",
                "ESPORTS",
                "CRICKET",
                "OTHER"
              ],
              "enumTitles": [
                "All sports (ALL)",
                "NFL (NFL)",
                "College football (CFB)",
                "Canadian football (CFL)",
                "NBA (NBA)",
                "WNBA (WNBA)",
                "College basketball (CBB)",
                "MLB (MLB)",
                "KBO and NPB baseball (INTL_BASEBALL)",
                "NHL (NHL)",
                "Soccer, every league (SOCCER)",
                "Tennis (TENNIS)",
                "UFC and MMA (MMA)",
                "Boxing (BOXING)",
                "Golf (GOLF)",
                "NASCAR, F1 and IndyCar (RACING)",
                "Esports: CS2, LoL, Dota 2, Valorant and more (ESPORTS)",
                "Cricket (CRICKET)",
                "Everything else (OTHER)"
              ]
            }
          },
          "output": {
            "title": "Output",
            "enum": [
              "lines",
              "comparison"
            ],
            "type": "string",
            "description": "<b>Every line</b> gives one row per line per app. <b>Side by side</b> gives one row per player and stat that both apps offer, with both lines and the difference, biggest difference first. A side-by-side run always reads both apps and uses PrizePicks' standard line.",
            "default": "lines"
          },
          "apps": {
            "title": "Apps",
            "type": "array",
            "description": "Which apps to read. Both is the default. Underdog alone has no league reads to pay for.",
            "items": {
              "type": "string",
              "enum": [
                "underdog",
                "prizepicks"
              ],
              "enumTitles": [
                "Underdog (underdog)",
                "PrizePicks (prizepicks)"
              ]
            },
            "default": [
              "underdog",
              "prizepicks"
            ]
          },
          "players": {
            "title": "Players",
            "type": "array",
            "description": "Only these players. Part of a name works, and accents and capitals do not matter: <code>doncic</code> finds Luka Dončić. Naming the sport too is the cheapest way: with no sport, the run reads every league Underdog cannot rule out.",
            "items": {
              "type": "string"
            }
          },
          "stats": {
            "title": "Stat names",
            "type": "array",
            "description": "Only these stats. Part of a name works, in either app's words: <code>3PTM</code> and <code>3-Pointers Made</code> find the same lines on both apps. Examples: <code>Points</code>, <code>Receiving Yards</code>, <code>Shots on Goal</code>.",
            "items": {
              "type": "string"
            }
          },
          "oddsTypes": {
            "title": "PrizePicks line types",
            "type": "array",
            "description": "Keep only these PrizePicks line types. Most NFL rows are goblin and demon lines, so <b>Standard</b> gives a much shorter table. Underdog rows are not touched by this filter, because Underdog has no line types.",
            "items": {
              "type": "string",
              "enum": [
                "standard",
                "goblin",
                "demon"
              ],
              "enumTitles": [
                "Standard (standard)",
                "Goblin, an easier line that pays less (goblin)",
                "Demon, a harder line that pays more (demon)"
              ]
            }
          },
          "fullGameOnly": {
            "title": "Whole-game lines only",
            "type": "boolean",
            "description": "Leave out lines for part of a game (first half, first quarter) and season-long lines. Also skips those PrizePicks leagues, so they are not billed."
          },
          "startsWithinHours": {
            "title": "Starts within hours",
            "minimum": 1,
            "type": "integer",
            "description": "Only games that start within this many hours from now, for example <code>24</code> for today's slate. Games already under way are kept. Leave empty for every game on the board."
          },
          "minLineDifference": {
            "title": "Minimum line difference",
            "minimum": 0,
            "type": "number",
            "description": "Side by side only. Keep pairs whose lines differ by at least this much, for example <code>1</code> or <code>2.5</code>. Empty keeps every pair, including lines that agree."
          },
          "maxRows": {
            "title": "Max rows",
            "minimum": 1,
            "type": "integer",
            "description": "The most rows a run delivers and bills. Soonest games come first, and the two apps share this number so one big board cannot crowd out the other. A side-by-side run keeps the biggest differences. The whole board across both apps can pass 50,000 lines.",
            "default": 5000
          },
          "monitorMode": {
            "title": "Only new and moved lines",
            "type": "boolean",
            "description": "Remember what this run saw, and on later runs deliver only lines that are new or that changed, with the number they moved from. Made for a schedule: an unchanged line is not delivered or billed."
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keeps separate schedules apart: one name, one memory. Use a different name for each mix of sports and filters."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}