API reference
Price history
One market's price moves for an event, per book per selection, from first recorded price to the off.
GET
/odds/v1/history- Cost
- 2 tokens (1 to 5 books)
- Authentication
- X-API-Key, your own key (not the demo key)
Parameters
event_idstringrequiredAn event_id from /events. Upcoming, live or finished.marketstringrequiredOne market key from /odds, e.g. head_to_head.bookcomma listrequiredOne book, or up to 5, from /books, e.g. betfair,pinnacle.selection_keystringoptionalOne selection_key from /odds, live or finished.Default:allsinceISO-8601optionalLower bound on the tick time. since and until are at most 31 days apart when both are given.Default:first recorded moveuntilISO-8601optionalUpper bound on the tick time.Default:the off (finished) or nowformatstringoptionaldecimal, american or fractional. See Odds formats.Default:decimal
Request
The demo key (Free plan) cannot call this endpoint: it answers 403 plan_required. Set ODDS_API_KEY to your own key first.
Response
200 OK
Fields
- A point is a price change, oldest first (
tis UTC); the price holds until the next point.odds: nullmeans the book stopped offering the selection at that time. - Every selection we recorded for those books comes back, under the same selection_key as /odds. A selection or book with no recorded changes is omitted.
untilin the body is the bound actually used: the off for a finished event by default,nullfor up to now.- We record changes for each sport's main markets; other markets may return no series. History is kept from 2026-07-22, with no expiry.
- Paging: a response holds at most 5,000 points (the newest kept).
truncated: truemeans older points were dropped; ask again withuntilset to your oldesttto page back. formatconverts everyodds; see odds formats.
book is required (1 to 5 books) and the demo key cannot call this endpoint.