NBA API — NBA Data Made Simple

Last month, we released our API with the introduction of NFL stats, including games, players, and statistics.

Today, we’re excited to announce the introduction of NBA to the API!


Similar to how we released the NFL API, we’ll be making additions on a weekly basis. Today will introduce two requests:

  1. all regular-season games for a given team in a given year (currently only 2015, or 2016)
  2. all games for every team for the current season.

If you’ve never used our API before, it’s a simple request via URL.

  1. Season games for a given team in a given year:
// 20161118091142
// api.suredbits.com/nba/v0/games/phi/2016
[
{
"startTime": "20170226T063000.000Z",
"gameDay": "Saturday",
"gameId": 21600868,
"finished": false,
"homeTeam": {
"team_id": "NYK",
"city": "New York",
"name": "Knicks"
},
"year": 2016,
"seasonPhase": "Regular",
"awayTeam": {
"team_id": "PHI",
"city": "Philadelphia",
"name": "76ers"
}
},
......the other 80 games.......
,
{
"startTime": "20161115T070000.000Z",
"gameDay": "Monday",
"gameId": 21600149,
"finished": true,
"homeTeam": {
"team_id": "HOU",
"city": "Houston",
"name": "Rockets"
},
"year": 2016,
"seasonPhase": "Regular",
"awayTeam": {
"team_id": "PHI",
"city": "Philadelphia",
"name": "76ers"
}
}
]

2. All regular-season games this season:

// 20161118104840
// api.suredbits.com/nba/v0/games
[
{
"startTime": "20170401T073000.000Z",
"gameDay": "Friday",
"gameId": 21601136,
"finished": false,
"homeTeam": {
"team_id": "GSW",
"city": "Golden State",
"name": "Warriors"
},
"year": 2016,
"seasonPhase": "Regular",
"awayTeam": {
"team_id": "HOU",
"city": "Houston",
"name": "Rockets"
}
},
  {
...the other 2128 games....
  },
{
"startTime": "20161116T090000.000Z",
"gameDay": "Tuesday",
"gameId": 21600156,
"finished": true,
"homeTeam": {
"team_id": "POR",
"city": "Portland",
"name": "Trailblazers"
},
"year": 2016,
"seasonPhase": "Regular",
"awayTeam": {
"team_id": "CHI",
"city": "Chicago",
"name": "Bulls"
}
}
]

Documentation

We’ll be pushing weekly updates and adding more request types as we continue to build out the API.

In the coming weeks, you’ll be able to search games with scores, players, and statistics. Let us know if there’s something you’d like to see implemented!

We’re on Twitter, or you can shoot us an email: support@suredbits.com.