MLB Data

FREE
By theapiguy
Updated 5 months ago
Sports
9.4/10
Popularity
36ms
Latency
100%
Success Rate

MLB Data API Documentation

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

View API Details
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
GETBroadcast Info

Retrieve information on broadcasts over a given period. startdate and enddate parameters should be in the YYYYMMDD format. Although you can omit the home_away parameter to retrieve both home and away game data, one will include the other. For example, a New York Mets home game result will include data for the visiting team.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
src_commentSTRING
REQUIRED
src_typeSTRING
REQUIRED
tcidSTRING
REQUIRED
Optional Parameters
start_dateSTRING
OPTIONALExample: '20170415'
home_awaySTRING
OPTIONALExample: 'H' ‘H’ for home games, ‘A’ for away games. Omit for both.
seasonSTRING
OPTIONALExample: '2017'
end_dateSTRING
OPTIONALExample: '20170417'
sort_bySTRING
OPTIONALExample: 'game_time_et_asc' Field to sort results by.
Code Snippet
Install SDK
Response ExampleSchema

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication