MLB Data
FREE
By theapiguy
Updated 6 months ago

MLB Data API Documentation

Baseball MLB Data about players, teams, reports, and other stats.

Learn more about this API
Reports
GETBroadcast Info
GETInjuries
GETGet Transactions Over Period
GETPitching Leaders
GETHitting Leaders
Stats Data
GETProjected Hitting Stats
GETSeason Pitching Stats
GETCareer Hitting Stats
GETLeague Hitting Stats
GETLeague Pitching Stats
GETCareer Pitching Stats
GETProjected Pitching Stats
GETSeason Hitting Stats
Player Data
GETPlayer Teams
GETPlayer Search
GETPlayer Info
Game Data
GETGame Type Info
Team Data
GETGet Roster by Seasons
GETGet Teams by Season
GETGet 40-Man Roster
GETProjected Pitching Stats

Retrieve a players projected pitching stats for a given season. Omitting the season parameter will return the actual stats for the players earliest major league season.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
player_idSTRING
REQUIREDExample: '592789'
league_list_idSTRING
REQUIRED
Optional Parameters
seasonSTRING
OPTIONALExample: '2017'
Code Snippet
Install SDK
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication