The Racing API

<h1>Introduction</h1><p>Welcome to <a href='https://www.theracingapi.com' target='_blank'>The Racing API</a>!</p><p>The API is used to access our active database of over 200,000 horse racing results and daily racecards.</p><p>If you dont yet have a subscription, you can purchase one <a href='https://www.theracingapi.com/#subscribe' target='_blank'>here</a>.</p><p>Requests to the API can be made via any programming language of your choice. Code examples are available in the right column of the documentation.</p><p><b>Any usage is subject to The Racing API <a href='https://www.theracingapi.com/terms-of-service' target='_blank'>terms of service</a>.</b></p><br><br><h1>Base URL</h1><p> The base url for requests is <b>https://api.theracingapi.com</b></p><br><br><h1>Authentication</h1><p>Upon subscribing to The Racing API, you will receive a set of API keys named 'Username' and 'Password' via email.</p><p>In order to authenticate your requests, you should use <b>HTTP Basic Authentication</b>, passing your username and password keys in the <b>Authorization header</b> of your request.</p><p>If your account becomes inactive or you attempt to access endpoints not available to your subscription level, requests will return a <b>401 Unauthorized</b> response.</p><br><br><h1>Rate-Limits</h1><p>Requests are limited to 2 per second for every plan. Exceeding this limit will return a <b>429 Too Many Requests</b> response.</p><br><br><h1>Analysis Endpoints</h1><p>The Racing API analysis endpoints perform data aggregation to return helpful betting & probability insights.</p><p>The statistics returned by these endpoints include:</p><ul><li><b>Win Percentage (win_%):</b> The number of wins divided by total runs/rides for a given query. For example, a win_% figure of 0.18 represents an 18% win percentage.</li><li><b>1 Unit Profit/Loss (1_pl):</b> Profit/loss for total rides/runs for a given query, if a 1 unit stake was placed at SP.</li><li><b>Actual/Expected (a/e):</b> Actual number of wins, divided by expected number of wins for a given query. Expected number of wins is calculated from SP. For a detailed explanation of this statistic, see <a href='https://ratingtheraces.com/blog/information/what-is-the-ae-statistic/#:~:text=A%2FE%20stands%20for%20Actual%20over%20Expected.&text=In%20this%20process%20we%20take,of%201%2F3.0%20%3D%200.33.' target='_blank'>here</a>.</li></ul><p><b>IMPORTANT NOTE:</b> Anaysis endpoints only perform data aggregation on results for which SP odds are available.</p><br><br><p><b>For support or feature requests, please email <a href='mailto:support@theracingapi.com'>support@theracingapi.com</a>.</b></p>

Claim this API

Are you the operator of The Racing API? Submit a claim to establish contact with us.

Report an Issue

Found something wrong with The Racing API? Let us know about broken links, changed auth, deprecated endpoints, or other issues.

Base URL: https://api.theracingapi.com/
Auth: unknown
Endpoints: 51
Reachable: unknown
CORS: unknown

Endpoints

Method Path Summary Auth Last Status Latency
GET /v1/courses List Courses
GET /v1/courses/regions List Regions
GET /v1/dams/search Search Dams
GET /v1/dams/{dam_id}/analysis/classes Dam Class Analysis
GET /v1/dams/{dam_id}/analysis/distances Dam Distance Analysis
GET /v1/dams/{dam_id}/results Dam Results
GET /v1/damsires/search Search Damsires
GET /v1/damsires/{damsire_id}/analysis/classes Damsire Class Analysis
GET /v1/damsires/{damsire_id}/analysis/distances Damsire Distance Analysis
GET /v1/damsires/{damsire_id}/results Damsire Results
GET /v1/horses/search Search Horses
GET /v1/horses/{horse_id}/analysis/distance-times Horse Distance Time Analysis
GET /v1/horses/{horse_id}/results Horse Results
GET /v1/jockeys/search Search Jockeys
GET /v1/jockeys/{jockey_id}/analysis/courses Jockey Course Analysis
GET /v1/jockeys/{jockey_id}/analysis/distances Jockey Distance Analysis
GET /v1/jockeys/{jockey_id}/analysis/owners Jockey Owner Analysis
GET /v1/jockeys/{jockey_id}/analysis/trainers Jockey Trainer Analysis
GET /v1/jockeys/{jockey_id}/results Jockey Results
GET /v1/north-america/meets List Meets
GET /v1/north-america/meets/{meet_id}/entries Meet Entries
GET /v1/north-america/meets/{meet_id}/results Meet Results
GET /v1/owners/search Search Owners
GET /v1/owners/{owner_id}/analysis/courses Owner Course Analysis
GET /v1/owners/{owner_id}/analysis/distances Owner Distance Analysis
GET /v1/owners/{owner_id}/analysis/jockeys Owner Jockey Analysis
GET /v1/owners/{owner_id}/analysis/trainers Owner Trainer Analysis
GET /v1/owners/{owner_id}/results Owner Results
GET /v1/racecards/basic List Racecards Basic
GET /v1/racecards/big-races List Racecards Big Races
GET /v1/racecards/free List Racecards Free
GET /v1/racecards/pro List Racecards Pro
GET /v1/racecards/standard List Racecards Standard
GET /v1/racecards/summaries List Racecard Summaries
GET /v1/racecards/{horse_id}/results List Racecard Horse Results
GET /v1/racecards/{race_id}/pro Race Pro
GET /v1/racecards/{race_id}/standard Race Standard
GET /v1/results List Results
GET /v1/results/today List Todays Results
GET /v1/results/{race_id} Result
GET /v1/sires/search Search Sires
GET /v1/sires/{sire_id}/analysis/classes Sire Class Analysis
GET /v1/sires/{sire_id}/analysis/distances Sire Distance Analysis
GET /v1/sires/{sire_id}/results Sire Results
GET /v1/trainers/search Search Trainers
GET /v1/trainers/{trainer_id}/analysis/courses Trainer Course Analysis
GET /v1/trainers/{trainer_id}/analysis/distances Trainer Distance Analysis
GET /v1/trainers/{trainer_id}/analysis/horse-age Trainer Horse Age Analysis
GET /v1/trainers/{trainer_id}/analysis/jockeys Trainer Jockey Analysis
GET /v1/trainers/{trainer_id}/analysis/owners Trainer Owner Analysis
GET /v1/trainers/{trainer_id}/results Trainer Results