Odds & Markets API
API reference
Every Odds API endpoint as it is deployed today, with a playground you can call with your own key.
These pages are generated from the live Odds API specification published at
https://api.altsportsdata.com/public/docs/swagger-json. Each endpoint gets its own page with
parameters, response schemas and a request playground.
Host and authentication
| Host | https://api.altsportsdata.com |
| Header | X-API-Key: <your key> |
| Base path | /api/v1/public |
Every request needs your ALT Sports Data API key in the X-API-Key header. Requests without it,
or with a key that does not cover the sport, are refused.
curl https://api.altsportsdata.com/api/v1/public/sports \
-H "X-API-Key: $ALTSPORTSDATA_API_KEY"Trying requests here
The playground on each page sends your request through this site's proxy, because the API does
not accept browser calls from the docs origin. The proxy only forwards to
api.altsportsdata.com. Your key travels with that one request and is not stored on our side.
Groups
| Group | What it covers | Endpoints |
|---|---|---|
| Sports | The sports your key can read and the markets each one supports | 1 |
| Events | Events, participants, heat scores, odds by market, same game parlay pricing, and sport-specific detail for GSOC, MLTT, NLL, 3ICE and Jai Alai | 16 |
| Futures | Season-long futures and their odds by tour and future type | 2 |
Keeping it current
The pages are regenerated from a snapshot of the live spec. Run
npm run odds:reference -- --refresh to download the latest spec and rebuild them.