NBA shot chart

GET https://api.api.sh/nba/v1/shots
1 credit / call sports try it in the playground →

Every shot of a player, team or game: game, period, time left, action and shot type, zone, area, range, distance, court coordinates, made or missed, plus the league averages by zone and a made/attempted summary. Pass next_page back as page; null on the last page.

Every response includes credits_used: the credits this call cost.

Part of the NBA API: 22 endpoints with prices, use cases and example responses.

Parameters

nametypedescription
player string Player id (or nba.com player link). Example: 2544
team string Team abbreviation (LAL, BOS ...) or nickname.
game_id string Only this game.
season string Season as 2025-26 or its first year 2025; the current season by default.
season_type regular | playoffs | preseason | play-in | cup | all-star regular (default), playoffs, preseason, play-in, cup (NBA Cup) or all-star.
context_measure FGA | FGM | FG3A | FG3M | PTS FGA (default), FGM, FG3A, FG3M or PTS.
opponent string Only against this team.
location home | road home or road.
outcome W | L W or L.
period integer Only this period.
month integer Month of the season (1 = October).
last_n_games integer Only the last N games.
start_date string From date (YYYY-MM-DD).
end_date string To date (YYYY-MM-DD).
page integer Page number, from 1.
limit integer Shots per page (1-2000, default 500).

Every endpoint also takes fresh, raw, fields (see lean responses and caching).

Example

curl "https://api.api.sh/nba/v1/shots?player=2544&season=2025-26" \
  -H "x-api-key: $APISH_KEY"

Response

A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).

Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)

{"applied_filters": {"player": 2544,"team": null,"game_id": null,"season": "2025-26","season_type": "Regular Season","context_measure": "FGA","outcome": null,"location": null,"period": null,"start_date": null,"end_date": null},"summary": {"attempts": 919,"made": 473,"fg_pct": 0.515},"total": 919,"page": 1,"count": 500,"next_page": 2,"shots": [{"grid_type": "Shot Chart Detail","game_id": "0022500012","game_event_id": 58,"player_id": 2544,"player_name": "LeBron James","team_id": 1610612747,"team_name": "Los Angeles Lakers","period": 1,"minutes_remaining": 7,"seconds_remaining": 5,"event_type": "Missed Shot","action_type": "Jump Shot","shot_type": "3PT Field Goal","shot_zone_basic": "Above the Break 3","shot_zone_area": "Right Side Center(RC)","shot_zone_range": "24+ ft.","shot_distance": 26,"loc_x": 176,"loc_y": 200,"shot_attempted_flag": 1,"shot_made_flag": 0,"game_date": "20251225","htm": "LAL","vtm": "HOU"},{"grid_type": "Shot Chart Detail","game_id": "0022500012","game_event_id": 127,"player_id": 2544,"player_name": "LeBron James","team_id": 1610612747,"team_name": "Los Angeles Lakers","period": 1,"minutes_remaining": 1,"seconds_remaining": 42,"event_type": "Made Shot","action_type": "Pullup Jump shot","shot_type": "3PT Field Goal","shot_zone_basic": "Above the Break 3","shot_zone_area": "Left Side Center(LC)","shot_zone_range": "24+ ft.","shot_distance": 25,"loc_x": -153,"loc_y": 200,"shot_attempted_flag": 1,"shot_made_flag": 1,"game_date": "20251225","htm": "LAL","vtm": "HOU"},"… 498 more"],"league_averages": [{"grid_type": "League Averages","shot_zone_basic": "Above the Break 3","shot_zone_area": "Back Court(BC)","shot_zone_range": "Back Court Shot","fga": 9,"fgm": 6,"fg_pct": 0.667},{"grid_type": "League Averages","shot_zone_basic": "Above the Break 3","shot_zone_area": "Center(C)","shot_zone_range": "24+ ft.","fga": 17226,"fgm": 6062,"fg_pct": 0.352},"… 18 more"],"cached": false,"credits_used": 1}
The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.