About Gameday API
A Ruby library for using the Major League Baseball Gameday statistics data. MLB provides very deep statistics for all major league baseball games through Gameday. Statistics include not only the typical boxscore stats, but also down to the physics of every single pitch thrown in the game. You can find the speed, movement, and position of every pitch thrown. Gameday API makes it easy for Ruby developers to work with all this statistical information. If you are familiar with PITCHf/x data, that is accessible with the Gameday API.

The gameday_api repository is available on both Google Code and GitHub. The respository on Google Code is an Subversion (SVN) repository. The repository on GitHub is a GIT repository. If you do not know what SVN or GIT means, you are probably just interested in downloading the most recent version of the library which you can do from GitHub.
About Gameday
Gameday is a web application produced by Major League Baseball Advanced Media. The Gameday application allows users to experience a live baseball game through a simulation of all game events. Fortunately for fans who have an interest in baseball statistics, MLB makes the underlying statistical data which powers Gameday available to the public. The data is contained in a bunch of XML files on an MLB server. The statistics provided include the details of every single pitch thrown during a game along with its outcome.
Although all of the Gameday data comes from XML files. The good news is that if you are using the Gameday API, you do not have to know anything about XML.
If you'd like to check out the raw Gameday data yourself, you can find it here.
Examples
The test directory included with the source code contains many examples of how the API can be used. Some of the examples currently included are the following:

Get and display all pitchers who have closed a game for Detroit in a specified season.

Get and display all pitchers who have started a game for Detroit in a specified season.

Get details about every pitch thrown during a selected game.

Easily download pitch/fx and other Gameday data files to your local machine.

Dump a complete boxscore for any game specified by date and team.

Get all linescores for any given day

Get all stats for a specified player in a specified year or date

Show a team's roster on any given date

and more...