Support
Every question runs through a ticket with a thread, so nothing gets lost in an inbox and you can always see where it got to. Most answers are already below.
Sign in with Google and a key is issued on the spot, on the free plan. There is no card to enter, no trial that runs out and nothing to cancel later. The key sits on your account page and stays visible there, so you can copy it again whenever you need it.
Send it on every request in the X-API-Key header. A ?key= query parameter also works for tools that cannot set headers, such as a spreadsheet or a quick look in a browser tab, but a key in a URL ends up in logs, browser history and anything the link is pasted into, so use the header wherever you can.
A sensible first call is GET /v1/meta/coverage. It tells you what the archive holds and exactly what your own key can reach, so you know where you stand before writing anything else.
Read more: Getting started: https://apihorseracing.com/documentation/getting-started
The same production database every paid plan reads. It is not a sandbox, not sample data and not a trial: the rows are real, on a delayed window, and the key never expires.
Two things decide what a free key can see. The window is the range of dates it reads; ask for a date outside it and you get 403 outside_plan_window, with the window and the date you asked for named in the body, rather than an empty list that looks like missing data. The groups: the computed statistics and the race reports need a paid plan whatever the date, and come back as 403 upgrade_required naming the plans that reach them.
Everything else is open to you inside the window, which makes the free key the honest way to check a jurisdiction or an endpoint does what you need before you pay. The meta block on every response carries your plan and window too.
Read more: What a free key reaches: https://apihorseracing.com/documentation/free-key
Look at the status and the code, because they mean different things. A 401 unauthorized means no key arrived or we do not recognise it: check the header is spelt X-API-Key, and whether the key was rotated from your account page, which stops the old one the moment the new one appears.
A 403 is not an authentication problem at all. upgrade_required means the key is fine but the plan does not reach that endpoint; outside_plan_window means the date is outside what the plan reads; forbidden means the account has been disabled, which is never a rate limit.
None of these clears by retrying. A client that retries a 401 or a 403 on a backoff only spends its own allowance. If it still makes no sense, open a ticket with the request_id from the response and we can find the exact request.
Read more: Authentication: https://apihorseracing.com/documentation/authentication
No new key, ever. There is one key per account and your plan is read from the account on every single request, so an upgrade widens what the key you already hold can reach the moment it goes through. Nothing to reissue, nothing to redeploy. A downgrade or a cancellation works the same way in reverse, and the key carries on at the free plan rather than being switched off.
One account has one key, which is exactly what makes that work. If you need to keep a staging system apart from production, open a ticket and say what you are building; we will tell you honestly whether separate keys are coming.
Webhook subscriptions belong to the account rather than the key, so rotating the key does not stop deliveries either.
Read more: Your account: https://apihorseracing.com/account
Rotate it from your account page straight away. The new key works immediately and the old one stops immediately, so have the new value ready to put into your systems before you press the button.
Usage counts against your allowance whoever made the request, so a leaked key costs you, not just us. Keep it out of anything shipped to a browser or an app (proxy the calls through your own server instead), out of code repositories, and in an environment variable or a secrets manager.
We will never ask you for your key, and you never need to send it to us. For a problem with a request, send its request_id: it identifies the request without the credential.
Read more: Keeping a key safe: https://apihorseracing.com/documentation/authentication#keeping-it-safe
It comes down to two questions: which dates you need, and whether you need our computed statistics. Live ($49 a month) is today, the days ahead and the last three days, for anyone showing current racing. Archive ($99) is the history back to 2017, for research and models, at a slower research pace. Complete ($119) is both together, plus the race reports through the API. Analyst ($199) is everything, plus the statistics endpoints: A/E, level-stakes return and the breakdowns for horses, trainers, jockeys and owners.
Every paid plan reaches every jurisdiction and every field. Nothing is sold as an add-on, there is no per-country pricing and no premium region. Paying yearly costs ten months instead of twelve.
If you are not sure, start on the free key, call the endpoints you intend to use, and upgrade when you know. The same key carries over.
Read more: Pricing: https://apihorseracing.com/pricing
From your account page, in two clicks. No email, no phone call and no retention steps.
Your plan stays live until the end of the period you have already paid for, and you are not charged again. After that the key drops to the free plan rather than being switched off, so anything you have built keeps working against the free window.
Read more: Terms of service: https://apihorseracing.com/terms
Subscriptions are not refunded, and part-used periods are not pro-rated. That is why the free key exists: it reads the same production database every paid plan reads, so you can check the data does what you need before anything is charged.
Where something was our fault, we put it right: a charge taken twice, or a charge after you cancelled, comes back to you. Nothing in the policy removes any right you have under consumer law where you live; where the law gives you more, the law wins.
If you think a charge is wrong, use the form on the refunds page. It opens a ticket that a person reads, with billing and usage looked at together, and you get a straight answer. Please use it before raising a chargeback, which takes weeks and settles nothing we could not have sorted directly.
Read more: Refunds and cancellations: https://apihorseracing.com/refunds
A/E is actual winners divided by expected winners, where expected comes from the starting prices, normalised so each race sums to one. Above 1.00 means a horse, trainer or jockey won more often than the market said; below means less; 1.00 means the market had it right. It is a better measure than strike rate, because a yard running good horses in weak races can win often and still lose money at every price it takes.
Every A/E comes with a_e_range (a confidence interval), significant (true only when that interval excludes 1.00) and low_sample (true under about thirty runs). Read them together: an A/E of 5.00 over four runs is noise, however striking it looks.
Level-stakes return is the profit or loss from a one-unit bet on every run at starting price. Both are on the Analyst plan. We supply data, not tips: neither figure is a prediction about the next race.
Read more: Understanding A/E: https://apihorseracing.com/documentation/understanding-ae
Nine times out of ten because the jurisdiction never published it, and no provider has what was not released. Official ratings, for example, are on about four in five British runners and only a few percent of French ones. Race class is close to a British idea. The data coverage page counts every field in every country from the archive itself, rather than claiming it, and /v1/countries returns the same flags to your code.
The rest of the time it is a matter of when. A race fills in stages: the field and weights days before, the going on the morning, prices at the off, positions and times once it has run, and pedigree and beaten distances on a later pass. A null on a race that has not settled is a value that has not happened yet, not a gap.
Read /v1/countries once at start-up and refuse to run on a region that cannot support your work, rather than producing quiet nonsense from it.
Read more: Data coverage: https://apihorseracing.com/data-coverage
It depends on the year. Until the end of 2021 America published the placings and nothing below them, so runners outside the first four from those years come back with position: null: about 46% of American runners from 2017 to 2021 have a position. Since 2022 the full finishing order is published, and about 85% of American runners carry one; the rest are mostly horses that did not finish.
You can tell the three kinds of missing position apart. With casualty set (pulled up, fell, unseated and the rest), the horse did not complete. With no casualty on a settled race, the place was not published. With result_available false, the race has not run or settled yet.
So for work that counts beaten runners, American racing from 2022 on is usable and the years before it are not. Beaten distances are not published for American races in any year.
Read more: Coverage by country: https://apihorseracing.com/documentation/coverage
For Hong Kong, Japan and Korea, yes. Those jurisdictions publish the running position of every runner at each call of the race, and we carry it on each runner, with the times wherever the course gives them. That is enough to see who led, who came from behind and where a race was won.
Britain, Ireland, France and the USA publish no sectionals openly, so races there carry the race time and beaten distances but no sections. That is a limit of what is published, and no plan changes it.
Read more: What a race carries: https://apihorseracing.com/documentation/what-a-race-carries
Every runner carries its starting price, both as published (10/3) and as a decimal, plus its implied probability and its rank in the market. Where the jurisdiction published one, there is an opening price too, with the prices touched, the drift and the direction in price_path. Its source field tells you which kind of history you have.
Price movement is a British and Irish thing: an opening price is on a little over half the runners in each, and essentially absent elsewhere. Hong Kong has no bookmakers, so its starting price is the final tote win odds, from the end of 2019 on. Tote returns are a separate endpoint and are published widely.
There is no bookmaker comparison and no in-running prices. We are not a price aggregator and will not become one. One more thing worth knowing: implied probabilities add up to the book percentage, not to one; the statistics use a normalised version that does.
Read more: Prices and price movement: https://apihorseracing.com/documentation/prices
Every response carries data_as_of in its meta block: the moment the serving database was last written, not the moment you asked. If it stops moving on a racing afternoon, something upstream has stopped, and that is worth an alert on your side.
Results usually land within minutes in Britain and Ireland and can take longer elsewhere, because the delay is mostly the jurisdiction publishing rather than us fetching. Racecards arrive as declarations are published, about 48 hours ahead for most British racing and later in other countries.
A settled race is final. Store it and never fetch it again; the only thing that changes after the off is the rare correction from the source.
Read more: Data freshness: https://apihorseracing.com/documentation/data-freshness
Usually not. Call /v1/meta/coverage first: it returns the newest date held and what your key reaches, which tells apart a date we do not have, a date your plan cannot read, and a day with no racing on it.
An empty data: [] is an answer, not a failure: no racing that day, or nothing matching your filter. A 403 is a plan or window refusal and names which. A 404 not_found on a race means the identifier is well formed but nothing has it yet, for example a race with no result posted.
If it still looks wrong, open a ticket with the request_id from the response and the race you expected. That gets us to the exact request in a minute.
Read more: The envelope: https://apihorseracing.com/documentation/the-envelope
Yes, cache it, and you should. Courses, countries and reference values effectively never change. A settled race, a result or a past day's card is final. Only today's card needs fetching again, every few minutes, because non-runners and going change before the off. Statistics move slowly and are fine cached for hours.
For history, walk the dates: one request per day returns everything that ran, with no cursor to manage. January 2017 to today is about 3,500 requests, which fits in a month on any paid plan and takes well under an hour at a steady pace. Make the loop resumable, store the raw responses, keep one process with a fixed gap rather than many in parallel, and stop on quota_exceeded.
Once you are current, switch to the result.received webhook instead of polling. A backfill followed by a webhook is the whole integration for most people.
Read more: Bulk and backfilling: https://apihorseracing.com/documentation/bulk
Yes. Every identifier looks like rc_1WNM9X2: a two-letter prefix for the kind of thing (race, meeting, horse, trainer, jockey, owner, course), then a short string. An identifier for a given thing never changes, so store them, use them as foreign keys and cache against them.
They are opaque on purpose: they carry no order and nothing you can count through, so do not build, parse or lowercase one. The prefix is there to catch mistakes. Passing a horse identifier where a race is expected returns 422 invalid_id, rather than the wrong race.
Owners are the one exception worth knowing: the source gives owners no identifier, so theirs come from the name. A syndicate written two ways is two owners, and we do not merge them by guessing.
Read more: Identifiers: https://apihorseracing.com/documentation/identifiers
Every timestamp we generate (data_as_of, delivery times and the rest) is UTC in ISO 8601 with an explicit offset.
The exception is race_time, which is the time on the racecourse clock, with no offset: the 2.35 at a British course is 14:35, as the racecard prints it. Do not parse it as a timestamp or shift it, and do not compare race times across countries to decide which race is next.
Dates are plain YYYY-MM-DD, the raceday as the jurisdiction defines it, so an evening meeting that runs past midnight still belongs to the day it started. Anything else in a date parameter returns invalid_param rather than being guessed at.
Read more: Timezones and dates: https://apihorseracing.com/documentation/timezones
Two different things return a 429, so branch on the code, not the status. rate_limited means too many requests this minute: wait the number of seconds in Retry-After and carry on. quota_exceeded means the month's allowance is used up, and retrying achieves nothing until it resets.
Each plan has a per-minute rate and a monthly allowance: Live 180 a minute and 250,000 a month, Archive 90 and 150,000, Complete 180 and 400,000, Analyst 240 and 1,000,000. X-RateLimit-Remaining is on every response, so slow down before you reach zero, and a fixed gap between requests with ten percent to spare beats a retry loop.
GET /v1/account/usage shows the month by day or by endpoint and does not count against you. One endpoint dominating the month is usually a poller that should be a webhook.
Read more: Rate limits and quotas: https://apihorseracing.com/documentation/rate-limits
Subscribe with POST /v1/webhooks/subscribe, giving an https address, the events you want and, usually, a region. There are four events: result.received when a race settles, race.abandoned, meeting.abandoned and racecard.published. Deliveries cost nothing against your allowance, and arrive sooner than a poll would find them.
The subscription returns a signing secret once, so store it then. Every delivery carries X-AHR-Signature, an HMAC-SHA256 of the raw body with that secret: check it against the raw body, not re-encoded JSON, with a constant-time comparison.
Delivery is at least once, so key your handler on the race identifier and it will not mind seeing a race twice. Answer 200 straight away and do the work afterwards; a delivery without a 2xx is retried with a widening gap for about a day. /v1/webhooks/deliveries shows what failed and what your endpoint said.
Read more: Webhooks: https://apihorseracing.com/documentation/webhooks
Usually one of two things: the key field is empty, or the path still has a placeholder in it such as {race_id}. The output panel says which.
The console runs from your own browser straight to the API, so a browser extension that blocks requests (an ad blocker or a privacy tool) can stop it too. Try with the extension paused for the site, or run the same call with curl from the example under it.
If the console shows an error code, it is the same code your own code would get, and the errors guide says what each means and whether to retry.
Read more: Errors: https://apihorseracing.com/documentation/errors
Yes. The API has an MCP server: add one address and your key to your assistant's settings, restart it, and ask about racing in plain English. Nothing is installed on your machine. Both Authorization: Bearer and X-API-Key are accepted, because assistants differ in which they send.
It offers fourteen well-chosen tools rather than all the endpoints, because a model picks the right tool from a short list far more reliably. Four work on a free key. Your plan applies exactly as it does in the API: same window, same rate, same allowance.
One thing to watch: an assistant can make several calls to answer one question, so a per-minute rate you would never reach by hand can be reached in a single conversation. There is also an agent skill at /skill.md for assistants that read skills.
Read more: Using it from an assistant: https://apihorseracing.com/documentation/mcp-server
Yes, both. Official client libraries for JavaScript and TypeScript, Python, PHP and Go are generated from the same registry as the API itself, so a method exists exactly when the endpoint does. They have no third-party dependencies and work with a free key.
The whole API is also published as an OpenAPI 3.1 document at /openapi.json, with real example responses and every error each endpoint can return. Plan restrictions are in it as well, so a client you generate yourself knows which methods your plan reaches. There is a Postman collection of the same surface if you would rather click through it.
Read more: Client libraries: https://apihorseracing.com/labs/sdk
Three things get the fastest answer: the call you made (the path and parameters), the request_id from the response, and what you expected to come back instead. With those we can find the exact request in our logs and answer the first time rather than asking.
Never send your key; we do not need it and will never ask for it. Signed in, your plan comes with the ticket, so there is no need to say which you are on.
Replies arrive in My tickets on this page, and an email tells you when one is there. Keep everything in the ticket's thread so the whole history stays together.
Read more: Open a ticket: https://apihorseracing.com/support/new
Not answered here? Open a ticket: a person answers, usually within a working day.
The answers above cover most of what people ask, and the search reads every one as you type.
Signed in, your plan comes with it. Say what you called, what came back and what you expected.
Answers arrive in My tickets. An email only tells you one is there; the thread stays the record.