API documentation
Racing prices, one header away.
Five read-only endpoints over HTTPS, returning JSON. Authenticate with your key in the X-API-Key header.
Authentication
API access is part of the Publisher plan. Send your key with every request. Keys go in the header only; a key in a URL is refused, because URLs end up in logs.
curl -H "X-API-Key: $ODDSTRELLIS_KEY" "https://oddstrellis.com/v1/racing/next-to-go?num_races=3"
Keep the key on your server. The API sends no CORS headers, so browsers can't call it directly. To show prices on a web page, use a display. If a key leaks, rotate it in the console; the old key stops working immediately.
Limits
Each plan has a requests-per-minute limit and a monthly allowance that resets on the 1st (UTC). Every successful response carries:
X-RateLimit-LimitandX-RateLimit-Remaining: this minute's window.X-Calls-UsedandX-Calls-Limit: this month's allowance.X-Data-Stale: true: only when fresh data was briefly unavailable and you received the last good copy (up to 5 minutes old).
Failed requests (4xx, 5xx) aren't counted. Each endpoint below is refreshed for you at most every 20–120 seconds, so polling faster returns the same data.
Endpoints
GET /v1/racing/next-to-go
Next races to run, each with its runners and every bookmaker's current win and place price.
Plans: Display, Publisher · Refreshed for you at most every 10 s
| Parameter | Accepts |
|---|---|
categories | comma-separated keys |
category | text, up to 20 characters |
country | two letters, e.g. AU |
num_races | integer 1–50 |
bookmakers | comma-separated keys |
include_unresolved | true / false |
venue | text, up to 80 characters |
Main fields: race_id; venue; race_number; category; country; start_time; race_name; distance_m; track_condition; race_class; conditions; prize_total; rail; scratchings[]; runners[].name / number / barrier / jockey / trainer / weight / form / runner_ref / horse_ref; runners[].bookmakers[].key / win_price / place_price / age_seconds / stale / source_url; data_age_seconds; stale; stale_bookmakers[]
curl -H "X-API-Key: $ODDSTRELLIS_KEY" \ "https://oddstrellis.com/v1/racing/next-to-go"
GET /v1/racing/best-odds
The best available price for every runner, across all bookmakers, for upcoming races.
Plans: Display, Publisher · Refreshed for you at most every 15 s
| Parameter | Accepts |
|---|---|
categories | comma-separated keys |
category | text, up to 20 characters |
country | two letters, e.g. AU |
hours_ahead | integer 1–168 |
date | YYYY-MM-DD |
num_races | integer 1–50 |
venue | text, up to 80 characters |
bookmakers | comma-separated keys |
include_unresolved | true / false |
Main fields: race_id; venue; race_number; start_time; market_percentage; books_compared; runners[].best_win / best_place {price, bookmaker, age_seconds, source_url}; runners[].barrier / jockey / trainer / weight / form / runner_ref; runners[].books_quoting; runners[].price_spread_pct
curl -H "X-API-Key: $ODDSTRELLIS_KEY" \ "https://oddstrellis.com/v1/racing/best-odds"
GET /v1/racing/markets
Every market on one race: win, place, top 2/3/4 and exotic dividends, by bookmaker.
Plans: Publisher · Refreshed for you at most every 20 s
| Parameter | Accepts |
|---|---|
race_id | text, up to 120 characters |
venue | text, up to 80 characters |
meeting_date | YYYY-MM-DD |
race_number | integer 1–20 |
country | two letters, e.g. AU |
bookmakers | comma-separated keys |
markets | comma-separated keys |
Main fields: race {…, prices_from: live | close}; markets[].bookmakers[].runners[] {number, name, runner_ref, price, source_url}; best[]; exotics; scratchings[]
curl -H "X-API-Key: $ODDSTRELLIS_KEY" \ "https://oddstrellis.com/v1/racing/markets"
GET /v1/racing/events
Upcoming races with their status and market state, without prices.
Plans: Display, Publisher · Refreshed for you at most every 30 s
| Parameter | Accepts |
|---|---|
categories | comma-separated keys |
category | text, up to 20 characters |
country | two letters, e.g. AU |
hours_ahead | integer 1–168 |
date | YYYY-MM-DD |
include_unresolved | true / false |
Main fields: race_id; venue; race_number; category; country; start_time; race_name; distance_m; track_condition; race_class; conditions; prize_total; rail; status; market_status; scratchings[]
curl -H "X-API-Key: $ODDSTRELLIS_KEY" \ "https://oddstrellis.com/v1/racing/events"
GET /v1/racing/results
Settled results: placings, settled prices and dividends.
Plans: Display, Publisher · Refreshed for you at most every 60 s
| Parameter | Accepts |
|---|---|
categories | comma-separated keys |
category | text, up to 20 characters |
country | two letters, e.g. AU |
hours_back | integer 1–168 |
date | YYYY-MM-DD |
venue | text, up to 80 characters |
status | text, up to 20 characters |
limit | integer 1–200 |
offset | integer 0–100000 |
Main fields: race_id; venue; race_number; start_time; status; placings[] {position, name, number, win_price, place_price, sp, horse_ref}; runners[] (Australian thoroughbreds: the official field, with sp); deductions[]; dividends {straight, exotics}; resulted_at
curl -H "X-API-Key: $ODDSTRELLIS_KEY" \ "https://oddstrellis.com/v1/racing/results"
About the data
- Prices are decimal odds collected from bookmakers' public markets.
age_secondsanddata_age_secondssay how old each price is;stale: truemarks prices that may be out of date. source_urllinks go to the bookmaker's own race page.- Betfair exchange prices aren't included.
- Runner details (barrier, jockey, trainer, weight, form) and Australian thoroughbred race details (class, conditions, prize money, rail) come from Racing Australia and the bookmakers.
runner_refis Racing Australia's code for the horse on the day;horse_refstays the same across days. horse_refvalues are OddsTrellis identifiers (prefixot:) that stay the same for a horse across races.- Times are UTC, in ISO 8601.
Errors
Errors use application/problem+json with a stable code:
| Status | code | What to do |
|---|---|---|
| 401 | missing_key | Send the X-API-Key header. |
| 401 | invalid_key | Check the key, or rotate it in the console. |
| 403 | subscription_inactive | Update billing in the console. |
| 403 | plan_no_api | Your plan has no API access. Change to Publisher. |
| 403 | endpoint_not_in_plan | Change plan to use this endpoint. |
| 400 | invalid_parameter | Fix the parameter named in parameter. |
| 404 | not_found | Check the path. |
| 429 | rate_limited | Wait for Retry-After seconds. |
| 429 | quota_exceeded | Wait for the monthly reset or change plan. |
| 503 | data_unavailable | Retry after 60 seconds. Not counted. |
Displays
A display is a hosted, branded odds panel. There are four kinds:
- Next to go: the next few races for the codes and countries you choose, with the favourites' best win prices.
- Race card: one race you pick, with the whole field and best win prices. After the race it shows the result.
- Meeting: every race at one venue for the day, with prices for races to come and results for races run.
- Results: the latest finishing orders, with starting prices where we have them.
Build one in the console with a live preview, list the websites allowed to show it, and paste the embed:
<iframe src="https://oddstrellis.com/w/wgt_…" title="Next to go" loading="lazy" width="100%" height="420" style="border:0"></iframe> <script src="https://oddstrellis.com/embed.js" async></script>
The script is optional; it resizes the frame to fit. Displays refresh every minute while visible, only load on the websites you list, and count toward your plan's monthly display views each time a page loads them. The console shows views for each display and website.