Current and historical MLB statistics.
The MLB Data API provides programmatic access to Major League Baseball data through a JSON-based HTTP endpoint hosted at lookup-service-prod.mlb.com. It covers player data (search, player details, teams played for), statistics (season and career hitting/pitching, league hitting/pitching, projected pitching/hitting), team data (rosters by season, 40-man roster), and game and report data (game info by type, transactions, broadcasts, current injuries, hitting and pitching leaders). Requests are made via GET to named endpoint paths, and responses can be filtered to include or exclude specific fields using col_in and col_ex parameters.
All data returned by the API is stated to be the property of MLB/MLB Advanced Media, and users are directed to review MLB's terms of use before incorporating the data into projects. The documentation targets developers building applications that need structured MLB player, team, statistical, or game data.
The page does not mention pricing; it documents a public JSON endpoint at lookup-service-prod.mlb.com with no authentication shown.
Responses are returned as JSON via endpoints under the /json/named.[endpoint].bam path structure.
All data returned is property of MLB/MLB Advanced Media, and users must refer to MLB's terms of use before using it in projects.
Yes, most endpoints support col_in and col_ex parameters to include or exclude specific fields in the response.
The API covers player search and details, season/career/league hitting and pitching stats, team rosters, transactions, broadcasts, injuries, and stat leaders.
Show your product to thousands of developers
· 100k monthly pageviews
· 7k newsletter subscribers
Real time hockey highlights.
Provide live and historical sports data of global competitions, like live score, fixtures, player & match stats, database etc.
JCDecaux's self-service bicycles.
All NBA Stats DATA, Games, Livescore, Standings, Statistics.
Advanced NBA Player, Team, and Season Statistics and Data.
Postman docs for comprehensive NBA player statistics, advanced metrics, and detailed shot chart data.