# Sleeper Fantasy Sports Scraper (`crawlerbros/sleeper-fantasy-scraper`) Actor

Scrape Sleeper (sleeper.app) fantasy football & basketball data - NFL/NBA players, league info, rosters, members, drafts, draft picks, user profiles, and trending waiver-wire adds/drops. Public JSON API, no login required.

- **URL**: https://apify.com/crawlerbros/sleeper-fantasy-scraper.md
- **Developed by:** [Crawler Bros](https://apify.com/crawlerbros) (community)
- **Categories:** Automation, Developer tools, Integrations
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Sleeper Fantasy Sports Scraper

Scrape [Sleeper](https://sleeper.com) fantasy football & basketball data — NFL/NBA players, league info, rosters, league members, drafts, draft picks, user profiles, and trending waiver-wire adds/drops. HTTP-only via the public `api.sleeper.app` JSON API. No login, no API key, no cookies.

### What this actor does

- **17 modes:** `players`, `playersByIds`, `trendingPlayers`, `playerOwnership`, `league`, `leagueRosters`, `leagueUsers`, `leagueMatchups`, `leagueTransactions`, `leagueTradedPicks`, `leagueDrafts`, `playoffBracket`, `user`, `userLeagues`, `draft`, `draftPicks`, `userDrafts`
- **Two sports:** NFL and NBA
- **Player search:** by name, position, team, roster status, active-only
- **Trending waiver wire:** most-added / most-dropped players over a configurable lookback window
- **Ownership / start rates:** percent-owned and percent-started for any sport/season/week, regular season or playoffs
- **League intelligence:** settings, roster counts, scoring type, roster/team records with win-loss and points
- **Weekly matchups:** per-roster points, starters, and starter-by-starter scoring for any week
- **Transaction log:** waiver claims and trades per week, with added/dropped players and waiver bid
- **Traded draft picks:** every future pick that has changed hands, by round and season
- **League drafts:** every draft (past or in-progress) a league has ever run
- **Playoff bracket:** winners (championship) or losers (consolation) bracket, round by round
- **Draft history:** full draft settings plus every pick with the drafted player attached
- **Empty fields are omitted**

### Output per record

Fields vary by `recordType`:

- **player** — `playerId`, `sport`, `fullName`, `firstName`, `lastName`, `position`, `positions[]`, `team`, `status`, `active`, `age`, `birthDate`, `height`, `weightLbs`, `college`, `yearsExp`, `jerseyNumber`, `depthChartPosition`, `depthChartOrder`, `injuryStatus`, `injuryBodyPart`, `injuryNotes`, `searchRank`, `espnId`, `yahooId`, `headshotUrl`, `playerUrl`
- **trendingPlayer** — `playerId`, `sport`, `trendType`, `count`, `fullName`, `position`, `team`, `status`, `headshotUrl`, `playerUrl`
- **playerOwnership** — `playerId`, `sport`, `season`, `seasonType`, `week`, `percentOwned`, `percentStarted`, `fullName`, `position`, `team`, `headshotUrl`, `playerUrl`
- **league** — `leagueId`, `name`, `sport`, `season`, `seasonType`, `status`, `totalRosters`, `numTeams`, `playoffTeams`, `playoffWeekStart`, `tradeDeadline`, `waiverBudget`, `pointsPerReception`, `rosterPositions[]`, `draftId`, `previousLeagueId`, `avatarUrl`, `leagueUrl`
- **roster** — `leagueId`, `rosterId`, `ownerId`, `ownerDisplayName`, `wins`, `losses`, `ties`, `pointsFor`, `pointsAgainst`, `waiverBudgetUsed`, `totalMoves`, `playersCount`, `players[]`, `starters[]`, `leagueUrl`
- **leagueUser** — `leagueId`, `userId`, `displayName`, `teamName`, `isOwner`, `avatarUrl`, `leagueUrl`
- **matchup** — `leagueId`, `week`, `matchupId`, `rosterId`, `ownerDisplayName`, `points`, `customPoints`, `starters[]`, `startersPoints[]`, `playersCount`, `players[]`, `leagueUrl`
- **transaction** — `leagueId`, `week`, `transactionId`, `type`, `status`, `createdAt`, `addedPlayerIds[]`, `droppedPlayerIds[]`, `rosterIds[]`, `waiverBid`, `notes`, `draftPicksTradedCount`, `leagueUrl`
- **tradedPick** — `leagueId`, `round`, `season`, `originalRosterId`, `currentOwnerRosterId`, `previousOwnerRosterId`, `leagueUrl`
- **bracketMatch** — `leagueId`, `bracketType`, `matchId`, `round`, `team1RosterId`, `team2RosterId`, `winnerRosterId`, `loserRosterId`, `placementForPosition`, `leagueUrl`
- **user** — `userId`, `username`, `displayName`, `isBot`, `avatarUrl`
- **draft** — `draftId`, `leagueId`, `sport`, `season`, `seasonType`, `status`, `type`, `teams`, `rounds`, `startTime`, `scoringType`, `draftUrl`
- **draftPick** — `draftId`, `round`, `pickNo`, `draftSlot`, `rosterId`, `pickedByUserId`, `isKeeper`, `playerId`, `playerName`, `position`, `team`, `headshotUrl`, `draftUrl`

Every record also carries `recordType` and `scrapedAt`.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `players` | One of the 16 modes above |
| `sport` | string | `nfl` | `nfl` or `nba` |
| `nameSearch` | string | – | Player name substring (mode=players) |
| `position` | string | – | Position filter (mode=players) |
| `team` | string | – | Team abbreviation filter (mode=players) |
| `status` | string | – | Roster status filter (mode=players) |
| `activeOnly` | bool | `false` | Only active players (mode=players) |
| `playerIds` | array | – | Sleeper player IDs (mode=playersByIds); duplicates are deduped |
| `trendType` | string | `add` | `add` or `drop` (mode=trendingPlayers) |
| `lookbackHours` | int | `24` | Trending window (mode=trendingPlayers) |
| `seasonType` | string | `regular` | `regular` or `post` (mode=playerOwnership) |
| `leagueId` | string | – | League ID (mode=league/leagueRosters/leagueUsers/leagueMatchups/leagueTransactions/leagueTradedPicks/leagueDrafts/playoffBracket) |
| `week` | int | `1` | Fantasy week / waiver round, 1-18 (mode=leagueMatchups/leagueTransactions/playerOwnership) |
| `bracketType` | string | `winners` | `winners` or `losers` (mode=playoffBracket) |
| `draftId` | string | – | Draft ID (mode=draft/draftPicks) |
| `username` | string | – | Sleeper username (mode=user/userLeagues/userDrafts) |
| `season` | string | – | 4-digit season; auto-resolved if omitted (mode=userLeagues/userDrafts/playerOwnership) |
| `maxItems` | int | `25` | Hard cap on emitted records |
| `proxyConfiguration` | object | AUTO | Optional; only used as an automatic fallback on 403/429 |

#### Example: browse NFL quarterbacks

```json
{ "mode": "players", "sport": "nfl", "position": "QB", "activeOnly": true, "maxItems": 20 }
````

#### Example: most-added NFL players this week

```json
{ "mode": "trendingPlayers", "sport": "nfl", "trendType": "add", "lookbackHours": 48, "maxItems": 25 }
```

#### Example: waiver-wire ownership / start rates

```json
{ "mode": "playerOwnership", "sport": "nfl", "season": "2025", "week": 1, "seasonType": "regular", "maxItems": 50 }
```

#### Example: league rosters

```json
{ "mode": "leagueRosters", "leagueId": "289646328504385536" }
```

#### Example: draft picks

```json
{ "mode": "draftPicks", "draftId": "289646328508579840", "maxItems": 100 }
```

#### Example: week 1 matchups (scores)

```json
{ "mode": "leagueMatchups", "leagueId": "289646328504385536", "week": 1 }
```

#### Example: week 1 waiver/trade transactions

```json
{ "mode": "leagueTransactions", "leagueId": "289646328504385536", "week": 1 }
```

#### Example: playoff bracket

```json
{ "mode": "playoffBracket", "leagueId": "289646328504385536", "bracketType": "winners" }
```

#### Example: all drafts a league has run

```json
{ "mode": "leagueDrafts", "leagueId": "289646328504385536" }
```

### Use cases

- **Fantasy tools** — build waiver-wire trackers, trade analyzers, or start/sit apps on top of live Sleeper data
- **League dashboards** — pull standings, rosters, and points-for/against for a custom league site
- **Draft recaps** — generate shareable draft-grade reports pick-by-pick
- **Player research** — cross-reference injury status, depth chart, and search-rank popularity
- **Content/media** — power trending-player newsletters or social posts

### FAQ

**Do I need a Sleeper account?** No. Every endpoint used here is Sleeper's public, unauthenticated REST API.

**Where do I find a league ID / draft ID?** They appear in the URL when you open a league or draft on sleeper.com (e.g. `sleeper.com/leagues/<leagueId>`), or via `mode=userLeagues` / `mode=userDrafts` with a username.

**Why is `season` optional?** If omitted, the actor calls Sleeper's `/state/<sport>` endpoint and uses the current season (or the most recently completed one during the off-season) automatically.

**What are `positions[]` vs `position`?** Some players are fantasy-eligible at multiple positions (e.g. a flex-eligible RB/WR). `position` is the primary (first-listed) eligibility; `positions[]` lists all of them.

**Why do some players have no `headshotUrl`?** Team-defense entries (`DEF`) use the team abbreviation instead of a numeric player ID, so no individual headshot exists.

**How fresh is the data?** Sleeper updates player status/injury data multiple times daily during the season; trending data is near-real-time.

# Actor input Schema

## `mode` (type: `string`):

What to fetch.

## `sport` (type: `string`):

Used by players / playersByIds / trendingPlayers / playerOwnership / userLeagues / userDrafts modes.

## `nameSearch` (type: `string`):

Case-insensitive substring match against the player's full name.

## `position` (type: `string`):

Filter to a single fantasy position. NFL: QB/RB/WR/TE/K/P/DEF/OL/OT/OG/LS/DL/LB/DB/LEO/K-P. NBA: PG/SG/SF/PF/C.

## `team` (type: `string`):

Filter to a single NFL or NBA team abbreviation.

## `status` (type: `string`):

Filter to a single roster status. NFL and NBA use different status vocabularies.

## `activeOnly` (type: `boolean`):

Only emit players currently marked active on a roster.

## `playerIds` (type: `array`):

Sleeper numeric player IDs, e.g. `4046` (Patrick Mahomes).

## `trendType` (type: `string`):

Waiver-wire adds or drops.

## `lookbackHours` (type: `integer`):

Trending window in hours.

## `leagueId` (type: `string`):

Sleeper league ID (used by mode=league / leagueRosters / leagueUsers / leagueMatchups / leagueTransactions / leagueTradedPicks / leagueDrafts / playoffBracket).

## `week` (type: `integer`):

Fantasy week / waiver round number (1-18, covers regular season plus playoffs).

## `seasonType` (type: `string`):

Regular season or postseason/playoffs ownership data.

## `bracketType` (type: `string`):

Winners bracket (championship side) or losers bracket (consolation side).

## `draftId` (type: `string`):

Sleeper draft ID (used by mode=draft / draftPicks).

## `username` (type: `string`):

Sleeper username (used by mode=user / userLeagues / userDrafts).

## `season` (type: `string`):

4-digit season year, e.g. `2025`. If omitted, the actor uses Sleeper's current (or most recently completed) season for the chosen sport.

## `maxItems` (type: `integer`):

Hard cap on emitted records.

## `proxyConfiguration` (type: `object`):

Optional. Sleeper's public API is not blocked from Apify's datacenter IPs; this is only used as an automatic fallback if the API starts returning 403/429 responses.

## Actor input object example

```json
{
  "mode": "players",
  "sport": "nfl",
  "activeOnly": false,
  "playerIds": [],
  "trendType": "add",
  "lookbackHours": 24,
  "week": 1,
  "seasonType": "regular",
  "bracketType": "winners",
  "maxItems": 25,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `sleeperRecords` (type: `string`):

Dataset containing all scraped Sleeper records.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "players",
    "sport": "nfl",
    "activeOnly": false,
    "playerIds": [],
    "trendType": "add",
    "lookbackHours": 24,
    "week": 1,
    "seasonType": "regular",
    "bracketType": "winners",
    "maxItems": 25,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlerbros/sleeper-fantasy-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "players",
    "sport": "nfl",
    "activeOnly": False,
    "playerIds": [],
    "trendType": "add",
    "lookbackHours": 24,
    "week": 1,
    "seasonType": "regular",
    "bracketType": "winners",
    "maxItems": 25,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("crawlerbros/sleeper-fantasy-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "players",
  "sport": "nfl",
  "activeOnly": false,
  "playerIds": [],
  "trendType": "add",
  "lookbackHours": 24,
  "week": 1,
  "seasonType": "regular",
  "bracketType": "winners",
  "maxItems": 25,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call crawlerbros/sleeper-fantasy-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=crawlerbros/sleeper-fantasy-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Sleeper Fantasy Sports Scraper",
        "description": "Scrape Sleeper (sleeper.app) fantasy football & basketball data - NFL/NBA players, league info, rosters, members, drafts, draft picks, user profiles, and trending waiver-wire adds/drops. Public JSON API, no login required.",
        "version": "1.0",
        "x-build-id": "C01yp1rp6iu5Wwr3b"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/crawlerbros~sleeper-fantasy-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-crawlerbros-sleeper-fantasy-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/crawlerbros~sleeper-fantasy-scraper/runs": {
            "post": {
                "operationId": "runs-sync-crawlerbros-sleeper-fantasy-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/crawlerbros~sleeper-fantasy-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-crawlerbros-sleeper-fantasy-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",
                "required": [
                    "mode"
                ],
                "properties": {
                    "mode": {
                        "title": "Mode",
                        "enum": [
                            "players",
                            "playersByIds",
                            "trendingPlayers",
                            "playerOwnership",
                            "league",
                            "leagueRosters",
                            "leagueUsers",
                            "leagueMatchups",
                            "leagueTransactions",
                            "leagueTradedPicks",
                            "leagueDrafts",
                            "playoffBracket",
                            "user",
                            "userLeagues",
                            "draft",
                            "draftPicks",
                            "userDrafts"
                        ],
                        "type": "string",
                        "description": "What to fetch.",
                        "default": "players"
                    },
                    "sport": {
                        "title": "Sport",
                        "enum": [
                            "nfl",
                            "nba"
                        ],
                        "type": "string",
                        "description": "Used by players / playersByIds / trendingPlayers / playerOwnership / userLeagues / userDrafts modes.",
                        "default": "nfl"
                    },
                    "nameSearch": {
                        "title": "Player name contains (mode=players)",
                        "type": "string",
                        "description": "Case-insensitive substring match against the player's full name."
                    },
                    "position": {
                        "title": "Position (mode=players)",
                        "enum": [
                            "QB",
                            "RB",
                            "WR",
                            "TE",
                            "K",
                            "P",
                            "K/P",
                            "DEF",
                            "OL",
                            "OT",
                            "OG",
                            "LS",
                            "DL",
                            "LB",
                            "DB",
                            "LEO",
                            "PG",
                            "SG",
                            "SF",
                            "PF",
                            "C"
                        ],
                        "type": "string",
                        "description": "Filter to a single fantasy position. NFL: QB/RB/WR/TE/K/P/DEF/OL/OT/OG/LS/DL/LB/DB/LEO/K-P. NBA: PG/SG/SF/PF/C."
                    },
                    "team": {
                        "title": "Team (mode=players)",
                        "enum": [
                            "ARI",
                            "ATL",
                            "BAL",
                            "BKN",
                            "BOS",
                            "BUF",
                            "CAR",
                            "CHA",
                            "CHI",
                            "CIN",
                            "CLE",
                            "DAL",
                            "DEN",
                            "DET",
                            "GB",
                            "GSW",
                            "HOU",
                            "IND",
                            "JAX",
                            "KC",
                            "LAC",
                            "LAL",
                            "LAR",
                            "LV",
                            "MEM",
                            "MIA",
                            "MIL",
                            "MIN",
                            "NE",
                            "NO",
                            "NOP",
                            "NYG",
                            "NYJ",
                            "NYK",
                            "OAK",
                            "OKC",
                            "ORL",
                            "PHI",
                            "PHX",
                            "PIT",
                            "POR",
                            "SAC",
                            "SAS",
                            "SEA",
                            "SF",
                            "TB",
                            "TEN",
                            "TOR",
                            "UTA",
                            "WAS"
                        ],
                        "type": "string",
                        "description": "Filter to a single NFL or NBA team abbreviation."
                    },
                    "status": {
                        "title": "Status (mode=players)",
                        "enum": [
                            "Active",
                            "Inactive",
                            "Injured Reserve",
                            "Physically Unable to Perform",
                            "Practice Squad",
                            "Non Football Injury",
                            "ACT",
                            "FA",
                            "RET",
                            "TWO-WAY",
                            "NWT",
                            "M-LEAGUE",
                            "DUP",
                            "SUS"
                        ],
                        "type": "string",
                        "description": "Filter to a single roster status. NFL and NBA use different status vocabularies."
                    },
                    "activeOnly": {
                        "title": "Active players only (mode=players)",
                        "type": "boolean",
                        "description": "Only emit players currently marked active on a roster.",
                        "default": false
                    },
                    "playerIds": {
                        "title": "Player IDs (mode=playersByIds)",
                        "type": "array",
                        "description": "Sleeper numeric player IDs, e.g. `4046` (Patrick Mahomes).",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "trendType": {
                        "title": "Trend type (mode=trendingPlayers)",
                        "enum": [
                            "add",
                            "drop"
                        ],
                        "type": "string",
                        "description": "Waiver-wire adds or drops.",
                        "default": "add"
                    },
                    "lookbackHours": {
                        "title": "Lookback hours (mode=trendingPlayers)",
                        "minimum": 1,
                        "maximum": 168,
                        "type": "integer",
                        "description": "Trending window in hours.",
                        "default": 24
                    },
                    "leagueId": {
                        "title": "League ID",
                        "type": "string",
                        "description": "Sleeper league ID (used by mode=league / leagueRosters / leagueUsers / leagueMatchups / leagueTransactions / leagueTradedPicks / leagueDrafts / playoffBracket)."
                    },
                    "week": {
                        "title": "Week (mode=leagueMatchups / leagueTransactions / playerOwnership)",
                        "minimum": 1,
                        "maximum": 18,
                        "type": "integer",
                        "description": "Fantasy week / waiver round number (1-18, covers regular season plus playoffs).",
                        "default": 1
                    },
                    "seasonType": {
                        "title": "Season type (mode=playerOwnership)",
                        "enum": [
                            "regular",
                            "post"
                        ],
                        "type": "string",
                        "description": "Regular season or postseason/playoffs ownership data.",
                        "default": "regular"
                    },
                    "bracketType": {
                        "title": "Bracket type (mode=playoffBracket)",
                        "enum": [
                            "winners",
                            "losers"
                        ],
                        "type": "string",
                        "description": "Winners bracket (championship side) or losers bracket (consolation side).",
                        "default": "winners"
                    },
                    "draftId": {
                        "title": "Draft ID",
                        "type": "string",
                        "description": "Sleeper draft ID (used by mode=draft / draftPicks)."
                    },
                    "username": {
                        "title": "Username",
                        "type": "string",
                        "description": "Sleeper username (used by mode=user / userLeagues / userDrafts)."
                    },
                    "season": {
                        "title": "Season (mode=userLeagues / userDrafts / playerOwnership)",
                        "type": "string",
                        "description": "4-digit season year, e.g. `2025`. If omitted, the actor uses Sleeper's current (or most recently completed) season for the chosen sport."
                    },
                    "maxItems": {
                        "title": "Max items",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Hard cap on emitted records.",
                        "default": 25
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Optional. Sleeper's public API is not blocked from Apify's datacenter IPs; this is only used as an automatic fallback if the API starts returning 403/429 responses.",
                        "default": {
                            "useApifyProxy": 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
                                    }
                                }
                            },
                            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
