curl "https://api.basketballapi.net/v1/games/gm_60NTZGSD/shots" \
-H "Authorization: Bearer bba_live_your_key"
import requests
r = requests.get("https://api.basketballapi.net/v1/games/gm_60NTZGSD/shots",
headers={"Authorization": "Bearer bba_live_your_key"})
print(r.json()["data"])
const r = await fetch("https://api.basketballapi.net/v1/games/gm_60NTZGSD/shots", {
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/shots", 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
}
},
"shots": [
{
"seq": 412,
"period": 4,
"side": "text",
"team": { "id": "tm_8EB4D858" },
"player": {
"id": "pl_EDA561C6",
"name": "Example name"
},
"value": 3,
"made": true,
"points": 2,
"x_ft": -7.2,
"y_ft": 14.5,
"distance_ft": 16.2,
"fastbreak": true,
"second_chance": true,
"off_turnover": true,
"at": "2026-10-01T19:45:00Z"
}
]
},
"meta": { "plan": "Free key" }
}