NBA player profile and career stats
A player's bio (team, number, position, height, weight, birth date, school, country, draft year, round and number, seasons, first and last year), headline stats, and season-by-season regular season, playoff, All-Star and college stats with career totals and season rankings.
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
| name | type | description |
|---|---|---|
idrequired | string | Player id like 2544 from /nba/v1/players/search, or an nba.com player link. Example: 2544 |
per_mode | per_game | totals | per_36 | per_game (default), totals or per_36. |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/nba/v1/player?id=2544" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/nba/v1/player",
params={"id": "2544"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/nba/v1/player");
url.searchParams.set("id", "2544");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); 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)
{"person_id": 2544,"first_name": "LeBron","last_name": "James","display_first_last": "LeBron James","display_last_comma_first": "James, LeBron","display_fi_last": "L. James","player_slug": "lebron-james","birthdate": "1984-12-30T00:00:00","school": "St. Vincent-St. Mary HS (OH)","country": "USA","last_affiliation": "St. Vincent-St. Mary HS (OH)/USA","height": "6-9","weight": "250","season_exp": 23,"jersey": "23","position": "Forward","rosterstatus": "Active","games_played_current_season_flag": "Y","team_id": 1610612755,"team_name": "76ers","team_abbreviation": "PHI","team_code": "sixers","team_city": "Philadelphia","playercode": "lebron_james","from_year": 2003,"to_year": 2026,"dleague_flag": "N","nba_flag": "Y","games_played_flag": "Y","draft_year": "2003","draft_round": "1","draft_number": "1","greatest_75_flag": "Y","supplemental_status": 0,"url": "https://www.nba.com/player/2544/lebron-james","headshot": "https://cdn.nba.com/headshots/nba/latest/1040x760/2544.png","headline_stats": {"player_id": 2544,"player_name": "LeBron James","time_frame": "2026-27","pts": 15.7,"ast": 7.4,"reb": 7.4,"pie": 0},"per_mode": "PerGame","career": {"regular_season": [{"player_id": 2544,"season_id": "2003-04","league_id": "00","team_id": 1610612739,"team_abbreviation": "CLE","player_age": 19,"gp": 79,"gs": 79,"min": 39.5,"fgm": 7.9,"fga": 18.9,"fg_pct": 0.417,"fg3_m": 0.8,"fg3_a": 2.7,"fg3_pct": 0.29,"ftm": 4.4,"fta": 5.8,"ft_pct": 0.754,"oreb": 1.3,"dreb": 4.2,"reb": 5.5,"ast": 5.9,"stl": 1.6,"blk": 0.7,"tov": 3.5,"pf": 1.9,"pts": 20.9},{"player_id": 2544,"season_id": "2004-05","league_id": "00","team_id": 1610612739,"team_abbreviation": "CLE","player_age": 20,"gp": 80,"gs": 80,"min": 42.4,"fgm": 9.9,"fga": 21.1,"fg_pct": 0.472,"fg3_m": 1.4,"fg3_a": 3.9,"fg3_pct": 0.351,"ftm": 6,"fta": 8,"ft_pct": 0.75,"oreb": 1.4,"dreb": 6,"reb": 7.4,"ast": 7.2,"stl": 2.2,"blk": 0.7,"tov": 3.3,"pf": 1.8,"pts": 27.2},"… 22 more"],"regular_season_totals": {"player_id": 2544,"league_id": "00","team_id": 0,"gp": 1629,"gs": 1627,"min": 37.6,"fgm": 9.8,"fga": 19.4,"fg_pct": 0.507,"fg3_m": 1.6,"fg3_a": 4.7,"fg3_pct": 0.348,"ftm": 5.5,"fta": 7.4,"ft_pct": 0.737,"oreb": 1.1,"dreb": 6.3,"reb": 7.5,"ast": 7.4,"stl": 1.5,"blk": 0.7,"tov": 3.5,"pf": 1.8,"pts": 26.7},"playoffs": [{"player_id": 2544,"season_id": "2005-06","league_id": "00","team_id": 1610612739,"team_abbreviation": "CLE","player_age": 21,"gp": 13,"gs": 13,"min": 46.5,"fgm": 11.2,"fga": 23.6,"fg_pct": 0.476,"fg3_m": 1.6,"fg3_a": 4.8,"fg3_pct": 0.333,"ftm": 6.7,"fta": 9.1,"ft_pct": 0.737,"oreb": 1.7,"dreb": 6.4,"reb": 8.1,"ast": 5.8,"stl": 1.4,"blk": 0.7,"tov": 5,"pf": 3.4,"pts": 30.8},{"player_id": 2544,"season_id": "2006-07","league_id": "00","team_id": 1610612739,"team_abbreviation": "CLE","player_age": 22,"gp": 20,"gs": 20,"min": 44.7,"fgm": 8.3,"fga": 20,"fg_pct": 0.416,"fg3_m": 1.1,"fg3_a": 3.8,"fg3_pct": 0.28,"ftm": 7.4,"fta": 9.8,"ft_pct": 0.755,"oreb": 1.3,"dreb": 6.8,"reb": 8.1,"ast": 8,"stl": 1.7,"blk": 0.5,"tov": 3.3,"pf": 2,"pts": 25.1},"… 17 more"],"playoffs_totals": {"player_id": 2544,"league_id": "00","team_id": 0,"gp": 302,"gs": 302,"min": 41.2,"fgm": 10.1,"fga": 20.4,"fg_pct": 0.495,"fg3_m": 1.6,"fg3_a": 5,"fg3_pct": 0.332,"ftm": 6.3,"fta": 8.5,"ft_pct": 0.741,"oreb": 1.5,"dreb": 7.4,"reb": 8.9,"ast": 7.2,"stl": 1.7,"blk": 1,"tov": 3.6,"pf": 2.2,"pts": 28.2},"all_star": [{"player_id": 2544,"season_id": "2004-05","league_id": "00","team_id": 1610616833,"team_abbreviation": "EST","player_age": 20,"gp": 1,"gs": 1,"min": 31,"fgm": 6,"fga": 13,"fg_pct": 0.462,"fg3_m": 1,"fg3_a": 4,"fg3_pct": 0.25,"ftm": 0,"fta": 1,"ft_pct": 0,"oreb": 1,"dreb": 7,"reb": 8,"ast": 6,"stl": 2,"blk": 0,"tov": 3,"pf": 0,"pts": 13},{"player_id": 2544,"season_id": "2005-06","league_id": "00","team_id": 1610616833,"team_abbreviation": "EST","player_age": 21,"gp": 1,"gs": 1,"min": 31,"fgm": 12,"fga": 21,"fg_pct": 0.571,"fg3_m": 4,"fg3_a": 10,"fg3_pct": 0.4,"ftm": 1,"fta": 5,"ft_pct": 0.2,"oreb": 2,"dreb": 4,"reb": 6,"ast": 2,"stl": 2,"blk": 0,"tov": 1,"pf": 2,"pts": 29},"… 19 more"],"all_star_totals": {"player_id": 2544,"league_id": "00","team_id": 0,"gp": 23,"gs": 23,"min": 24.2,"fgm": 8.1,"fga": 15.9,"fg_pct": 0.511,"fg3_m": 1.9,"fg3_a": 6.3,"fg3_pct": 0.303,"ftm": 1.3,"fta": 1.8,"ft_pct": 0.738,"oreb": 0.8,"dreb": 4.5,"reb": 5.3,"ast": 5.1,"stl": 1,"blk": 0.3,"tov": 2.7,"pf": 1,"pts": 19.5},"college": [],"college_totals": null,"season_rankings_regular_season": [{"player_id": 2544,"season_id": "2003-04","league_id": "00","team_id": 1610612739,"team_abbreviation": "CLE","player_age": "NR","gp": "NR","gs": "NR","rank_pg_min": 10,"rank_pg_fgm": 10,"rank_pg_fga": 5,"rank_fg_pct": 90,"rank_pg_fg3_m": 69,"rank_pg_fg3_a": 55,"rank_fg3_pct": 92,"rank_pg_ftm": 20,"rank_pg_fta": 13,"rank_ft_pct": 73,"rank_pg_oreb": 83,"rank_pg_dreb": 51,"rank_pg_reb": 58,"rank_pg_ast": 13,"rank_pg_stl": 13,"rank_pg_blk": 51,"rank_pg_tov": 5,"rank_pg_pts": 13,"rank_pg_eff": 31},{"player_id": 2544,"season_id": "2004-05","league_id": "00","team_id": 1610612739,"team_abbreviation": "CLE","player_age": "NR","gp": "NR","gs": "NR","rank_pg_min": 1,"rank_pg_fgm": 2,"rank_pg_fga": 3,"rank_fg_pct": 37,"rank_pg_fg3_m": 33,"rank_pg_fg3_a": 31,"rank_fg3_pct": 71,"rank_pg_ftm": 11,"rank_pg_fta": 10,"rank_ft_pct": 98,"rank_pg_oreb": 75,"rank_pg_dreb": 20,"rank_pg_reb": 29,"rank_pg_ast": 6,"rank_pg_stl": 3,"rank_pg_blk": 58,"rank_pg_tov": 6,"rank_pg_pts": 3,"rank_pg_eff": 2},"… 22 more"],"season_rankings_post_season": [{"player_id": 2544,"season_id": "2005-06","league_id": "00","team_id": 1610612739,"team_abbreviation": "CLE","player_age": "NR","gp": "NR","gs": "NR","rank_pg_min": 2,"rank_pg_fgm": 1,"rank_pg_fga": 1,"rank_fg_pct": 26,"rank_pg_fg3_m": 11,"rank_pg_fg3_a": 10,"rank_fg3_pct": 43,"rank_pg_ftm": 8,"rank_pg_fta": 8,"rank_ft_pct": 53,"rank_pg_oreb": 34,"rank_pg_dreb": 12,"rank_pg_reb": 12,"rank_pg_ast": 7,"rank_pg_stl": 12,"rank_pg_blk": 30,"rank_pg_tov": 1,"rank_pg_pts": 2,"rank_pg_eff": 7},{"player_id": 2544,"season_id": "2006-07","league_id": "00","team_id": 1610612739,"team_abbreviation": "CLE","player_age": "NR","gp": "NR","gs": "NR","rank_pg_min": 1,"rank_pg_fgm": 14,"rank_pg_fga": 6,"rank_fg_pct": 44,"rank_pg_fg3_m": 45,"rank_pg_fg3_a": 30,"rank_fg3_pct": 56,"rank_pg_ftm": 2,"rank_pg_fta": 2,"rank_ft_pct": 39,"rank_pg_oreb": 47,"rank_pg_dreb": 14,"rank_pg_reb": 19,"rank_pg_ast": 5,"rank_pg_stl": 9,"rank_pg_blk": 44,"rank_pg_tov": 12,"rank_pg_pts": 8,"rank_pg_eff": 7},"… 17 more"]},"cached": false,"credits_used": 1}