{
  "openapi": "3.0.1",
  "info": {
    "title": "Player Props Odds Scraper: FanDuel, PrizePicks & Underdog Lines",
    "description": "Tonight's pre-game NBA, NFL and NHL player props from FanDuel, PrizePicks and Underdog as one clean over/under row per book, joined across books with best line, line gap and no-vig fair probability. $1 per 1,000 rows.",
    "version": "0.0",
    "x-build-id": "EAoaPNExCwUKoN07n"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapebench~player-props-odds-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapebench-player-props-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/scrapebench~player-props-odds-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapebench-player-props-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/scrapebench~player-props-odds-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapebench-player-props-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": {
          "leagues": {
            "title": "Leagues",
            "type": "array",
            "description": "Which leagues to read. Upper or lower case both work. FanDuel rows cover NBA and NFL; Underdog and PrizePicks cover all five, college basketball (CBB) and college football (CFB) included.",
            "items": {
              "type": "string",
              "enum": [
                "NBA",
                "NFL",
                "NHL",
                "CBB",
                "CFB"
              ],
              "enumTitles": [
                "NBA",
                "NFL",
                "NHL",
                "College basketball (CBB)",
                "College football (CFB)"
              ]
            },
            "default": [
              "NBA"
            ]
          },
          "league": {
            "title": "League (single)",
            "type": "string",
            "description": "One league, for saved tasks and API callers that send a single value. Added to Leagues."
          },
          "stats": {
            "title": "Stats",
            "type": "array",
            "description": "Which stats to return, e.g. points, rebounds, assists, threes, pts_rebs_asts, passing_yards, receiving_yards, receptions, rushing_yards, shots_on_goal, saves. Leave empty for every stat the league has. A stat a league does not have is ignored with a free notice listing the ones it does.",
            "items": {
              "type": "string"
            }
          },
          "players": {
            "title": "Players",
            "type": "array",
            "description": "Only these players. Accents, Jr./III and initials do not matter, and a first or last name alone matches (\"LeBron\" finds LeBron James). Empty = everyone on the slate. When nobody matches, a free row lists who is on the slate.",
            "items": {
              "type": "string"
            }
          },
          "player": {
            "title": "Player (single)",
            "type": "string",
            "description": "One player, for saved tasks and API callers that send a single value. Added to Players."
          },
          "teams": {
            "title": "Teams",
            "type": "array",
            "description": "Only players of these teams: an abbreviation (LAL, KC) or a team name (Lakers).",
            "items": {
              "type": "string"
            }
          },
          "team": {
            "title": "Team (single)",
            "type": "string",
            "description": "One team, for saved tasks and API callers. Added to Teams."
          },
          "books": {
            "title": "Books",
            "type": "array",
            "description": "Which books to read. FanDuel is a sportsbook (over and under prices). Underdog is a pick'em site that also shows over/under prices. PrizePicks is a pick'em site: line only, no prices. DraftKings (NBA points, rebounds, assists) is off by default while it is being proven; a run that cannot read it returns a free notice and the other books still deliver.",
            "items": {
              "type": "string",
              "enum": [
                "fanduel",
                "underdog",
                "prizepicks",
                "draftkings"
              ],
              "enumTitles": [
                "FanDuel",
                "Underdog",
                "PrizePicks",
                "DraftKings (beta)"
              ]
            },
            "default": [
              "fanduel",
              "underdog",
              "prizepicks"
            ]
          },
          "view": {
            "title": "View",
            "enum": [
              "lines",
              "compare"
            ],
            "type": "string",
            "description": "lines: one row per book, player, stat and line, each carrying the cross-book best line and gap. compare: one row per player and stat with every book's line side by side.",
            "default": "lines"
          },
          "includeLive": {
            "title": "Include live (in-game) lines",
            "type": "boolean",
            "description": "Off by default: only games that have not started. Turn on to also get lines on games in progress.",
            "default": false
          },
          "includeAltLines": {
            "title": "Include alternate and tier lines",
            "type": "boolean",
            "description": "Off by default: the main line only. Turn on for FanDuel's alternate ladders (\"25+ points\" becomes line 24.5, over price only) and PrizePicks demon and goblin lines.",
            "default": false
          },
          "daysAhead": {
            "title": "Days ahead",
            "minimum": 1,
            "maximum": 7,
            "type": "integer",
            "description": "Games starting within this many days. 1 = tonight's and early tomorrow's slate.",
            "default": 1
          },
          "maxResults": {
            "title": "Maximum rows per run",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "A cap on the whole RUN (your spend control), not per player. When more rows match, the rows kept are spread across books (so a cap never hides a book) and the widest joins come first; a free notice says how many were left out.",
            "default": 500
          },
          "feedback": {
            "title": "Feedback",
            "type": "string",
            "description": "For AI agents and people: say what you needed and did not get. Read by the developer; it does not change the run."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional and off by default; the run picks its own exits.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}