競
NBA API
3 endpointsSports & GamingUSsocial:read
Returns NBA scoreboard games, season schedules and per-game box scores.
View as Markdown| GET | /nba/scoreboard | The games of the NBA day the CDN is showing now, with their state, score and records. |
| GET | /nba/schedule | The games of the current NBA season, optionally of one team or one day, with the arena and state. |
| GET | /nba/boxscore | The box score of one NBA game: each player's points, rebounds, assists and shooting for both teams. |
scoreboard
GET
/v1/nba/scoreboardThe games of the NBA day the CDN is showing now, with their state, score and records.
scope social:read1 unit
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
24 fields
date | string |
items | Game[] |
away | Team |
city | string |
id | string |
losses | integer (int64) |
name | string |
score | integer (int64) |
tricode | string |
wins | integer (int64) |
clock | string |
home | Team |
city | string |
id | string |
losses | integer (int64) |
name | string |
score | integer (int64) |
tricode | string |
wins | integer (int64) |
id | string |
period | integer (int64) |
startsAt | string |
status | string |
text | string |
curl "https://api.hoshime.com/v1/nba/scoreboard" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/nba/scoreboard", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/nba/scoreboard", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "date": "…", "items": [ { "away": { "city": null, "id": null, "losses": null, "name": null, "score": null, "tricode": null, "wins": null }, "clock": "…", "home": { "city": null, "id": null, "losses": null, "name": null, "score": null, "tricode": null, "wins": null }, "id": "abc123", "period": 0, "startsAt": "2026-11-06T09:41:00Z", "status": "…", "text": "…" } ] }, "meta": { "cached": false, "endpoint": "scoreboard", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "nba", "requestId": "req_2Xb9kQ…", "units": 1 } }
schedule
GET
/v1/nba/scheduleThe games of the current NBA season, optionally of one team or one day, with the arena and state.
scope social:read1 unitcached 30 min
Parameters
teamstring | Team code such as LAL to list one team's games. e.g. LAL |
datestring | Day such as 2024-12-25 to list one day's games. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
25 fields
items | ScheduledGame[] |
arena | string |
away | Team |
city | string |
id | string |
losses | integer (int64) |
name | string |
score | integer (int64) |
tricode | string |
wins | integer (int64) |
city | string |
date | string |
home | Team |
city | string |
id | string |
losses | integer (int64) |
name | string |
score | integer (int64) |
tricode | string |
wins | integer (int64) |
id | string |
startsAt | string |
status | string |
text | string |
season | string |
curl "https://api.hoshime.com/v1/nba/schedule?team=LAL" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/nba/schedule?team=LAL", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/nba/schedule?team=LAL", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "items": [ { "arena": "…", "away": { "city": null, "id": null, "losses": null, "name": null, "score": null, "tricode": null, "wins": null }, "city": "…", "date": "…", "home": { "city": null, "id": null, "losses": null, "name": null, "score": null, "tricode": null, "wins": null }, "id": "abc123", "startsAt": "2026-11-06T09:41:00Z", "status": "…", "text": "…" } ], "season": "…" }, "meta": { "cached": false, "endpoint": "schedule", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "nba", "requestId": "req_2Xb9kQ…", "units": 1 } }
boxscore
GET
/v1/nba/boxscoreThe box score of one NBA game: each player's points, rebounds, assists and shooting for both teams.
scope social:read1 unitcached 1 min
Parameters
gameIdstring required | 10-digit NBA game id such as 0022401000. The scoreboard and schedule endpoints list them. e.g. 0022401000 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
35 fields
away | Team |
city | string |
id | string |
losses | integer (int64) |
name | string |
score | integer (int64) |
tricode | string |
wins | integer (int64) |
home | Team |
city | string |
id | string |
losses | integer (int64) |
name | string |
score | integer (int64) |
tricode | string |
wins | integer (int64) |
id | string |
players | PlayerLine[] |
assists | integer (int64) |
blocks | integer (int64) |
fieldGoalsAttempted | integer (int64) |
fieldGoalsMade | integer (int64) |
id | string |
name | string |
plusMinus | integer (int64) |
points | integer (int64) |
position | string |
rebounds | integer (int64) |
starter | boolean |
steals | integer (int64) |
team | string |
threePointersAttempted | integer (int64) |
threePointersMade | integer (int64) |
turnovers | integer (int64) |
status | string |
curl "https://api.hoshime.com/v1/nba/boxscore?gameId=0022401000" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/nba/boxscore?gameId=0022401000", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/nba/boxscore?gameId=0022401000", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "away": { "city": "…", "id": "abc123", "losses": 0, "name": "…", "score": 0, "tricode": "…", "wins": 0 }, "home": { "city": "…", "id": "abc123", "losses": 0, "name": "…", "score": 0, "tricode": "…", "wins": 0 }, "id": "abc123", "players": [ { "assists": 0, "blocks": 0, "fieldGoalsAttempted": 0, "fieldGoalsMade": 0, "id": "abc123", "name": "…", "plusMinus": 0, "points": 0, "position": "…", "rebounds": 0, "starter": false, "steals": 0, "team": "…", "threePointersAttempted": 0, "threePointersMade": 0, "turnovers": 0 } ], "status": "…" }, "meta": { "cached": false, "endpoint": "boxscore", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "nba", "requestId": "req_2Xb9kQ…", "units": 1 } }