API reference
Closing line value, batch
The same for up to 100 bets in one call, priced per distinct event.
POST
/odds/v1/clv- Cost
- 1 token per distinct event_id (5 bets on one game cost 1)
- Authentication
- X-API-Key, your own key (not the demo key)
Parameters
betsarrayrequiredUp to 100 rows across at most 25 distinct events. Each row is event_id, selection_key, book and odds, as on GET /clv.formatstringoptionaldecimal, american or fractional. Applies to every row's odds and to the prices in the response.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
- Up to 100 bets across at most 25 distinct events. Cost is 1 token per distinct
event_id: five bets on one game cost 1. - Each row is computed as on GET /clv, with the same formula and
close_reason/fair_reasoncodes. Rows come back in the order sent. - A malformed row rejects the whole call with a 400, and
error.indexnames the row. An unknown event is a row withclose_reason: unknown_event. - The demo key cannot call this endpoint.