> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Sleeper

> Fantasy football leagues, rosters, matchups, transactions, drafts, players and trending adds/drops from Sleeper's free read-only API.

![](https://mintcdn.com/webrouter/T_A5Quwg50s_JK2y/logo/data-apis/sleeper.webp?fit=max\&auto=format\&n=T_A5Quwg50s_JK2y\&q=85\&s=25a788cd517224021c98009687683b1c)

[Web Catalog · Sports](https://docs.webrouter.net/data-apis.md?category=sports)

No key needed

Endpoints

10

Auth

None

[Vendor docs](https://docs.sleeper.com/)

## Notes

* Keyless and read-only; free for non-commercial use (commercial use needs a licence from Sleeper).
* Stay under 1000 calls a minute or the IP may be blocked.
* The full player map (players.list) is about 5MB: fetch it at most once a day and keep it; other calls return player ids to look up in it.

## Endpoints

GET

Get a user

A user's id, username, display name and avatar, by username or user id.

[Open](#sleeper-users-get)

GET

List a user's leagues

All leagues of a user for a sport and season.

[Open](#sleeper-users-leagues)

GET

Get a league

A league's settings, scoring, roster positions and status.

[Open](#sleeper-leagues-get)

GET

List a league's rosters

Every roster in a league with its players, starters, owner and record.

[Open](#sleeper-leagues-rosters)

GET

List a league's users

Users in a league with their team names.

[Open](#sleeper-leagues-users)

GET

Get a week's matchups

Matchups of a league for one week, with points per roster and starter.

[Open](#sleeper-leagues-matchups)

GET

List a week's transactions

Free-agent moves, waivers and trades of a league in one week.

[Open](#sleeper-leagues-transactions)

GET

Get the current season state

Current week, season, season type and related dates for a sport.

[Open](#sleeper-state)

GET

Get all players

Map of every player by player id, optionally filtered by position or active status.

[Open](#sleeper-players-list)

GET

Get trending players

Players most added or dropped across Sleeper leagues recently.

[Open](#sleeper-players-trending)

### Get a user

GET

`/user/{user}`

`sleeper.users.get`

A user's id, username, display name and avatar, by username or user id.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `user`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        Username or user id.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.sleeper.com/) · Same job: [AnyAPI](https://docs.webrouter.net/data-apis/anyapi.md#anyapi-facebook-profile), [Aviato](https://docs.webrouter.net/data-apis/aviato.md#aviato-company-social-metrics), [DEV Community](https://docs.webrouter.net/data-apis/dev-to.md#dev-to-users-get), [Facebook Pages (Graph API)](https://docs.webrouter.net/data-apis/facebook.md#facebook-page-get), [Fetchin](https://docs.webrouter.net/data-apis/fetchinio.md#fetchinio-post-reactions), [HarvestAPI](https://docs.webrouter.net/data-apis/harvestapi.md#harvestapi-linkedin-post-reactions)

### List a user's leagues

GET

`/user/{user_id}/leagues/{sport}/{season}`

`sleeper.users.leagues`

All leagues of a user for a sport and season.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `user_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        Numeric user id (from sleeper.users.get).
      </td>
    </tr>

    <tr><td>`sport` required</td><td>string</td><td>path</td><td>Sport; only nfl is documented for leagues and drafts. Example `nfl`</td></tr>
    <tr><td>`season` required</td><td>string</td><td>path</td><td>Season year. Example `2018`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.sleeper.com/)

### Get a league

GET

`/league/{league_id}`

`sleeper.leagues.get`

A league's settings, scoring, roster positions and status.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `league_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        League id.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.sleeper.com/)

### List a league's rosters

GET

`/league/{league_id}/rosters`

`sleeper.leagues.rosters`

Every roster in a league with its players, starters, owner and record.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `league_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        League id.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.sleeper.com/)

### List a league's users

GET

`/league/{league_id}/users`

`sleeper.leagues.users`

Users in a league with their team names.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `league_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        League id.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.sleeper.com/)

### Get a week's matchups

GET

`/league/{league_id}/matchups/{week}`

`sleeper.leagues.matchups`

Matchups of a league for one week, with points per roster and starter.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `league_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        League id.
      </td>
    </tr>

    <tr><td>`week` required</td><td>integer</td><td>path</td><td>Week number. Example `1`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.sleeper.com/)

### List a week's transactions

GET

`/league/{league_id}/transactions/{round}`

`sleeper.leagues.transactions`

Free-agent moves, waivers and trades of a league in one week.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `league_id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        League id.
      </td>
    </tr>

    <tr><td>`round` required</td><td>integer</td><td>path</td><td>The week to pull transactions from. Example `1`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.sleeper.com/)

### Get the current season state

GET

`/state/{sport}`

`sleeper.state`

Current week, season, season type and related dates for a sport.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`sport` required</td><td>string</td><td>path</td><td>Sport: nfl, nba, lcs, etc. Example `nfl`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.sleeper.com/)

```python Python theme={null}
router.call_data_api("sleeper.state", {'sport': 'nfl'})
```

```text MCP theme={null}
call_data_api(endpoint="sleeper.state", params={"sport": "nfl"})
```

### Get all players

GET

`/players/{sport}`

`sleeper.players.list`

Map of every player by player id, optionally filtered by position or active status.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`sport` required</td><td>string</td><td>path</td><td>Sport. Example `nfl`</td></tr>
    <tr><td>`position`</td><td>string</td><td>query</td><td>Only players whose fantasy positions include this one. Example `QB`</td></tr>

    <tr>
      <td>
        `active`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        true for active players only; any other value is ignored.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.sleeper.com/)

```python Python theme={null}
router.call_data_api("sleeper.players.list", {'sport': 'nfl', 'position': 'QB'})
```

```text MCP theme={null}
call_data_api(endpoint="sleeper.players.list", params={"sport": "nfl", "position": "QB"})
```

> [!NOTE]
>
> * About 5MB unfiltered; call at most once a day.

### Get trending players

GET

`/players/{sport}/trending/{type}`

`sleeper.players.trending`

Players most added or dropped across Sleeper leagues recently.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`sport` required</td><td>string</td><td>path</td><td>Sport. Example `nfl`</td></tr>
    <tr><td>`type` required</td><td>string</td><td>path</td><td>add or drop. One of `add`, `drop`</td></tr>

    <tr>
      <td>
        `lookback_hours`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Hours to look back (default 24).
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Number of results (default 25).
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://docs.sleeper.com/)

> [!NOTE]
>
> * Sleeper asks for attribution when you display trending data.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.