---
title: "List football games"
method: GET
path: "/api/v1/x/sports/{league}/games"
tags: ["Sports"]
---

# List football games

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

## Request

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

Lists NFL or college football games in a time window, with teams & scores. Use it to find game IDs & team IDs. Without from or to, X picks about 5 weeks around today. Each request costs 1 credit.

## Path parameters

- `league` 'nfl' | 'ncaafb', required

## Query parameters

- `from` string
- `to` string
- `team` string
- `fields` string
- `omit` string

## Response `200`

The league's games in the window, earliest first

- FootballSchedule: A league's games in a time window.
  - `league` 'nfl' | 'ncaafb', required: The league whose games this list holds.
  - `games` FootballScheduleGame[], required: The games, earliest first.
    - `id` string, required: The game ID the other sports routes take.
    - `seasonType` string, nullable, required: This game's part of the season, such as RegularSeason.
    - `week` integer, nullable, required: This game's week of the season.
    - `startsAt` string, date-time, nullable, required: This game's kickoff time in UTC, or null when Xquik cannot read it.
    - `status` string, nullable, required: This game's status from X, such as Scheduled, InProgress or Closed.
    - `clock` string, nullable, required: This game's clock, as X writes it.
    - `quarter` integer, nullable, required: This game's current or last quarter.
    - `home` FootballTeamScore, required: A team's side of a game & its points.
      - `teamId` string, nullable, required: The team, a key of teams.
      - `points` integer, nullable, required: The team's points so far.
    - `away` FootballTeamScore, required: A team's side of a game & its points.
      - `teamId` string, nullable, required: The team, a key of teams.
      - `points` integer, nullable, required: The team's points so far.
    - `teamIds` string[], required: The game's teams, keys of teams.
    - `periods` FootballSchedulePeriod[], required: The periods played so far.
      - `type` string, nullable, required: X's name for the period, such as Quarter.
    - `odds` object, nullable, required: Betting odds for each team, or null when X has none.
      - `home` FootballOdds, required: Betting odds titles for 1 team, as X shows them.
        - `moneyLine` string, nullable, required: The money line. X sends it for the away team only.
        - `spread` string, nullable, required: The point spread.
        - `total` string, nullable, required: The over or under total.
      - `away` FootballOdds, required: Betting odds titles for 1 team, as X shows them.
        - `moneyLine` string, nullable, required: The money line. X sends it for the away team only.
        - `spread` string, nullable, required: The point spread.
        - `total` string, nullable, required: The over or under total.
  - `teams` object, required: The teams the games name, by team ID.

## 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.
- `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/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)
