balldontlie API
Overview
balldontlie is a completely free, no-auth-required API that provides NBA basketball statistics including player data, team information, game scores, and season averages. You do not need to sign up or provide any credentials — just make a GET request and you get data back immediately. It is one of the best beginner-friendly sports APIs for learning how to consume a REST API without any setup friction.
Beginner Tip
You can call balldontlie with no API key — just open the URL in your browser to see JSON data instantly. Start with the /players endpoint to search for your favorite NBA player and explore from there.
Available Data
Example Response
{
"match_id": 4521,
"home_team": "Team A",
"away_team": "Team B",
"score": {
"home": 2,
"away": 1
},
"status": "Full Time",
"date": "2025-01-15",
"league": "Premier League"
} Field Reference
data Array of result objects such as players, teams, or games. data[].id Unique identifier for the player or game record. data[].first_name Player first name. data[].last_name Player last name. data[].team.full_name Full name of the NBA team the player belongs to. meta.next_cursor Cursor value to pass as cursor= parameter for fetching the next page of results. Implementation Example
const url = "https://www.balldontlie.io/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Fully tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →City Bikes
⭐ Beginner's PickCity Bikes API gives you real-time data on bike-sharing stations across hundreds of cities worldwide.
Ergast F1
⚠ UnavailableErgast F1 provides programmatic access to f1 data from the beginning of the world championships in 1950 via REST API.
Football (Soccer) Videos
⭐ Beginner's PickFootball (Soccer) Videos API by Scorebat provides embed codes for goals and match highlights from top leagues like the Premier League and Bundesliga.
Football Standings
⭐ Beginner's PickFootball Standings API provides current league standings for popular football competitions like the EPL, La Liga, and Serie A, sourced from ESPN.
MLB Records and Stats
⭐ Beginner's PickMLB Records and Stats API provides current and historical statistics for Major League Baseball, including player batting and pitching records, team stats, and season standings.