Skip to main content
The schedule command returns game schedules and scores for the NFL and NBA. For the NFL it retrieves the current week’s full slate of games. For the NBA it defaults to today’s games, and you can look up any date with the --date flag. All output is JSON by default — pipe it through jq or use it directly in scripts.

Syntax

Arguments

path.league
string
required
The league to fetch the schedule for. Must be nfl or nba.

Options

query.--date
string
A specific date in YYYY-MM-DD format. Only applies to the NBA — the NBA schedule defaults to today when omitted. This flag has no effect for NFL.
query.--json
boolean
Output raw JSON. The schedule command always outputs JSON; this flag is accepted for consistency with other commands and for use in scripts that check for the flag explicitly.

Examples

Sample output

The --date flag only applies to NBA. Passing --date with nfl as the league has no effect; the NFL schedule always returns the current week.
Pipe the output into jq to filter for specific teams or game statuses: