NBA, WNBA and college basketball: play-by-play, shot locations, box scores and sportsbook odds.
DunkAPI is a free Sports & Fitness API that requires apiKey authentication, is served over HTTPS and supports CORS, so it can be called from the browser.
Full API reference for DunkAPI. 18 basketball data endpoints with parameters, example requests, and response shapes.
Details from dunkapi.com.

Unified API suite · now live
Geocode an address, validate an email, track a flight or pull stock data with one account, one dashboard and one API key.
F1 data from the beginning of the world championships in 1950
Unofficial detailed American college football statistics, records, and results API
Real-time FanDuel Sportsbook odds — live & in-play and pre-match, with a keyless public snapshot
Official Cloudbet API provides real-time sports odds and betting API to place bets programmatically
MLB since 2015 plus college baseball: pitches, plate appearances, box scores and sportsbook odds
The DunkAPI is provided by DunkAPI (dunkapi.com). Full API reference for DunkAPI. 18 basketball data endpoints with parameters, example requests, and response shapes.
Yes. The DunkAPI is listed in the Sports & Fitness category of the public-apis directory, which only includes APIs that are free or have a free tier. Check its documentation for rate limits and paid plans.
Yes. The DunkAPI uses apiKey authentication, so you need to register for credentials before making requests.
Yes. The DunkAPI supports CORS, so front-end JavaScript can call it directly.
Yes. The DunkAPI is served over HTTPS, so it's safe to use in production.