{
  "openapi": "3.0.1",
  "info": {
    "title": "Sleeper Fantasy Football Stats & League Scraper",
    "description": "Collect Sleeper fantasy football data: trending waiver adds and drops, player database with injuries and depth chart, weekly and season stats with PPR points, projections, consistency scores, and any public league's standings, matchups, transactions and draft picks.",
    "version": "1.0",
    "x-build-id": "VMLhhDWz4i2YDW3by"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/parselab~sleeper-fantasy-football-stats-leagues-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-parselab-sleeper-fantasy-football-stats-leagues-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/parselab~sleeper-fantasy-football-stats-leagues-scraper/runs": {
      "post": {
        "operationId": "runs-sync-parselab-sleeper-fantasy-football-stats-leagues-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/parselab~sleeper-fantasy-football-stats-leagues-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-parselab-sleeper-fantasy-football-stats-leagues-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": {
          "maxItems": {
            "title": "Max Items",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Free users: Limited to 10 items (preview). Paid users: Optional, max 1,000,000."
          },
          "mode": {
            "title": "What to collect",
            "enum": [
              "trending",
              "players",
              "weeklyStats",
              "seasonStats",
              "projections",
              "leagues",
              "standings",
              "matchups",
              "transactions",
              "draftPicks"
            ],
            "type": "string",
            "description": "Trending shows the most added or dropped players across all Sleeper leagues. Players lists the player database with injuries and depth chart. Weekly stats, season stats and projections give fantasy points and box score numbers. The league modes read any public league by ID or by manager username.",
            "default": "trending"
          },
          "sport": {
            "title": "Sport",
            "enum": [
              "nfl",
              "nba"
            ],
            "type": "string",
            "description": "Football works in every mode. Basketball works in the trending and players modes.",
            "default": "nfl"
          },
          "season": {
            "title": "Season",
            "type": "string",
            "description": "Season year, for example 2026. Empty means the current season."
          },
          "seasonType": {
            "title": "Season type",
            "enum": [
              "regular",
              "post",
              "pre"
            ],
            "type": "string",
            "description": "Regular season, playoffs or preseason.",
            "default": "regular"
          },
          "weeks": {
            "title": "Weeks",
            "type": "string",
            "description": "One week (10), a list (8, 9, 10) or a range (1-10). Empty means the last played week for stats and matchups, the coming week for projections and every week so far for transactions."
          },
          "scoring": {
            "title": "Scoring format",
            "enum": [
              "ppr",
              "half",
              "std"
            ],
            "type": "string",
            "description": "Used for ranking, minimum points, consistency and trend fields. Every stats row still carries PPR, half PPR and standard points.",
            "default": "ppr"
          },
          "positions": {
            "title": "Positions",
            "type": "array",
            "description": "For example QB, RB, WR, TE, K, DEF. Empty means all fantasy positions.",
            "items": {
              "type": "string"
            }
          },
          "teams": {
            "title": "Teams",
            "type": "array",
            "description": "Team abbreviations, for example KC, DET, PHI.",
            "items": {
              "type": "string"
            }
          },
          "playerNames": {
            "title": "Player names",
            "type": "array",
            "description": "Keep only these players. Part of a name is enough, for example mahomes.",
            "items": {
              "type": "string"
            }
          },
          "activeOnly": {
            "title": "Active players only",
            "type": "boolean",
            "description": "Skip retired and inactive players.",
            "default": false
          },
          "injuredOnly": {
            "title": "Injured players only",
            "type": "boolean",
            "description": "Keep only players with an injury designation (questionable, doubtful, out, IR).",
            "default": false
          },
          "minFantasyPoints": {
            "title": "Minimum fantasy points",
            "minimum": 0,
            "type": "integer",
            "description": "Skip players below this many points in the chosen scoring format (season total in the players and season modes, week total in the weekly modes)."
          },
          "trendingType": {
            "title": "Trending direction",
            "enum": [
              "add",
              "drop",
              "both"
            ],
            "type": "string",
            "description": "Trending mode only. Most added, most dropped, or both lists.",
            "default": "add"
          },
          "lookbackHours": {
            "title": "Lookback hours",
            "minimum": 1,
            "maximum": 168,
            "type": "integer",
            "description": "Trending mode only. Count adds and drops over the last hours, from 1 to 168.",
            "default": 24
          },
          "username": {
            "title": "Sleeper username",
            "type": "string",
            "description": "League modes. Every NFL league of this manager in the chosen season is read."
          },
          "leagueIds": {
            "title": "League IDs",
            "type": "array",
            "description": "League modes. The long number in the league link, for example 1354612949834035200.",
            "items": {
              "type": "string"
            }
          },
          "includeAllStats": {
            "title": "Add every stat column",
            "type": "boolean",
            "description": "Adds the full stat line (around 100 values such as red zone attempts, first downs, quarter splits) as allStats. The headline stats are always included.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}