REST quickstart
Authentication
Get a key at bestbook.app/api and send it with every request:
bash
curl -H "Authorization: Bearer $BESTBOOK_KEY" https://api.bestbook.app/v1/leagues
X-API-Key: <key> and ?key=<key> also work.
First request
bash
curl -H "Authorization: Bearer $BESTBOOK_KEY" \
"https://api.bestbook.app/v1/events?league=nba"
json
{
"events": [
{
"away": {
"id": "ATL",
"name": "Atlanta Hawks"
},
"date": "2026-12-01",
"home": {
"id": "MIA",
"name": "Miami Heat"
},
"id": "nba:2026-12-01-ATL-MIA",
"league": "nba",
"lines": 4012,
"start": "2026-12-02T00:40:00Z"
}
],
"live": true,
"seq": 38
}
Then get a game's lines with Event lines.
Responses
- JSON. Every field is always present; unknown values are
null. - Errors are
{"error": "..."}with a 4xx status. See Limits and errors. - Gzip with
Accept-Encoding: gzip(curl --compressed).