---
title: "Get the rosters of an NFL game"
method: GET
path: "/api/v1/x/sports/{league}/games/{id}/roster"
tags: ["Sports"]
---

# Get the rosters of an NFL game

`GET /api/v1/x/sports/{league}/games/{id}/roster`

## Request

- Base URL: `https://xquik.com`
- URL: `https://xquik.com/api/v1/x/sports/{league}/games/{id}/roster`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer
  - none

Returns both teams' players for 1 NFL game. Each player has a jersey, position, headshot & X account. Each request costs 1 credit.

## Path parameters

- `league` 'nfl', required
- `id` string, required

## Query parameters

- `fields` string
- `omit` string

## Response `200`

Both teams' rosters

- FootballRoster: Both teams' rosters for 1 NFL game.
  - `id` string, required: The ID of the game these rosters cover.
  - `league` 'nfl', required: The league of the game these rosters cover.
  - `rosters` FootballRosterTeam[], required: Each team's roster, in X's order.
    - `teamId` string, required: The team this roster belongs to, a key of teams.
    - `playerIds` string[], required: The team's players in X's order, keys of players.
  - `teams` object, required: The 2 teams, by team ID.
  - `players` object, required: Every rostered player, by player ID. Rosters carry no college or birth details & only a medium headshot, so the rest are null.

## Other responses

- `400`: Invalid input. A value past its maxLength gets this answer, & the message names the field & its limit. Bad input costs nothing, since it's refused before any read.
- `401`: Unauthenticated
- `402`: Payment required. MPP reads include `WWW-Authenticate`. Authenticated reads include balances, plus checkout when the key can open it. A key that reads only gets the account page instead. A failed request never creates checkout. A caller on a plan gets top-up only, plus `credits_renew_at` when the plan renews. Guest keys offer top-up.
- `403`: The API key is paused. Resume it at dashboard.xquik.com/api-keys & its next call goes through.
- `404`: Not found
- `424`: Dependency unavailable, unauthorized, or limited. Default v1 uses 502. Best-practice responses use 424 for transparent dependency failures. Search answers 424 `search_unavailable` when X fails the query itself, or when a filtered search goes far back without a match. The message says how far back the search looked. "X can't run this search" appears only when it's true. Searches X can't run fail at once, with the fix. When X fails a read, Xquik answers 502 `x_api_unavailable` with `X-Xquik-Cause` & `Retry-After`. Retry after that many seconds.
- `429`: Too many requests right now. Each user gets 500 reads a second. Each minute allows 120 writes & 60 deletes. `x_api_rate_limited` means X limits this read for now. Neither answer costs anything. Wait for the seconds in `Retry-After`, then retry.
- `500`: Unexpected error.
- `502`: Dependency unavailable, unauthorized, or limited. Default v1 uses 502. Best-practice responses use 424 for transparent dependency failures. Search answers 424 `search_unavailable` when X fails the query itself, or when a filtered search goes far back without a match. The message says how far back the search looked. "X can't run this search" appears only when it's true. Searches X can't run fail at once, with the fix. When X fails a read, Xquik answers 502 `x_api_unavailable` with `X-Xquik-Cause` & `Retry-After`. Retry after that many seconds.
- `503`: Retry x_api_unavailable after Retry-After. With X-Xquik-Busy, retry until your deadline. Overload is announced with 503, `Retry-After` & a reason.
- `default`: Unexpected error.

## Changes

- **2026-10-31** `2e8e935f1661`: 1 info
  - endpoint added
- **2026-10-31** `c57c57352955`: 1 breaking
  - api path removed without deprecation
- **2026-10-30** `02f0b86fb58d`: 1 breaking
  - api path removed without deprecation
- **2026-10-30** `d7a994ca1067`: 1 info
  - endpoint added
- **2026-10-30** `722bcc0a4fec`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/xquik-dev/apis/xquik-api/changes/api/v1/x/sports/:league/games/:id/roster/get.md)

---

[API](https://skmtc.dev/xquik-dev/apis/xquik-api.md) - [All operations](https://skmtc.dev/xquik-dev/apis/xquik-api/llms.txt) - [OpenAPI document](https://skmtc.dev/xquik-dev/apis/xquik-api/revisions/2e8e935f1661?raw)
