Sports
NFL & college football play-by-play API by drive
Get every drive & play of 1 NFL or college football game from X, with each down & distance, players, penalties & linked video posts. 1 credit per request.
- 200
- 400
- 401
- 402
- 404
- 424
- 429
- 502
- 503
GET
NFL & college football play-by-play API by drive
1 credit per request · All plans from $0.00012/credit · Direct MPP at USD 0.00015 per call · Supports guest paid reads
Read every drive & play of a game
UseGET /x/sports/{league}/games/{id}/plays for a game’s full play-by-play. Find the game ID with
List football games.
quarterslists each quarter in order. Each quarter lists itsdrives, and each drive itsplays.- A drive has its clock, how it started & ended, its first downs & its net yards.
- A play has its clock, down & distance, description & the score after it.
detailslists each step of a play, with its players, yards & any penalty.postis the post X links to the play.videoPostId&videoReplyPostIdpoint to its video.
players, keyed by ID. Steps name players by playerId, with a
playerRole such as Pass or Tackle. Pass a post ID to Get tweet
to read it.
A whole game fits 1 response, so there are no pages. quarters is empty before kickoff.
NFL games name a side as Home or Away in offense, defense, possession & yardlineSide.
College games name it by the team’s alternateId from teams.
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.string
The home team, a key of
teams.string
The away team, a key of
teams.object[]
The game’s quarters, in order. Empty before kickoff.
string
X’s ID for the quarter within the game.
number
The quarter’s number.
number
The quarter’s place in the game, from 1.
object[]
The quarter’s drives, in order.
string
X’s ID for the drive within the game.
number
The drive’s place in the game, from 1.
string
The team with the ball.
Home or Away in NFL games, the team’s alternateId in college games.string
The team on defense, named the way
offense names it.string
The game clock when the drive started, as
HH:MM:SS.string
The game clock when the drive ended, as
HH:MM:SS.string
How the drive started, such as
Kickoff or Punt.string
How the drive ended, such as
Touchdown or Punt.number
The drive’s plays.
number
The first downs the drive gained.
number
The yards the drive gained.
boolean
Whether the drive scored.
object[]
The drive’s plays, in order.
string
X’s ID for the play within the game.
string
The play’s place in its drive, as X writes it.
string
The game clock when the play started, as
HH:MM:SS.string
X’s kind of play, such as
Pass, Rush, Punt or Conversion.string
Where the play went, such as
Left or Middle.string
The play as the official play-by-play writes it.
boolean
Whether the play scored points.
number
The home team’s points after the play.
number
The away team’s points after the play.
object
For a scoring play, its
points & the homePoints & awayPoints after it. Null otherwise.object
Down & distance when the play started, or null.
number
The down, from 1 to 4.
number
The yards needed for a first down.
number
The yard line of the ball.
string
Whose half the ball was in.
Home or Away in NFL games, the team’s alternateId in college
games.string
The team with the ball.
Home or Away in NFL games, the team’s alternateId in college games.object
Flags X shows on the field, or null.
calledBack means a penalty called the play back.
penaltyOnField means a flag was thrown. timeout means a timeout followed. underReview means
officials were reviewing the play.object[]
The play’s steps, in order, such as a pass, a tackle or a penalty.
number
The step’s place in the play, from 1.
string
X’s kind of step, such as
Pass, Tackle or Penalty.string
What happened in the step.
string
The direction X gives for the step.
number
The yards the step gained or lost.
object[]
The players in the step. Each has
playerId, a key of players, & playerRole, such as Pass,
Receive or Tackle.object
The penalty this step called, or null. It has
description, nextDown, result, yards &
teamId, the penalized team.object
The post X links to the play, with
id & the author’s username. Null when X links none.string
The ID of a post with the play’s video.
string
The ID of a reply with the play’s video.
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.