Skip to main content

nba_pbp

Endpoint URL#

https://stats.nba.com/stats/playbyplay

Valid URL#

https://stats.nba.com/stats/playbyplay?EndPeriod=1&GameID=0021700807&StartPeriod=1

Parameters#

API Parameter NameParameterPatternRequiredNullable
EndPeriodend_periodY
GameIDgame_id^\d{10}$Y
StartPeriodstart_periodY

Data Sets#

AvailableVideo available_video#

['VIDEO_AVAILABLE_FLAG']

PlayByPlay play_by_play#

['GAME_ID', 'EVENTNUM', 'EVENTMSGTYPE', 'EVENTMSGACTIONTYPE', 'PERIOD', 'WCTIMESTRING', 'PCTIMESTRING', 'HOMEDESCRIPTION', 'NEUTRALDESCRIPTION', 'VISITORDESCRIPTION', 'SCORE', 'SCOREMARGIN']

JSON#

{    "data_sets": {        "AvailableVideo": [            "VIDEO_AVAILABLE_FLAG"        ],        "PlayByPlay": [            "GAME_ID",            "EVENTNUM",            "EVENTMSGTYPE",            "EVENTMSGACTIONTYPE",            "PERIOD",            "WCTIMESTRING",            "PCTIMESTRING",            "HOMEDESCRIPTION",            "NEUTRALDESCRIPTION",            "VISITORDESCRIPTION",            "SCORE",            "SCOREMARGIN"        ]    },    "endpoint": "PlayByPlay",    "last_validated_date": "2020-08-15",    "nullable_parameters": [],    "parameter_patterns": {        "EndPeriod": null,        "GameID": "^\\d{10}$",        "StartPeriod": null    },    "parameters": [        "EndPeriod",        "GameID",        "StartPeriod"    ],    "required_parameters": [        "EndPeriod",        "GameID",        "StartPeriod"    ],    "status": "success"}

Last validated 2020-08-16