The raw board, paged
Changed onEvery venue's prices per event, one page at a time: bookmakers as {name, price}, exchanges quoting a lay side as {name, back_price, lay_price, available}. Served gzip only: a request refusing gzip is 400 add Accept-Encoding: gzip; with curl use --compressed.
Checks, in this order: the per-address shield, the key, the flood cap, a suspended account, a browser key's website, the API version; region, the region and raw in the key; the parameters (each one this route reads, once) and their values; the filters (400 unknown values, 403 bookmaker_not_in_region, 403 bookmaker_not_in_plan, then your account's scope: 403 sport_not_in_plan, market_not_in_plan, bookmaker_not_in_plan); includeLinks and includeLiquidity; limit; cursor; gzip; the raw board (503 raw_not_enabled); the page (503 while it cannot be cut); quote=true; the price (402).
Paging: pages are ordered by (kick-off, event id) and a cursor resumes strictly after the last event it saw, so an event that leaves the board between pages never restarts the walk. The accepted limit: an event whose kick-off moves across the cursor during a walk can appear twice or be missed. Dedupe by event id, and take a missed event on the next walk. A cursor expires 300 s after it was issued.
Following changes: walk with updatedSince set 15 s before the start of your previous walk; last_update is when a venue's market last moved (see the schema for what it is not), and the first page's meta.removed names every event, bookmaker and market that left the board since then (apply it first; meta.removed_since later than your updatedSince means walk once without it).
Several regions in one call: region takes a comma list of international codes (region=us,global; every code but uk, which is asked alone). The reply is ONE board: each event once, with the bookmaker rows of every listed region (each row's region says which); an event two regions list under one id is one event, and a fixture they list too differently to join stays two, as on one code. Every filter is read against the listed regions together: a bookmaker of any listed region may be named (one outside them all is 403 bookmaker_not_in_region), and an account's bookmaker list is its list in each. One cursor pages the merged board; it holds a position only, so keep one region value for a whole walk. updatedSince and meta.removed work as on one code. The price is the listed regions' prices ADDED: each region's own price for the same filters (bookmakers counted in the region each belongs to; a region none of the named bookmakers belongs to adds nothing), so a whole walk costs what the regions' walks cost one by one, and quote=true says it. One call is one usage row, its region the sorted list (global,us). The event-state routes stay one code per call: a since token from any international code follows every international code, so one token covers a list.
Price: a page pays its share of the query's price (its prices over all the query's events' prices, at least 1; eventIds and requireBookmakers narrow the page, never the query), so a whole walk pays the query's price (narrowed by eventIds or requireBookmakers, only its kept events' share of it); a recent updatedSince pays a reduced share. quote=true prices this page.
Request
- Base URLhttps://api.oddsrelay.io
- Auth
- HTTP bearer
- or API key in header x-api-key
Query parameters
ONE lowercase region code, or a COMMA LIST of international codes read as one board (region=us,global). Missing means uk: only when your key covers uk, else 400 region_required naming your account's home region or another code your key reads. THE LIST: two or more codes, each once, in any order (global,us and us,global are the same call: the codes are sorted, and meta.region and meta.regions say which were read); every code but uk — uk in a list is 400 bad_request ("'uk' is asked in its own call: send ?region=uk alone…"), and so is a code named twice or an empty item. Every listed code is checked as a single code is: uppercase is 400 bad_request; an unknown code, or one with no live bookmaker, is 404 unknown_region naming it; a code your key does not read is 403 region_not_in_scope naming the first such code in sorted order. The parameter sent twice is 400 bad_request (?region=us®ion=global is not a list). The list is /v2/odds/raw's alone: every other route, /v2/odds/event/{id} included, takes one code per call.
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-separated, at most 20: a sport key, a prefix of one, or a sport name raw serves, lowercased. A competition key (an event's competition_key, listed on /v2/sports) returns every event of that competition, whatever its venues call it. Any other key returns what it returned before, plus every event a venue files under a key it begins (each venue names its league its own way), and, when every event that key has ever named belongs to ONE competition, the rest of that competition. Unknown is 400 unknown_sport with valid. Inside your account's raw scope: a key or prefix starting with a scope sport, a sport name only when it equals one (send soccer, not football); outside, 403 sport_not_in_plan with valid; left out, trimmed to the scope. A key can hold letters with accents (soccer_taça_de_portugal); its spelling without them (soccer_taca_de_portugal) is accepted too, so a value never needs percent-encoding.
The same as sports (what /v2/events takes); ignored when sports is sent.
Comma-separated, at most 40: competition names (an event's league or sport_title), lowercased. Not checked against a catalogue.
Comma-separated, at most 40: venue keys of either kind, bookmakers and exchanges, as /v2/bookmakers lists them. A venue that has closed is accepted and ignored: it adds nothing, and a call whose venue lists name only closed venues keeps nothing. Unknown is 400 unknown_bookmaker with valid; outside the region 403 bookmaker_not_in_region; outside your plan's bookmaker list or your account's raw scope 403 bookmaker_not_in_plan with valid. An account scope's raw list is the whole venue list, exchanges included: left out, trimmed to it (so exchangesOnly=true keeps only the exchanges it names).
Comma-separated, at most 40 venue keys, checked as bookmakers is (the same 400 and 403 codes); requiring a venue that has closed keeps nothing. Keeps only the events where EVERY named venue quotes the call's markets (with several, at least one of them each), under exchangesOnly if set; a venue that lists the event but not the market does not count. bookmakers does not narrow this test and updatedSince is not part of it: with updatedSince, an event carrying every named venue is kept when any venue shown changed, and the page shows only the venues that changed. It narrows events, never venues: every venue the other filters keep is still shown, named or not. meta.total and X-Count count the events kept. Price: like eventIds, it narrows the page and not the query, so a page pays its share of the same call without requireBookmakers, and an empty page is free.
Comma-separated, at most 20: market keys raw serves. Raw's keys: keyless /v2/coverage's markets.raw. Unknown is 400 unknown_market with valid (raw's keys) and, when another product carries it, products. Keeps venues quoting one of them, and only those markets. Outside your account's scope for this product: 403 market_not_in_plan with valid; left out, trimmed to the scope.
Comma-separated, at most 50 event ids. An id merged into another (in that event's previous_ids) returns that event. Narrows the page, not the query: a page pays its share of the same call without eventIds.
Events kicking off at or after this ISO-8601 instant (no offset = UTC; a fraction of a second rounds up). Not ISO-8601 is 400; on the matched boards a From after To is 400.
Events kicking off at or before this ISO-8601 instant (no offset = UTC).
Exactly YYYY-MM-DDTHH:MM:SSZ (any other form is 400). Keeps venues whose last_update is at or after it, and the events holding one; an event that ARRIVED on the board at or after it (new, back from in-play, or back after an absence), or whose OWN details changed then (kick-off, teams, course, name, competition, previous_ids), comes whole, every venue, whatever their last_update. Our raw service restarts now and then, and the board then holds still for about a minute: a price that moved meanwhile can be missed by a walk that spans it, so when meta.processed_at stood still for 30 s or more between two of your walks, walk the board once without updatedSince. The bulk way to follow raw: a recent updatedSince pays a reduced share (/v2/pricing recent). Start the next walk 15 s before the previous one began, and dedupe by event id. The first page also carries meta.removed: the events, bookmakers and markets that left the board since then (an event in_play or merged says so), so a delta poller removes them; check meta.removed_since — later than your updatedSince means walk the board once without it.
true: exchanges only. true or false, else 400.
exclude (default): events in play are left out. include: in-play and pre-match events, each with in_play. only: in-play events alone, each with in_play. An event is in play when its venues show it in play, not by its commence_time, and it keeps its id (and its place in the include order) when it goes in play; under include it is served once. On /v2/odds/event/{id}, an event the value leaves out is 404 unknown_event; when the event is in play and the value (or its absence) left it out, the message says so on every region: "Event '<id>' is in play: ask with inPlay=include." Costs what the same call without it costs. One of the three, else 400.
true: each venue's link (its primary event page; left out when it has none). Default false. true or false, else 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.
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.
Events per page, 1-250 (default and maximum 250). Anything else is 400.
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 optional property
oneOf[#/components/schemas/RawEnvelope]/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
- info
added the optional property
oneOf[#/components/schemas/RawEnvelope]/data/items/bookmakers/items/markets/items/outcomes/items/descriptionto the response with the status
1 more change in this revision
- info