Get football play-by-play
Changed onReturns every drive & play of 1 game, by quarter. Each play has its clock, down & distance, details, penalties & linked posts. Each request costs 1 credit.
Request
- Base URLhttps://xquik.com
- URLhttps://xquik.com/api/v1/x/sports/{league}/games/{id}/plays
- Auth
- API key in header x-api-key
- or HTTP bearer
- or none
Path parameters
nfl for the NFL or ncaafb for college football, in any case. Another value gets a free 400 invalid_league before X is read.
Game ID, a number up to 19 digits. GET /x/sports/{league}/games lists them. Another value gets a free 400 invalid_game_id before X is read.
Query parameters
Fields to keep in each row, comma-separated. Use dots for nested fields, such as author.username. A list keeps the field in each item. Case & underscores do not matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics always stay. An unknown name answers 400 unknown_field with the valid names, before any read. The price stays the same. SDK row types then hold only the named fields. A longer URL fails at the edge before Xquik reads it. Pick only the fields you need with fields & omit.
Fields to drop from each row, comma-separated. It takes the same names as fields. With fields, it drops from the kept fields. A longer URL fails at the edge before Xquik reads it.
Response
The game's drives & plays
Example response
{
"id": "2055084502741811200",
"league": "nfl",
"homeTeamId": "689566294702555136",
"awayTeamId": "689566304366292992",
"quarters": [
{
"id": "quarter-1",
"number": 1,
"sequence": 1,
"drives": []
}
],
"teams": {},
"players": {}
}Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking