Page 1 of 1

json NBA data feeds?

Posted: Thu Apr 25, 2013 2:37 am
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

Re: json NBA data feeds?

Posted: Fri Apr 26, 2013 12:37 pm
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)?

Re: json NBA data feeds?

Posted: Sun Jun 16, 2013 9:08 am
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.

Re: json NBA data feeds?

Posted: Sun Jun 16, 2013 8:33 pm
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.