BaseballSharp is an unofficial .NET API SDK for accessing the public facing (but undocumented) MLB (Major League Baseball) Stats API. Currently runs on .NET 8.
Clone the repository or install from Nuget. Next, import Baseball Sharp into your project with:
using BaseballSharp;
The solution contains two projects:
- BaseballSharp - The MLB Stats API wrapper library.
- BaseballSharpCli - Command line app which contains an example implementation of Baseball Sharp's features.
- Read the getting started guide.
- View the API reference.
- Read the changelog.
- Continue implementing API endpoints and helper functions.
- Add unit tests.
This package and its author are not affiliated with MLB or any MLB team. This API wrapper interfaces with MLB's Stats API. Use of MLB data is subject to the notice posted at http://gdx.mlb.com/components/copyright.txt.