{
  "openapi": "3.0.1",
  "info": {
    "title": "Underdog Fantasy Player Props",
    "description": "Collect Underdog pick’em player props with paired higher/lower sides, lines, native payout details and saved change tracking. Filter supported leagues, players, teams, stats and UTC game dates.",
    "version": "0.1",
    "x-build-id": "BdtN6tPuXSOwlse3e"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automatic~underdog-player-props/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automatic-underdog-player-props",
        "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/automatic~underdog-player-props/runs": {
      "post": {
        "operationId": "runs-sync-automatic-underdog-player-props",
        "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/automatic~underdog-player-props/run-sync": {
      "post": {
        "operationId": "run-sync-automatic-underdog-player-props",
        "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",
            "minItems": 1,
            "maxItems": 200,
            "type": "array",
            "description": "Exact canonical sports or league codes/names; case and accents ignored. Includes basketball, american_football, canadian_football, ice_hockey, esports, tennis, golf, mma. Omit for all; unknown values succeed empty. Maximum 200 distinct values, 200 characters each; duplicate normalized values and entries without Latin letters/digits fail.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          "leagues": {
            "title": "Leagues",
            "minItems": 1,
            "maxItems": 200,
            "type": "array",
            "description": "Exact league codes/names: NBA, NFL, NHL, NCAAF/CFB, NCAAB/CBB, CFL, CS/CS2, DOTA/Dota 2, LOL, tennis, PGA, MMA/UFC. Omit for all. Unknown values succeed empty and are reported. Maximum 200 distinct values, 200 characters each; duplicate normalized values and entries without Latin letters/digits fail.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          "statTypes": {
            "title": "Stat types",
            "minItems": 1,
            "maxItems": 200,
            "type": "array",
            "description": "Exact native stat keys or normalized sportsbook keys. Unknown source stats retain a null normalized value. Omit for all. Maximum 200 distinct values, 200 characters each; duplicate normalized values and entries without Latin letters/digits fail.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          "periods": {
            "title": "Periods",
            "minItems": 1,
            "maxItems": 200,
            "uniqueItems": true,
            "type": "array",
            "description": "Normalized output periods: game, first_period, second_period, third_period, fourth_period, first_half. Full game is game. Omit for all, including unknown periods; explicit empty lists and unknown values fail. Compared ignoring case and surrounding whitespace.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          "players": {
            "title": "Players",
            "minItems": 1,
            "maxItems": 200,
            "type": "array",
            "description": "Exact full player names (accent/punctuation insensitive) or native Underdog player IDs. Omit for all; explicit empty lists fail. Maximum 200 distinct values, 200 characters each; duplicate normalized values and entries without Latin letters/digits fail.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          "teams": {
            "title": "Teams",
            "minItems": 1,
            "maxItems": 200,
            "type": "array",
            "description": "Exact player-team abbreviation or full name derived from game titles. Case and accents ignored. Solo players have no team. Omit for all; explicit empty lists fail. Maximum 200 distinct values, 200 characters each; duplicate normalized values and entries without Latin letters/digits fail.",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          },
          "gameDateFrom": {
            "title": "Game date from",
            "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
            "type": "string",
            "description": "Inclusive UTC game date, YYYY-MM-DD. Cannot be combined with nextDays."
          },
          "gameDateTo": {
            "title": "Game date to",
            "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
            "type": "string",
            "description": "Inclusive UTC game date, YYYY-MM-DD. Must not precede gameDateFrom."
          },
          "nextDays": {
            "title": "Next days",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Inclusive UTC today through today + N - 1 days, 1–30. Omit for the entire available slate; cannot combine with explicit dates."
          },
          "includeAlternates": {
            "title": "Include alternates",
            "type": "boolean",
            "description": "False in code. Other offers in the same market/provider are nested under alternates when true; this capture has balanced offers only, despite has_alternates hints."
          },
          "includeLive": {
            "title": "Include live",
            "type": "boolean",
            "description": "False in code. True retains any live/non-pregame offers present in the board. Does not promise complete in-play coverage."
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum delivered prop rows, 1–10000. Bare input uses 20; explicit scope uses 5000 when omitted. Capped change rows stay pending."
          },
          "onlyChangesSinceLastRun": {
            "title": "Only changes since last run",
            "type": "boolean",
            "description": "False in code. First run emits a labelled baseline; subsequent runs emit new, line, payout, status and removed props. Saved state advances only for delivered rows."
          },
          "stateKey": {
            "title": "State key",
            "minLength": 1,
            "maxLength": 200,
            "type": "string",
            "description": "Non-empty name up to 200 characters; code uses default when omitted. Same name and filters share history in a persistent named key-value store. New name resets history."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional; omitted means direct access. Apify Proxy is disabled locally. Set useApifyProxy false for direct collection."
          },
          "downloadTimeoutSecs": {
            "title": "Download deadline (seconds)",
            "minimum": 1,
            "maximum": 1200,
            "type": "integer",
            "description": "Whole-download deadline, 1–1200 seconds; code uses 90 when omitted. Platform observation: about 26 MB decoded in 4.2 seconds; run timeout also covers processing and saving."
          },
          "allowPartial": {
            "title": "Allow partial results",
            "type": "boolean",
            "description": "False in code. A cut-off or unresolved board fails by default. True delivers fully parsed, joined rows only, reports missing data and never infers removals."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}