Real-time stats, player insights, and game analytics for developers, analysts, and sports enthusiasts.
Select a sport to view pricing:
A comprehensive sports data platform built with modern tech stacks in mind
Built on a scalable infrastructure with 99.9% uptime and lightning-fast response times
Clean JSON responses, consistent endpoints, and thorough documentation
Real-time stats, historical data, and deep analytics across multiple sports
Start free and scale up based on your needs with sport-specific pricing
First-class libraries for JavaScript and Python to get you started in minutes
Rate limits, authentication, and support plans designed for businesses
We provide libraries for JavaScript and Python to make it easy to interact with our API.
import { BalldontlieAPI } from "@balldontlie/sdk";
const api = new BalldontlieAPI({ apiKey: "your-api-key" });
// Get NBA stats
await api.nba.getStats({ dates: ["2024-11-13", "2024-11-14"] });
// Get NFL stats
await api.nfl.getStats({ seasons: [2024] });
// Get MLB stats
await api.mlb.getStats({ player_ids: [208] });
// Get EPL stats
await api.epl.getPlayerStatsLeaders({
season: 2024,
type: "goals",
});
// Many more endpoints available!
from balldontlie import BalldontlieAPI
api = BalldontlieAPI(api_key="your-api-key")
# Get NBA stats
api.nba.stats.list(dates=["2024-11-13", "2024-11-14"])
# Get NFL stats
api.nfl.stats.list(seasons=[2024])
# Get MLB stats
api.mlb.stats.list(player_ids=[208])
# Get EPL stats
api.epl.leaders.players.list(
season=2024,
type="goals",
)
# Many more endpoints available!
BALLDONTLIE is the first AI-native sports API. Connect directly to Claude, ChatGPT, and other AI assistants through our MCP server.
Built from the ground up for AI workflows. No complex integrations or custom code required.
Ask your AI assistant "What are today's NBA games?" and get instant, accurate results.
Connect to our hosted MCP server at mcp.balldontlie.io
in seconds.
{
"mcpServers": {
"balldontlie-api": {
"url": "https://mcp.balldontlie.io/mcp",
"transport": "http",
"headers": {
"Authorization": "YOUR_API_KEY"
}
}
}
}
Access the most affordable and comprehensive sports API on the market.