I'll add this. Sean Lahman's Database is also widely used. Though it's mainly whole season statistics, not game by game. Along with post-season, all star games, schools, salaries.
http://www.seanlahman.com/baseball-archive/statistics/
Then of course MLB has a bunch of data here, mainly the PitchF/X data since 2008 is gathered from here.
There's several scrapers to parse the MLB XML data, the most popular (I think) is Baseball On A Stick, in Python:
Re:Open Football Data
by kunwardeepgill on Wednesday May 21, 2014 @01:17PM
(#7779422)
Thank you for sharing this! I just started looking for MLB Data yesterday. Great timing!
Re:Open Football Data
by caseydurfee on Thursday May 22, 2014 @05:22PM
(#7786644)
Awesome, thanks for this. Do you know if there are any good sources of historical betting line info for baseball? It would be fun to put together a quantopian-type site for sports betting.
http://retrosheet.org/
The license on the data is a pretty permissive one, simply requiring attribution of the data to the Retrosheet project. Software to process Retrosheet files is available, under the GPL:
http://chadwick.sourceforge.net/doc/index.html