# balldontlie API

> Balldontlie provides access to stats data from the NBA.

balldontlie is a sports & fitness API from balldontlie.io. It needs no API key. It is served over HTTPS and allows browser requests (CORS). Its OpenAPI description documents 7 endpoints.

## At a glance

- Category: [Sports & Fitness](https://www.openparable.com/apis/category/sports-fitness)
- Provider: balldontlie.io
- Authentication: None (no API key)
- HTTPS: Yes
- CORS: Yes
- Base URL: https://balldontlie.io
- Documentation: https://www.balldontlie.io/
- OpenAPI description: https://api.apis.guru/v2/specs/balldontlie.io/1.0.0/openapi.json
- Version: 1.0.0
- Specification updated: 2023-03-06

## Example request

```bash
curl -X GET "https://balldontlie.io/api/v1/games" \
  -H "Accept: application/json"
```

## Endpoints

- `GET /api/v1/games` — all games (example parameters)
- `GET /api/v1/games/32881` — specific game
- `GET /api/v1/players` — all players (search)
- `GET /api/v1/players/237` — specific player
- `GET /api/v1/stats` — all stats (example parameters)
- `GET /api/v1/teams` — all teams
- `GET /api/v1/teams/1` — specific team

## Questions

### Does the balldontlie API need an API key?

No. The balldontlie API can be called without an API key or sign-up, which makes it handy for prototypes and front-end demos.

### Can I call the balldontlie API from the browser?

Yes. The balldontlie API sends CORS headers, so a web page can call it directly with fetch().

### Does the balldontlie API support HTTPS?

Yes, the balldontlie API is served over HTTPS.

### How many endpoints does the balldontlie API have?

Its OpenAPI description lists 7 endpoints in version 1.0.0. All of them are shown on this page.

### What are alternatives to the balldontlie API?

Other Sports & Fitness APIs include Fitbit, TheSportsDB, Cloudbet, Sportmonks Cricket, CollegeFootballData.com.

## Similar sports & fitness APIs

- [Fitbit](https://www.openparable.com/apis/fitbit): You'll fit in here. Using JavaScript, CSS, and SVG, developers now have a fast, easy way to build apps and clock faces for Fitbit OS.
- [TheSportsDB](https://www.openparable.com/apis/thesportsdb): Crowd-Sourced Sports Data and Artwork
- [Cloudbet](https://www.openparable.com/apis/cloudbet): Official Cloudbet API provides real-time sports odds and betting API to place bets programmatically
- [Sportmonks Cricket](https://www.openparable.com/apis/sportmonks-cricket): Live cricket score, player statistics and fantasy API
- [CollegeFootballData.com](https://www.openparable.com/apis/collegefootballdata-com): Unofficial detailed American college football statistics, records, and results API
- [Football (Soccer) Videos](https://www.openparable.com/apis/football-soccer-videos): Embed codes for goals and highlights from Premier League, Bundesliga, Serie A and many more
- [Football-Data](https://www.openparable.com/apis/football-data): Football data with matches info, players, teams, and competitions
- [JCDecaux Bike](https://www.openparable.com/apis/jcdecaux-bike): JCDecaux's self-service bicycles
- [Sportmonks Football](https://www.openparable.com/apis/sportmonks-football): Football score/schedule, news api, tv channels, stats, history, display standing e.g. epl, la liga
- [OpenLigaDB](https://www.openparable.com/apis/openligadb): Crowd sourced sports league results
- [SportScore](https://www.openparable.com/apis/sportscore): Live scores, fixtures, standings and stats for football, basketball, cricket and tennis
- [City Bikes](https://www.openparable.com/apis/city-bikes): City Bikes around the world

Listed from: public-apis (MIT), public-apis database (MIT), APIs.guru (CC0). Check the provider's terms before use.

---

Source: https://www.openparable.com/apis/balldontlie (OpenParable). Cite the canonical URL above.
