{"openapi":"3.1.0","info":{"title":"OddsTrellis racing odds API","version":"1.0.0","description":"Live racing odds from Australian, UK, Irish and South African bookmakers, with results and closing prices. Decimal odds; times in UTC. Betfair exchange prices are not included. Included in the Publisher plan (250,000 requests a month, 300 a minute). Send the key in the X-API-Key header, never in the URL.","contact":{"email":"carter@oddstrellis.com","url":"https://oddstrellis.com/integrations"},"termsOfService":"https://oddstrellis.com/terms"},"servers":[{"url":"https://oddstrellis.com"}],"security":[{"ApiKey":[]}],"paths":{"/v1/racing/next-to-go":{"get":{"operationId":"getNextToGo","summary":"Next races to run, each with its runners and every bookmaker's current win and place price","description":"Next races to run, each with its runners and every bookmaker's current win and place price. 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[]. Plans: Publisher. Answers are rebuilt at most every 10 seconds.","parameters":[{"name":"categories","in":"query","required":false,"description":"Comma-separated racing codes: horse, harness, greyhound.","schema":{"type":"string","maxLength":60}},{"name":"category","in":"query","required":false,"description":"One racing code: horse, harness or greyhound.","schema":{"type":"string","maxLength":20}},{"name":"country","in":"query","required":false,"description":"Two-letter country code: AU, NZ, GB, IE or ZA.","schema":{"type":"string","pattern":"^[A-Za-z]{2}$"}},{"name":"num_races","in":"query","required":false,"description":"How many races to return.","schema":{"type":"integer","minimum":1,"maximum":50}},{"name":"bookmakers","in":"query","required":false,"description":"Comma-separated bookmaker keys, e.g. sportsbet,tab. Default: every bookmaker.","schema":{"type":"string","maxLength":400}},{"name":"include_unresolved","in":"query","required":false,"description":"Include races whose country isn't known yet.","schema":{"type":"boolean"}},{"name":"venue","in":"query","required":false,"description":"Venue name, e.g. Randwick.","schema":{"type":"string","maxLength":80}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"404":{"$ref":"#/components/responses/Problem"},"429":{"$ref":"#/components/responses/Problem"},"503":{"$ref":"#/components/responses/Problem"}}}},"/v1/racing/best-odds":{"get":{"operationId":"getBestOdds","summary":"The best available price for every runner, across all bookmakers, for upcoming races","description":"The best available price for every runner, across all bookmakers, for upcoming races. 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. Plans: Publisher. Answers are rebuilt at most every 15 seconds.","parameters":[{"name":"categories","in":"query","required":false,"description":"Comma-separated racing codes: horse, harness, greyhound.","schema":{"type":"string","maxLength":60}},{"name":"category","in":"query","required":false,"description":"One racing code: horse, harness or greyhound.","schema":{"type":"string","maxLength":20}},{"name":"country","in":"query","required":false,"description":"Two-letter country code: AU, NZ, GB, IE or ZA.","schema":{"type":"string","pattern":"^[A-Za-z]{2}$"}},{"name":"hours_ahead","in":"query","required":false,"description":"How many hours ahead to look.","schema":{"type":"integer","minimum":1,"maximum":168}},{"name":"date","in":"query","required":false,"description":"Meeting date, YYYY-MM-DD (Sydney time).","schema":{"type":"string","format":"date"}},{"name":"num_races","in":"query","required":false,"description":"How many races to return.","schema":{"type":"integer","minimum":1,"maximum":50}},{"name":"venue","in":"query","required":false,"description":"Venue name, e.g. Randwick.","schema":{"type":"string","maxLength":80}},{"name":"bookmakers","in":"query","required":false,"description":"Comma-separated bookmaker keys, e.g. sportsbet,tab. Default: every bookmaker.","schema":{"type":"string","maxLength":400}},{"name":"include_unresolved","in":"query","required":false,"description":"Include races whose country isn't known yet.","schema":{"type":"boolean"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"404":{"$ref":"#/components/responses/Problem"},"429":{"$ref":"#/components/responses/Problem"},"503":{"$ref":"#/components/responses/Problem"}}}},"/v1/racing/markets":{"get":{"operationId":"getRaceMarkets","summary":"Every market on one race","description":"Every market on one race: win, place, top 2/3/4 and exotic dividends, by bookmaker. Main fields: race {…, prices_from: live | close}; markets[].bookmakers[].runners[] {number, name, runner_ref, price, source_url}; best[]; exotics; scratchings[]. Plans: Publisher. Answers are rebuilt at most every 20 seconds.","parameters":[{"name":"race_id","in":"query","required":false,"description":"A race_id from next-to-go, best-odds, events or results.","schema":{"type":"string","maxLength":120}},{"name":"venue","in":"query","required":false,"description":"Venue name, e.g. Randwick.","schema":{"type":"string","maxLength":80}},{"name":"meeting_date","in":"query","required":false,"description":"Meeting date, YYYY-MM-DD (Sydney time). Use with venue and race_number.","schema":{"type":"string","format":"date"}},{"name":"race_number","in":"query","required":false,"description":"Race number at the meeting.","schema":{"type":"integer","minimum":1,"maximum":20}},{"name":"country","in":"query","required":false,"description":"Two-letter country code: AU, NZ, GB, IE or ZA.","schema":{"type":"string","pattern":"^[A-Za-z]{2}$"}},{"name":"bookmakers","in":"query","required":false,"description":"Comma-separated bookmaker keys, e.g. sportsbet,tab. Default: every bookmaker.","schema":{"type":"string","maxLength":400}},{"name":"markets","in":"query","required":false,"description":"Comma-separated markets: win, place, top2, top3, top4, exotics.","schema":{"type":"string","maxLength":80}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"404":{"$ref":"#/components/responses/Problem"},"429":{"$ref":"#/components/responses/Problem"},"503":{"$ref":"#/components/responses/Problem"}}}},"/v1/racing/events":{"get":{"operationId":"getEvents","summary":"Upcoming races with their status and market state, without prices","description":"Upcoming races with their status and market state, without prices. 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[]. Plans: Publisher. Answers are rebuilt at most every 30 seconds.","parameters":[{"name":"categories","in":"query","required":false,"description":"Comma-separated racing codes: horse, harness, greyhound.","schema":{"type":"string","maxLength":60}},{"name":"category","in":"query","required":false,"description":"One racing code: horse, harness or greyhound.","schema":{"type":"string","maxLength":20}},{"name":"country","in":"query","required":false,"description":"Two-letter country code: AU, NZ, GB, IE or ZA.","schema":{"type":"string","pattern":"^[A-Za-z]{2}$"}},{"name":"hours_ahead","in":"query","required":false,"description":"How many hours ahead to look.","schema":{"type":"integer","minimum":1,"maximum":168}},{"name":"date","in":"query","required":false,"description":"Meeting date, YYYY-MM-DD (Sydney time).","schema":{"type":"string","format":"date"}},{"name":"include_unresolved","in":"query","required":false,"description":"Include races whose country isn't known yet.","schema":{"type":"boolean"}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"404":{"$ref":"#/components/responses/Problem"},"429":{"$ref":"#/components/responses/Problem"},"503":{"$ref":"#/components/responses/Problem"}}}},"/v1/racing/results":{"get":{"operationId":"getResults","summary":"Settled results","description":"Settled results: placings, settled prices and dividends. 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. Plans: Publisher. Answers are rebuilt at most every 60 seconds.","parameters":[{"name":"categories","in":"query","required":false,"description":"Comma-separated racing codes: horse, harness, greyhound.","schema":{"type":"string","maxLength":60}},{"name":"category","in":"query","required":false,"description":"One racing code: horse, harness or greyhound.","schema":{"type":"string","maxLength":20}},{"name":"country","in":"query","required":false,"description":"Two-letter country code: AU, NZ, GB, IE or ZA.","schema":{"type":"string","pattern":"^[A-Za-z]{2}$"}},{"name":"hours_back","in":"query","required":false,"description":"How many hours back to look.","schema":{"type":"integer","minimum":1,"maximum":168}},{"name":"date","in":"query","required":false,"description":"Meeting date, YYYY-MM-DD (Sydney time).","schema":{"type":"string","format":"date"}},{"name":"venue","in":"query","required":false,"description":"Venue name, e.g. Randwick.","schema":{"type":"string","maxLength":80}},{"name":"status","in":"query","required":false,"description":"Result status filter, e.g. final or abandoned.","schema":{"type":"string","maxLength":20}},{"name":"limit","in":"query","required":false,"description":"Maximum results to return.","schema":{"type":"integer","minimum":1,"maximum":200}},{"name":"offset","in":"query","required":false,"description":"Results to skip, for paging.","schema":{"type":"integer","minimum":0,"maximum":100000}}],"responses":{"200":{"description":"Success.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object"}}}}},"400":{"$ref":"#/components/responses/Problem"},"401":{"$ref":"#/components/responses/Problem"},"403":{"$ref":"#/components/responses/Problem"},"404":{"$ref":"#/components/responses/Problem"},"429":{"$ref":"#/components/responses/Problem"},"503":{"$ref":"#/components/responses/Problem"}}}}},"components":{"securitySchemes":{"ApiKey":{"type":"apiKey","in":"header","name":"X-API-Key"}},"responses":{"Problem":{"description":"An error, as application/problem+json with a stable `code`.","content":{"application/problem+json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"title":{"type":"string"},"detail":{"type":"string"},"status":{"type":"integer"},"type":{"type":"string"}}}}}}}}}