json NBA data feeds?

Home for all your discussion of basketball statistical analysis.
Post Reply
Ori
Posts: 4
Joined: Tue Dec 04, 2012 11:43 pm

json NBA data feeds?

Post by Ori »

Hi all,

Does anyone have a good source for NBA data in json format? By searching online I've come across the NBA source that another user posted:
http://data.nba.com/5s/json/cms/noseaso ... games.json
http://data.nba.com/10s/json/cms/noseas ... pbp_1.json

Unfortunately, for the "game" data I don't know what the code at the end of the feed is: "0021200013" so I'm not sure how I'd apply this systematically.

If anyone had recommendations or somewhere else that I could get the data, that would be great.

Thanks,
Ori
TheSpiceWeasel
Posts: 18
Joined: Mon Oct 22, 2012 2:43 pm
Location: Eden Prairie
Contact:

Re: json NBA data feeds?

Post by TheSpiceWeasel »

Ori wrote:Hi all,

Does anyone have a good source for NBA data in json format? By searching online I've come across the NBA source that another user posted:
http://data.nba.com/5s/json/cms/noseaso ... games.json
http://data.nba.com/10s/json/cms/noseas ... pbp_1.json

Unfortunately, for the "game" data I don't know what the code at the end of the feed is: "0021200013" so I'm not sure how I'd apply this systematically.

If anyone had recommendations or somewhere else that I could get the data, that would be great.

Thanks,
Ori
Have you tried others? Maybe "0021200014" or "0021200012"? Or how about all the way down to "0021200001" or up to "0021201230" (30 * 41 = 1230 games)?
logicdotcom
Posts: 1
Joined: Sun Jun 16, 2013 8:50 am

Re: json NBA data feeds?

Post by logicdotcom »

Unfortunately, for the "game" data I don't know what the code at the end of the feed is: "0021200013" so I'm not sure how I'd apply this systematically.
While I'm not sure exactly how that number is formed, it seems to be used as a unique identifier for each game on nba.com.

For example: Pull up all of the scores for that date, 2012/11/26, http://www.nba.com/gameline/20121126/. If you look at the HTML and search for "0021200013" -- you'll see that the <DIV> representing that particular game has an ID attribute of "nbaGL0021200013"(in full -> <div id="nbaGL0021200013" class="RecapOT GameLine">).

If you do the same HTML search on that game's page, http://www.nba.com/games/20121126/NYKBKN/gameinfo.html, you'll see many references to it in links to highlight videos, pictures, etc.
xkonk
Posts: 307
Joined: Fri Apr 15, 2011 12:37 am

Re: json NBA data feeds?

Post by xkonk »

In some football stuff I've done, part of the game ID used a code to reference the teams and/or home stadium. You could try seeing if any of those chunks of numbers repeat across games.
Post Reply