Skip to content

NBA API

3 endpointsSports & GamingUSsocial:read

Returns NBA scoreboard games, season schedules and per-game box scores.

View as Markdown
GET/nba/scoreboardThe games of the NBA day the CDN is showing now, with their state, score and records.
GET/nba/scheduleThe games of the current NBA season, optionally of one team or one day, with the arena and state.
GET/nba/boxscoreThe box score of one NBA game: each player's points, rebounds, assists and shooting for both teams.

scoreboard

GET/v1/nba/scoreboard

The games of the NBA day the CDN is showing now, with their state, score and records.

scope social:read1 unit

Parameters

tunnel
string
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.
proxy
string
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.
profileId
string
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
datestring
itemsGame[]
awayTeam
citystring
idstring
lossesinteger (int64)
namestring
scoreinteger (int64)
tricodestring
winsinteger (int64)
clockstring
homeTeam
citystring
idstring
lossesinteger (int64)
namestring
scoreinteger (int64)
tricodestring
winsinteger (int64)
idstring
periodinteger (int64)
startsAtstring
statusstring
textstring
curl "https://api.hoshime.com/v1/nba/scoreboard" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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/schedule

The 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

team
string
Team code such as LAL to list one team's games.
e.g. LAL
date
string
Day such as 2024-12-25 to list one day's games.
tunnel
string
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.
proxy
string
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.
profileId
string
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
itemsScheduledGame[]
arenastring
awayTeam
citystring
idstring
lossesinteger (int64)
namestring
scoreinteger (int64)
tricodestring
winsinteger (int64)
citystring
datestring
homeTeam
citystring
idstring
lossesinteger (int64)
namestring
scoreinteger (int64)
tricodestring
winsinteger (int64)
idstring
startsAtstring
statusstring
textstring
seasonstring
curl "https://api.hoshime.com/v1/nba/schedule?team=LAL" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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/boxscore

The box score of one NBA game: each player's points, rebounds, assists and shooting for both teams.

scope social:read1 unitcached 1 min

Parameters

gameId
string
required
10-digit NBA game id such as 0022401000. The scoreboard and schedule endpoints list them.
e.g. 0022401000
tunnel
string
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.
proxy
string
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.
profileId
string
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
awayTeam
citystring
idstring
lossesinteger (int64)
namestring
scoreinteger (int64)
tricodestring
winsinteger (int64)
homeTeam
citystring
idstring
lossesinteger (int64)
namestring
scoreinteger (int64)
tricodestring
winsinteger (int64)
idstring
playersPlayerLine[]
assistsinteger (int64)
blocksinteger (int64)
fieldGoalsAttemptedinteger (int64)
fieldGoalsMadeinteger (int64)
idstring
namestring
plusMinusinteger (int64)
pointsinteger (int64)
positionstring
reboundsinteger (int64)
starterboolean
stealsinteger (int64)
teamstring
threePointersAttemptedinteger (int64)
threePointersMadeinteger (int64)
turnoversinteger (int64)
statusstring
curl "https://api.hoshime.com/v1/nba/boxscore?gameId=0022401000" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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
  }
}
esc
↑↓ move↵ open