curl "https://api.basketballapi.net/v1/games/gm_60NTZGSD/playbyplay" \
-H "Authorization: Bearer bba_live_your_key"
import requests
r = requests.get("https://api.basketballapi.net/v1/games/gm_60NTZGSD/playbyplay",
headers={"Authorization": "Bearer bba_live_your_key"})
print(r.json()["data"])
const r = await fetch("https://api.basketballapi.net/v1/games/gm_60NTZGSD/playbyplay", {
headers: { Authorization: "Bearer bba_live_your_key" }
});
const { data } = await r.json();
$ctx = stream_context_create(['http' => [
'header' => "Authorization: Bearer bba_live_your_key",
]]);
$r = json_decode(file_get_contents("https://api.basketballapi.net/v1/games/gm_60NTZGSD/playbyplay", false, $ctx), true);
200Example answer, in shape
{
"data": {
"game": {
"id": "gm_C513E9BF",
"competition": {
"id": "cp_929127FC",
"name": "Example name"
},
"season": {
"id": "ss_EBC81C6D",
"name": "Example name"
},
"stage": "regular",
"round": "12",
"date": "2026-10-01",
"tip_off": "2026-10-01T19:45:00Z",
"status": "scheduled",
"home": {
"id": "tm_8EB4D858",
"name": "Example name"
},
"away": {
"id": "tm_8EB4D858",
"name": "Example name"
},
"home_score": 88,
"away_score": 81,
"attendance": 11204,
"venue": "text",
"has": {
"boxscore": true,
"playbyplay": true,
"shots": true
}
},
"events": [
{
"seq": 412,
"period": 4,
"clock": "05:42",
"side": "home",
"team": { "id": "tm_8EB4D858" },
"player": {
"id": "pl_EDA561C6",
"name": "Example name"
},
"type": "two_made",
"description": "made a three",
"distance_ft": 12,
"home_score": 88,
"away_score": 81
}
]
},
"meta": { "plan": "Free key" }
}