BaseballSharp 0.1.7

Baseball Sharp is an unofficial .NET wrapper for the MLB Stats API.
View the documentation - https://markjames.dev/Baseball-Sharp/articles/intro.html
Changelog - https://markjames.dev/Baseball-Sharp/articles/changelog.html
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.

Install-Package BaseballSharp -Version 0.1.7
dotnet add package BaseballSharp --version 0.1.7
<PackageReference Include="BaseballSharp" Version="0.1.7" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BaseballSharp --version 0.1.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: BaseballSharp, 0.1.7"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install BaseballSharp as a Cake Addin
#addin nuget:?package=BaseballSharp&version=0.1.7

// Install BaseballSharp as a Cake Tool
#tool nuget:?package=BaseballSharp&version=0.1.7
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Getting Started

Usage

Clone the repository or install from Nuget. Next, import Baseball Sharp into your project with:

using BaseballSharp;

Endpoints

Endpoints include (but are not limited to) the following:

Schedule(string date)

Returns a list<Schedule> of containing games played on the specified date. Dates should be specified in mm/DD/yyyy format. Note: This endpoint is still being worked with plans to obtain game ids and other endpoints.

The list contains:

  • HomeTeam
  • AwayTeam
  • BallPark
  • Scheduled innings: The number of scheduled innings for the game.

PitchingReports(string date)

Returns a list<PitchingReport> containing the following information for a specified date (mm/DD/yyyy format):

  • HomeTeam
  • HomeProbablePitcherName
  • HomeProbablePitcherId
  • HomeProbablePitcherNotes
  • AwayTeam
  • AwayProbablePitcherName
  • AwayProbablePitcherNotes
  • AwayProbablePitcherId

TeamData()

Returns a list<Team> of all teams in the league. Contains the following information:

  • FullName - Full team name, eg: "Toronto Blue Jays"
  • Name - Team name, eg: "Blue Jays"
  • Location
  • Id
  • LeagueName
  • Division Name
  • DivisionId
  • Abbreviation
  • VenueName
  • VenueId

Copyright Notice

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.

Getting Started

Usage

Clone the repository or install from Nuget. Next, import Baseball Sharp into your project with:

using BaseballSharp;

Endpoints

Endpoints include (but are not limited to) the following:

Schedule(string date)

Returns a list<Schedule> of containing games played on the specified date. Dates should be specified in mm/DD/yyyy format. Note: This endpoint is still being worked with plans to obtain game ids and other endpoints.

The list contains:

  • HomeTeam
  • AwayTeam
  • BallPark
  • Scheduled innings: The number of scheduled innings for the game.

PitchingReports(string date)

Returns a list<PitchingReport> containing the following information for a specified date (mm/DD/yyyy format):

  • HomeTeam
  • HomeProbablePitcherName
  • HomeProbablePitcherId
  • HomeProbablePitcherNotes
  • AwayTeam
  • AwayProbablePitcherName
  • AwayProbablePitcherNotes
  • AwayProbablePitcherId

TeamData()

Returns a list<Team> of all teams in the league. Contains the following information:

  • FullName - Full team name, eg: "Toronto Blue Jays"
  • Name - Team name, eg: "Blue Jays"
  • Location
  • Id
  • LeagueName
  • Division Name
  • DivisionId
  • Abbreviation
  • VenueName
  • VenueId

Copyright Notice

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.

  • net5.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.1.7 66 7/12/2021
0.1.6-alpha 82 6/16/2021
0.1.5-alpha 123 5/31/2021
0.1.4-alpha 100 5/24/2021
0.1.3-alpha 232 5/22/2021
0.1.2-alpha 98 5/19/2021