The raw board as of an instant
Changed on/v2/odds/raw as it was served at date, bookmakers and exchanges (bookmakersOnly=true: bookmakers alone; BETDAQ never): the same envelope and the same event objects, cut to sports and paged the same way (by kick-off, then id; at most 250 events a page), plus historical, timestamp (the board version used: the latest at or before date), previous_timestamp, next_timestamp and complete. sport_key, sport_title and competition_key are the ones the live feed served the event: its first league and competition, held for the event's life (an event last served before 2026-11-13 12:45 UTC has none held: its league as recorded and competition_key null). The sports filter selects on sport_key (the key or its start) and the sport name (football), not on competition_key as the live feed's does: to get one competition, ask its league's key and keep the events whose competition_key is the competition's — the English Premier League is sports=soccer_premier_league (every league named Premier League: 56 events at 2026-11-16T12:00:00Z, the 21 English ones with competition_key soccer_english_premier_league), or sports=soccer for every league its events were first served under. An event last served before 2026-11-13 12:45 UTC has competition_key null. A race names its course (venue) as the live feed spells it; one recorded before 2026-11-13 12:49 UTC carries it only where the archive proves it (23,035 of 24,262 races 2026-10-15 to 2026-11-12; the rest carry no venue). previous_ids are the merges known at that instant. Served gzip only. THE RELEASE LAG: history is released a UTC day at a time, cut the night after the day; the newest instant served is the archive's newest checkpoint's board version plus one hour, and a later one is 400 date_out_of_range with latest.
Checks, in this order (the live feed's own): the per-address shield, the key, the flood cap, a suspended account, a browser key's website, the API version; region (uk or one international code; outside the regions your key reads 403 region_not_in_scope), historical in the key; the parameters (each one this route reads, once) and their values; the instant(s); the venues (400 unknown, 403 outside your plan, 403 exchange_history_unavailable for any exchange while exchange history is switched off; bookmakersOnly=true beside an exchange filter is 400); your account's scope (403 with valid; a sport, market or venue left out is the scope's list); quote=true; the price (402).
Price: /v2/pricing regions.uk.historical.snapshot (an international region: its own regions.<code>.historical.snapshot) tokens a page with events; a page with none, a 304 and quote=true are free.
Request
- Base URLhttps://api.oddsrelay.io
- Auth
- HTTP bearer
- or API key in header x-api-key
Query parameters
The instant, ISO-8601 to the millisecond (Z or an offset; a naive value is UTC). The board served is the board version at or before it. From 2026-10-15T00:00:00Z (the recorded data starts 2026-10-17T00:00:00Z: earlier is 404 no_history) to the archive's newest instant — its newest checkpoint's board version plus one hour (checkpoints are cut nightly for the previous UTC day), else 400 date_out_of_range (with earliest and latest). Send a reply's next_timestamp or previous_timestamp back as date to step version by version.
Comma list, up to 20: a sport key or the start of one (soccer, soccer_premier_league), matched against each event's sport_key, never its competition_key; on the snapshot route a sport name (football) too. Required (The Odds API's historical snapshots are per sport too).
uk, the archive's own region (default), or one international code. Each international code is its own archive of its own venues: bookmakers, and in ca also STX (stx_ca, Ontario's betting exchange, as /v2/odds/raw serves it there: its back prices under each market's key, its lay prices under <key>_lay; bookmakersOnly=true leaves it out, and a file's bookmakers_only says whether the file holds its rows), recorded from 2026-11-16T05:50Z, the lane's first checkpoint (its first day 2026-11-16: an instant before that day is 400 date_out_of_range with earliest 2026-11-16T00:00:00.000Z, one inside it before the first checkpoint 404 no_history), gr from its switch-on at 2026-11-16T18:19Z (a gr page asked for before it is empty, and free), cz from its first rows in December 2026 (likewise empty, and free, before them), with uk's tiers, release lag and rules. Outside the regions your key reads: 403 region_not_in_scope; any other code is 404 unknown_region.
envelope (default): {meta, data}. bare: the data array alone, meta moved to X-* headers.
decimal (default) or american (a signed integer; null for a price at or below 1.0). standard and dutching serve decimal only: anything else is 400.
iso (default, ISO-8601 UTC) or unix (integer epoch seconds) for commence_time, processed_at, last_update, and raw's meta.removed_since and meta.removed[].at. standard and dutching serve iso only: anything else is 400.
Comma list of bookmaker keys (/v2/bookmakers), up to 40; none = every bookmaker. An exchange here is 400 naming exchanges.
Comma list of exchange keys (/v2/bookmakers), up to 4. While exchange history is switched off, any exchange here is 403 exchange_history_unavailable; beside bookmakersOnly=true it is 400.
Comma list of raw's market keys (h2h, over_under, handicap, …; never the matched boards' totals), up to 20: a key raw does not carry matches nothing, and venues and markets outside it are left out.
Comma list of event ids, up to 50; an id merged away by then answers as its survivor.
true: exchanges alone. While exchange history is switched off, true is 403 exchange_history_unavailable; beside bookmakersOnly=true it is 400.
true: bookmakers alone, no exchange — the answer this route gave before exchanges were added. Default false (bookmakers and exchanges; BETDAQ never). true or false, else 400; true beside exchanges or exchangesOnly=true is 400.
false: leave out an exchange's stakes, available beside its lay_price and back_available beside its back price. Default true. true or false, else 400.
Events per page, 1-250 (default and maximum 250): the page one price buys.
The previous page's meta.next_cursor (or X-Next-Cursor). A cursor is bound to no account and expires 300 s after it was issued: 400 cursor expired: start again from the first page; any other shape 400 cursor not recognised: start again from the first page.
true (also 1, yes, on): price this exact request instead of serving it. 200 {cost, remaining, rate_card}, free, every check before the price still applies; any other value is an ordinary request.
Headers
Send gzip; with curl, --compressed sends it and decompresses the reply. The raw board answers a request that refuses gzip (identity alone, as Python's urllib sends by default, or gzip;q=0 or *;q=0) with 400 bad_request, message add Accept-Encoding: gzip; with curl use --compressed.
Response
One page (envelope, or the data array under format=bare), or under quote=true its price. Gzip.
quote=true: this request's price. Free.
Example response
{
"data": [
{
"id": "or_evt_0123456789ab",
"cluster_id": null,
"sport_key": "basketball_ncaab",
"sport_title": "NCAAB",
"competition_key": "basketball_ncaab",
"previous_ids": [],
"commence_time": "2026-11-21T00:30:00.000Z",
"home_team": "Kansas Jayhawks",
"away_team": "West Virginia Mountaineers",
"bookmakers": [
{
"key": "book_a_us",
"title": "Book A US",
"region": "us",
"last_update": "2026-11-20T18:02:11Z",
"markets": [
{
"key": "h2h",
"last_update": "2026-11-20T18:02:11Z",
"outcomes": [
{
"name": "KU Jayhawks",
"price": 1.3,
"side": "home"
},
{
"name": "WVU Mountaineers",
"price": 3.6,
"side": "away"
}
]
},
{
"key": "handicap",
"last_update": "2026-11-20T18:02:11Z",
"outcomes": [
{
"name": "Home -7.5 Points",
"price": 1.91,
"side": "home",
"point": -7.5
},
{
"name": "Away +7.5 Points",
"price": 1.91,
"side": "away",
"point": 7.5
}
]
},
{
"key": "player_points",
"last_update": "2026-11-20T18:02:11Z",
"outcomes": [
{
"name": "Hunter Dickinson: Over 22.5 Points",
"price": 1.87,
"side": "over",
"point": 22.5,
"description": "Hunter Dickinson"
},
{
"name": "Hunter Dickinson: Under 22.5 Points",
"price": 1.95,
"side": "under",
"point": 22.5,
"description": "Hunter Dickinson"
}
]
}
]
},
{
"key": "book_b_us",
"title": "Book B US",
"region": "us",
"last_update": "2026-11-20T18:01:54Z",
"markets": [
{
"key": "handicap",
"last_update": "2026-11-20T18:01:54Z",
"outcomes": [
{
"name": "Home +7.5 Points",
"price": 1.9,
"side": "away",
"point": 7.5
},
{
"name": "Away -7.5 Points",
"price": 1.92,
"side": "home",
"point": -7.5
}
]
}
]
},
{
"key": "book_c_us",
"title": "Book C US",
"region": "us",
"last_update": "2026-11-20T18:00:40Z",
"markets": [
{
"key": "over_under",
"last_update": "2026-11-20T18:00:40Z",
"outcomes": [
{
"name": "Over 143.5 Points",
"price": 1.9,
"side": "over",
"point": 143.5
},
{
"name": "Under 143.5 Points",
"price": 1.9,
"side": "under",
"point": 143.5
}
]
},
{
"key": "player_points",
"last_update": "2026-11-20T18:00:40Z",
"outcomes": [
{
"name": "Dickinson, H: Over 22.5 Points",
"price": 1.9,
"side": "over",
"point": 22.5,
"description": "Hunter Dickinson"
}
]
}
]
}
]
}
]
}Changes
- info
added the new enum value
czto thequeryrequest parameterregion
- info
- info
added the optional property
oneOf[#/components/schemas/HistoricalRawEnvelope]/data/items/bookmakers/items/markets/items/excluded_runnersto the response with the status - info
added the optional property
oneOf[subschema #2]/items/bookmakers/items/markets/items/excluded_runnersto the response with the status
- info