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-Limit and X-RateLimit-Remaining: this minute's window.
  • X-Calls-Used and X-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

Parameters for next-to-go
ParameterAccepts
categoriescomma-separated keys
categorytext, up to 20 characters
countrytwo letters, e.g. AU
num_racesinteger 1–50
bookmakerscomma-separated keys
include_unresolvedtrue / false
venuetext, 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

Parameters for best-odds
ParameterAccepts
categoriescomma-separated keys
categorytext, up to 20 characters
countrytwo letters, e.g. AU
hours_aheadinteger 1–168
dateYYYY-MM-DD
num_racesinteger 1–50
venuetext, up to 80 characters
bookmakerscomma-separated keys
include_unresolvedtrue / 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

Parameters for markets
ParameterAccepts
race_idtext, up to 120 characters
venuetext, up to 80 characters
meeting_dateYYYY-MM-DD
race_numberinteger 1–20
countrytwo letters, e.g. AU
bookmakerscomma-separated keys
marketscomma-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

Parameters for events
ParameterAccepts
categoriescomma-separated keys
categorytext, up to 20 characters
countrytwo letters, e.g. AU
hours_aheadinteger 1–168
dateYYYY-MM-DD
include_unresolvedtrue / 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

Parameters for results
ParameterAccepts
categoriescomma-separated keys
categorytext, up to 20 characters
countrytwo letters, e.g. AU
hours_backinteger 1–168
dateYYYY-MM-DD
venuetext, up to 80 characters
statustext, up to 20 characters
limitinteger 1–200
offsetinteger 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_seconds and data_age_seconds say how old each price is; stale: true marks prices that may be out of date.
  • source_url links 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_ref is Racing Australia's code for the horse on the day; horse_ref stays the same across days.
  • horse_ref values are OddsTrellis identifiers (prefix ot:) 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:

Error codes
StatuscodeWhat to do
401missing_keySend the X-API-Key header.
401invalid_keyCheck the key, or rotate it in the console.
403subscription_inactiveUpdate billing in the console.
403plan_no_apiYour plan has no API access. Change to Publisher.
403endpoint_not_in_planChange plan to use this endpoint.
400invalid_parameterFix the parameter named in parameter.
404not_foundCheck the path.
429rate_limitedWait for Retry-After seconds.
429quota_exceededWait for the monthly reset or change plan.
503data_unavailableRetry 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.