Sports
NFL & college football box score & player stats API
Get 1 NFL or college football game’s box score from X, with team totals & each player’s passing, rushing, receiving, defense & kicking stats. 1 credit.
- 200
- 400
- 401
- 402
- 404
- 424
- 429
- 502
- 503
GET
NFL & college football box score & player stats API
1 credit per request · All plans from $0.00012/credit · Direct MPP at USD 0.00015 per call · Supports guest paid reads
Read team totals & player stats
UseGET /x/sports/{league}/games/{id}/box-score for a game’s stats. Find the game ID with
List football games.
home&awayhold each team’stotals& aplayerslist.totalshas first downs, third downs, passing, rushing, penalties, turnovers & time of possession.- Each
playersentry has aplayerId& the stat groups X sent for that player. playersat the top holds each player once, keyed by ID, with name, position & photos.
passing. A game that has not started
has no stats yet, so totals is null.
Path parameters
string
required
nfl for the NFL or ncaafb for college football, in any case. Another value gets a free
400 invalid_league.string
required
Game ID, a number up to 19 digits, such as
2055084502741811200.
List football games returns it as id. Another value gets a free
400 invalid_game_id.Query parameters
string
Fields to keep in each row, comma-separated, such as
id,text,author.username. Use dots for nested fields. Case & underscores do not matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics always stay. An unknown name returns 400 unknown_field with the valid names, before any read. The price stays the same.string
Fields to drop from each row, comma-separated, such as
entities,media. It takes the same names as fields. With fields, it drops from the kept fields.Headers
string
Full account key. Sessions and OAuth also work.
string
Bearer xq_your_guest_key_here for paid_reads.Response
200 OK
string
The game ID from your request.
string
The league from your request,
nfl or ncaafb.object
The home team’s totals & player stats.
string
The team, a key of
teams.object
The team’s totals, or null before kickoff.
number
First downs.
object
Third downs tried in
attempts & converted in successes.object
The team’s fumbles, with the fields of a player’s
fumbles.object
The team’s passing, with the fields of a player’s
passing.object
Penalties against the team, as
count & yards.object
The team’s rushing, with the fields of a player’s
rushing.number
Time with the ball, in seconds.
number
Total yards.
number
Turnovers.
object[]
Each player with stats, 1 entry per player. Only the stat groups X sent are present.
string
The player, a key of
players.object
attempts, completions, yards, netYards after sacks, avgYards, touchdowns,
interceptions, sacks, sackYards & the passer rating.object
attempts, yards, avgYards, longest & touchdowns.object
targets, receptions, yards, avgYards per catch, longest & touchdowns.object
tackles solo, combined solo & assisted, tacklesForLoss, sacks with a shared sack as 0.5,
interceptions, passesDefended & forcedFumbles.object
lost to the other team, ownRecoveryTouchdowns & opponentRecoveryTouchdowns.object
returns, yards, avgYards, longest & touchdowns.object
Punt returns, with the fields of
kickReturns.object
Interception returns, with the fields of
kickReturns.object
attempts, yards, avgYards, avgNetYards after returns, inside20 & longest.object
attempts, made & the longest made, in yards.object
Extra point kicks, as
attempts & made.object
2-point conversions by
passSuccesses, rushSuccesses, turnoverSuccesses & defenseSuccesses.object
The away team’s totals & player stats, with the fields of
home.object
The teams this answer names, keyed by team ID.
string
The team ID that games & players refer to.
string
The team’s full name, such as
San Francisco 49ers.string
The team’s short name.
string
The team’s abbreviation, such as
SF.string
Another ID X keeps for the team. College plays & drives name a side by it.
string
The school or place a college team plays for. X sends it only in college schedules.
object[]
The team’s colors. Each has
r, g & b, from 0 to 255.object
The team’s logo links.
default is the one X shows. light & dark suit light or dark
backgrounds.object
The players this answer names, keyed by player ID.
string
The player ID that plays & stats refer to.
string
The player’s team, a key of
teams.string
The player’s full name.
string
The name play descriptions use, such as
B.Purdy.string
The jersey number, as text.
string
The position, such as
QB or DE.string
The college the player came from.
string
Where the player was born.
string
The birth date, as
YYYY-MM-DD.object
Photo links in
original, large, medium & small. Any of them can be null.object
The player’s X account, with
id, username & blueVerified. Null when the player has none.400 Invalid game ID
nfl or ncaafb gets invalid_league. Both
answers are free.
404 Game not found
401 Unauthenticated
Anonymous requests getWWW-Authenticate: Bearer and a guest wallet checkout action. This is not a Payment challenge.
402 Payment required
Account keys get account options. Guest keys get guest top-up only. No checkout starts automatically. Confirm any payment action.502 X API unavailable
Related. List football games · Get football scoreboard · Get football plays