Sports
MLB Records and Stats
An API for current and historical Major League Baseball statistics.
1
Endpoints
—
Status
—
Latency
CODE EXAMPLES
JavaScript (Fetch)
fetch('https://statsapi.mlb.com/api/v1/', {
method: 'GET',
headers: {},
})
.then(response => response.json())
.then(data => console.log(data));cURL
curl -X GET 'https://statsapi.mlb.com/api/v1/'MLB Records and Stats
0.0%
SPORTS
An API for current and historical Major League Baseball statistics.
PERFORMANCE TELEMETRY
RATE LIMITSCHECK DOCS
API TESTING INTERFACE
READY
SIGN IN TO EXECUTE TEST
Please sign in to test API endpoints
RESPONSE TELEMETRY
Execute API test to view telemetry data