theoddsapi_historical_odds
Retrieve odds as they stood at any past timestamp to analyze closing line value (CLV). Requires a paid The Odds API key.
Instructions
Odds as they stood at a past timestamp — the paid-tier time machine for CLV work.
Returns: {timestamp, previous_timestamp, next_timestamp, data:[…same shape as theoddsapi_odds…]} — WRAPPED in a snapshot envelope, unlike the live call. Historical access is a PAID add-on: the free tier returns 401/422 here.
NOTE: this shape is from the vendor's documentation and has NOT been verified against a live response (we hold no key for this provider). Treat it as approximate — inspect the actual payload before relying on a field name.
Example: EPL odds at a past moment {"sport": "soccer_epl", "date": "2024-08-16T12:00:00Z", "regions": ["au"], "markets": ["h2h"]}
Auth: needs your own key in THE_ODDS_API_KEY.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ISO8601 timestamp to snapshot, e.g. 2024-08-16T12:00:00Z. | |
| sport | Yes | sport_key. Required — part of the URL path. | |
| markets | No | Markets. | |
| regions | No | Bookmaker regions. | |
| oddsFormat | No | Price format. One of: decimal, american. | decimal |