A recent runners panel
One call, already ordered, with prices attached.
/v1/trainers/{trainer_id}/form
Newest first, with the price and the finish.
Send your key in the X-API-Key header, or as
?key= if your tool cannot set one. A date outside your plan's window returns
403 outside_window naming the window, never an empty array.
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| trainer_id | path | string | yes | Opaque trainer identifier. |
| limit | query | integer | no | 1 to 100. Defaults to 25. |
| cursor | query | string | no | Opaque. Pass next_cursor from the previous response. |
curl https://api.apihorseracing.com/v1/trainers/tr_2QVAXT3/form \ -H "X-API-Key: $AHR_KEY"
$ch = curl_init('https://api.apihorseracing.com/v1/trainers/tr_2QVAXT3/form'); curl_setopt_array($ch, [ CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => ['X-API-Key: ' . getenv('AHR_KEY')], ]); $data = json_decode(curl_exec($ch), true)['data'];
const res = await fetch( 'https://api.apihorseracing.com/v1/trainers/tr_2QVAXT3/form', { headers: { 'X-API-Key': process.env.AHR_KEY } } ); const { meta, data } = await res.json();
import os, requests r = requests.get( "https://api.apihorseracing.com/v1/trainers/tr_2QVAXT3/form", headers={"X-API-Key": os.environ["AHR_KEY"]}, ).json()
curl https://api.apihorseracing.com/v1/trainers/tr_2QVAXT3/form?key=$AHR_KEY
$url = 'https://api.apihorseracing.com/v1/trainers/tr_2QVAXT3/form' . '?key=$AHR_KEY'; $data = json_decode(file_get_contents($url), true)['data'];
const res = await fetch( 'https://api.apihorseracing.com/v1/trainers/tr_2QVAXT3/form?key=$AHR_KEY' ); const { meta, data } = await res.json();
import os, requests r = requests.get( "https://api.apihorseracing.com/v1/trainers/tr_2QVAXT3/form?key=$AHR_KEY", ).json()
{ "meta": { "request_id": "f23376939eb9acc3", "data_as_of": "2026-09-12T05:10:27+00:00", "plan": "analyst", "window": "2017 → upcoming", "count": 3, "searched": { "from": null, "to": null, "note": "The whole archive. Your plan sets no date limit." } }, "data": [ { "race_id": "rc_28F1QWN", "date": "2026-09-06", "course_id": "cr_JSRC8Z", "course": "Fontwell", "run_type": null, "class": "5", "distance": "2m 1f 162y", "going": "Good", "surface": "TURF", "runners": 7, "position": 2, "casualty": null, "beaten_distance": null, "sp": "7/2", "sp_decimal": 4.5, "favourite": false, "market_position": 3, "weight": "11-0", "official_rating": null, "headgear": "Tongue strap", "jockey_id": "jk_2CGAGE5", "jockey": "David Noonan", "trainer_id": "tr_2QVAXT3", "trainer": "Ben Clarke", "last_run_days": 105, "horse_id": "hs_3AMWV9F" }, { "race_id": "rc_209NV19", "date": "2026-07-13", "course_id": "cr_13J5PZ", "course": "Newton Abbot", "run_type": null, "class": "5", "distance": "2m 2f 110y", "going": "Good to Firm (Good in places)", "surface": "TURF", "runners": 12, "position": 8, "casualty": null, "beaten_distance": null, "sp": "14/1", "sp_decimal": 15, "favourite": false, "market_position": 10, "weight": "12-0", "official_rating": 95, "headgear": "Blinkers", "jockey_id": "jk_2CGAGE5", "jockey": "David Noonan", "trainer_id": "tr_2QVAXT3", "trainer": "Ben Clarke", "last_run_days": 47, "horse_id": "hs_1ZF0638" }, "… 1 more" ] }
A real response from /v1/trainers/tr_2QVAXT3/form?limit=3,
captured by calling the live API rather than written by hand.
Each field is described once and rendered on every endpoint that returns it, so the wording cannot drift between pages.
| Field | Type | What it is |
|---|---|---|
| race_id | string | Opaque race identifier. Stable, and safe to store. |
| date | date | Race date, YYYY-MM-DD. |
| course_id | string | Opaque course identifier. |
| course | string | Course name. |
| run_type | string | Flat, Hurdle, Chase or NH Flat. |
| class | string | Race class. |
| distance | string | Official distance as published, e.g. "3m 3f 119y". |
| going | string | Ground description at the off. |
| surface | string | Turf, Dirt, Polytrack and so on. |
| runners | integer | Runners who took part. |
| position | integer | Finishing position. Null means the runner did not complete or was not published below the placings. |
| casualty | string | Why a runner did not complete: PulledUp, Fell, UnseatedRider, BroughtDown, RefusedToRace, RanOut. |
| beaten_distance | string | Distance behind the horse in front. |
| sp | string | Starting price, fractional, as returned. |
| sp_decimal | number | Starting price as a decimal, computed once at load so you are not parsing fractions per row. |
| favourite | boolean | Shortest price in the race. Joint favourites are all flagged. |
| market_position | integer | Rank by price, one being shortest. Ties share a rank. |
| weight | string | Weight carried, stones and pounds. |
| official_rating | integer | Handicap mark. Values outside 0 to 200 are dropped as source errors. |
| headgear | string | Blinkers, cheekpieces, tongue tie and so on. |
| jockey_id | string | Opaque jockey identifier. |
| jockey | string | Rider name. |
| trainer_id | string | Opaque trainer identifier. |
| trainer | string | Trainer name. |
| last_run_days | integer | Days since this horse last ran. Null on a first run. |
| horse_id | string | Opaque horse identifier. |
The code a race was run under lives on the horse profile rather than the race, so it arrives on a later pass. A null run_type means not yet fetched, not unclassified.
Class is published in Britain and reliably absent elsewhere. Do not treat a null class as an ungraded race.
America publishes the placings and nothing below them, so position is null for most of the field. Britain, Ireland, France and South Africa carry a position for the great majority of runners. /v1/countries returns the current figure for each.
They are published on the horse profile rather than the result page, so they fill in behind the main crawl.
Britain, Ireland and America carry a rating on roughly three quarters of runners. France and Germany carry one on about three percent. Values outside 0 to 200 are dropped, because the source returns sentinels there rather than ratings.
| Code | Status | When |
|---|---|---|
| unauthorized | 401 | No key, or one we do not recognise. Check the header name and that the key has not been rotated from your account page. |
| outside_window | 403 | You asked for a date your plan cannot see. The body names the window and the date you asked for. Search endpoints clamp instead of refusing, and report what they actually searched in meta. |
| not_found | 404 | The identifier is well formed but nothing has it. Distinct from invalid_id, which means the identifier itself is wrong. |
| invalid_id | 422 | The prefix does not match the kind of thing the path expects, or the identifier is malformed. A horse id passed where a race is wanted lands here rather than returning the wrong race. |
| invalid_param | 422 | A date that is not YYYY-MM-DD, a by= dimension we do not have, or a cursor that did not come from us. The message names the parameter. |
| rate_limited | 429 | Past your per-minute rate. Retry-After is set, and X-RateLimit-Remaining tells you where you stand on every successful response too. |
| server_error | 500 | Ours, not yours. Every response carries a request_id; quote it and we can find the exact request. |
A real request from your browser straight to
api.apihorseracing.com with
your own key. Nothing is proxied and nothing is logged by this page.
Remembered in this browser so you do not paste it on every page. Forget it
Recent runners from the yard, newest first, with the horse, the race, the price and the finishing position on every row.
This is the endpoint behind every "yard in form" panel, and it is worth being honest about what it can and cannot support. Fourteen days of results is between twenty and two hundred runners depending on the yard, and a hot streak over twenty runners is indistinguishable from chance.
Clipped to your plan's window, like every form endpoint, with meta stating how many runs were withheld.
One call, already ordered, with prices attached.
Read it alongside the A/E from the statistics endpoint over the same period. Four winners from short-priced favourites is not form.