# Harness Racing API

Trot and pace racing as JSON: results with every runner, racecards, win prices before the off, the history back to 1981 and 23 statistics, from 19 countries.

- Base address: https://api.harnessracingapi.com
- Documentation: https://harnessracingapi.com/documentation
- MCP server: https://harnessracingapi.com/mcp
- Agent skill: https://harnessracingapi.com/skill.md
- OpenAPI: https://harnessracingapi.com/openapi.json

## Authentication

Send the key as `X-API-Key: <key>` or `Authorization: Bearer <key>`. A key in the address (`?key=`) is refused with 400.

## Answers

Every answer is `{"data": ..., "meta": {...}}`. Lists come in pages of at most 50: `page` or `cursor` (from `meta.next_cursor`). Errors are `{"error": {"code", "message"}}` with codes bad_request (400), unauthorized (401), upgrade_required (403), not_found (404), unknown_parameter (422), rate_limited and quota_exceeded (429), not_ready (503), server_error (500).

## Ids and times

Ids are ours and never change: `hr_rc_` race, `hr_mt_` meeting, `hr_tk_` racecourse, `hr_hs_` horse, `hr_dr_` driver, `hr_tr_` trainer, `hr_wh_` webhook, `hr_fl_` file. A race's `date` is its racecourse's own day; `off` is UTC, `off_local` the racecourse's clock with its offset, `timezone` its zone.

## Plans

- Free key: $0 a month; reads free endpoints over yesterday; 100 calls a day, 10 a minute.
- Live: $49 a month; reads free, live endpoints over last 30 days; 10000 calls a day, 120 a minute.
- Archive: $79 a month; reads free, archive endpoints over full; 25000 calls a day, 180 a minute.
- Complete: $119 a month; reads free, live, archive endpoints over full; 50000 calls a day, 300 a minute.
- Analyst: $179 a month; reads free, live, archive, analyst endpoints over full; 100000 calls a day, 600 a minute.

## Reference

Countries, racecourses, your usage and the API's own state.

### GET /v1/countries

List countries. Every country we hold, with the date its results start, how far back it is still being read, and what its results carry. Plan: Every plan, the free key included. MCP tool: `list_countries`. Docs: https://harnessracingapi.com/documentation/countries

Returns a list of:
- `code` (string): Country code
- `name` (string): Country
- `from` (date): First result held
- `filling_to` (date): How far back the history is being read, null when complete
- `races` (integer): Races held
- `racecourses` (integer): Racecourses with results
- `every_runner` (boolean): Results carry every runner, not only the winner
- `last_result` (datetime): When the newest result landed, UTC

### GET /v1/countries/{code}

One country. One country in full, with its racecourses and how fresh its results are. Plan: Every plan, the free key included. Docs: https://harnessracingapi.com/documentation/country

Parameters:
- `code` (string, required): Country code, in the path

Returns one:
- `code` (string): Country code
- `name` (string): Country
- `from` (date): First result held
- `filling_to` (date): How far back the history is being read, null when complete
- `races` (integer): Races held
- `racecourses` (integer): Racecourses with results
- `every_runner` (boolean): Results carry every runner, not only the winner
- `last_result` (datetime): When the newest result landed, UTC

### GET /v1/racecourses

List racecourses. Every racecourse with results, by country. Plan: Every plan, the free key included. Docs: https://harnessracingapi.com/documentation/racecourses

Parameters:
- `country` (string): One or more country codes, comma separated. One of: FR, SE, NO, FI, DK, BE, NL, DE, CH, AT, IT, ES, HU, IE, US, CA, AU, NZ
- `page` (integer): Page number, from 1
- `cursor` (string): The next_cursor from the last answer
- `limit` (integer): Items a page, at most 50

Returns a list of:
- `id` (string): Our racecourse id
- `name` (string): Racecourse name
- `country` (string): Country code
- `surface` (string): cinder, sand or grass
- `circuit_m` (integer): One lap in metres
- `races` (integer): Races held
- `first` (date): First result held

### GET /v1/racecourses/{id}

One racecourse. One racecourse, its circuit and how many races we hold there. Plan: Every plan, the free key included. Docs: https://harnessracingapi.com/documentation/racecourse

Parameters:
- `id` (string, required): The racecourse id, in the path

Returns one:
- `id` (string): Our racecourse id
- `name` (string): Racecourse name
- `country` (string): Country code
- `surface` (string): cinder, sand or grass
- `circuit_m` (integer): One lap in metres
- `races` (integer): Races held
- `first` (date): First result held

### GET /v1/usage

Your usage. Your plan, calls today, your limits and when they reset. It never counts against your allowance. Plan: Every plan, the free key included. Docs: https://harnessracingapi.com/documentation/usage

Returns one:
- `plan` (string): Your plan
- `calls_today` (integer): Calls since 00:00 UTC
- `day_limit` (integer): Calls a day
- `minute_limit` (integer): Calls a minute
- `resets_at` (datetime): When the day count resets, UTC
- `window` (object): The days your plan reads

### GET /v1/status

API status. Whether results are arriving, country by country, and when each last landed. Plan: Every plan, the free key included. Docs: https://harnessracingapi.com/documentation/status

Returns one:
- `state` (string): up, slow or down
- `countries` (array): Each country with its last result and today's count
- `checked_at` (datetime): When this was built, UTC

## Meetings and racecards

What is racing, where, and who is declared.

### GET /v1/meetings

List meetings. Race meetings by day and country, with their race counts and first start. Plan: Live, Complete and Analyst. Docs: https://harnessracingapi.com/documentation/meetings

Parameters:
- `date` (date): A day, YYYY-MM-DD, or today, yesterday
- `country` (string): One or more country codes, comma separated. One of: FR, SE, NO, FI, DK, BE, NL, DE, CH, AT, IT, ES, HU, IE, US, CA, AU, NZ
- `page` (integer): Page number, from 1
- `cursor` (string): The next_cursor from the last answer
- `limit` (integer): Items a page, at most 50

Returns a list of:
- `id` (string): Our meeting id
- `country` (string): Country code
- `racecourse` (object): Racecourse id and name
- `date` (date): The racecourse's own day
- `races` (integer): Races on the card
- `first_off` (datetime): First race, UTC
- `status` (string): scheduled, racing, finished

### GET /v1/meetings/{id}

One meeting. One meeting with every race on its card. Plan: Live, Complete and Analyst. Docs: https://harnessracingapi.com/documentation/meeting

Parameters:
- `id` (string, required): The meeting id, in the path

Returns one:
- `id` (string): Our meeting id
- `country` (string): Country code
- `racecourse` (object): Racecourse id and name
- `date` (date): The racecourse's own day
- `races` (integer): Races on the card
- `first_off` (datetime): First race, UTC
- `status` (string): scheduled, racing, finished
- `card` (array): Its races, in order

### GET /v1/racecards

Racecards. Races coming up with every declared runner, driver, trainer and starting position. Plan: Live, Complete and Analyst. MCP tool: `todays_racecards`. Docs: https://harnessracingapi.com/documentation/racecards

Parameters:
- `date` (date): A day, YYYY-MM-DD, or today, yesterday
- `country` (string): One or more country codes, comma separated. One of: FR, SE, NO, FI, DK, BE, NL, DE, CH, AT, IT, ES, HU, IE, US, CA, AU, NZ
- `racecourse` (string): A racecourse id
- `page` (integer): Page number, from 1
- `cursor` (string): The next_cursor from the last answer
- `limit` (integer): Items a page, at most 50

Returns a list of:
- `id` (string): Our race id
- `country` (string): Country code
- `racecourse` (object): Racecourse id and name
- `date` (date): The racecourse's own day
- `off` (datetime): Start time in UTC
- `number` (integer): Race number on the day
- `name` (string): Race name
- `distance_m` (integer): Distance in metres
- `start` (string): autostart or standing
- `gait` (string): trot or pace
- `meeting` (string): The meeting it is part of: its racecourse on its day
- `off_local` (datetime): Start time at the racecourse, with its UTC offset
- `timezone` (string): The racecourse's own time zone (a state's, in the US, Canada and Australia)
- `going` (string): The track's condition on the day where the source gives it: fast, wet fast, good, sloppy, muddy, slow, heavy
- `temperature_c` (number): Air temperature at the racecourse in degrees Celsius, where the source gives it
- `disputed` (array): Fields our sources disagree on with no known reason (winner, distance_m): the value shown is the best source's and is not yet settled. Empty when every source agrees
- `prize` (object): Total prize money and its currency
- `status` (string): scheduled, running, final or abandoned
- `runners` (array): Declared runners

### GET /v1/races/{id}

One race. One race, before or after the off, with every runner. Plan: Live, Complete and Analyst. MCP tool: `get_race`. Docs: https://harnessracingapi.com/documentation/race

Parameters:
- `id` (string, required): The race id, in the path

Returns one:
- `id` (string): Our race id
- `country` (string): Country code
- `racecourse` (object): Racecourse id and name
- `date` (date): The racecourse's own day
- `off` (datetime): Start time in UTC
- `number` (integer): Race number on the day
- `name` (string): Race name
- `distance_m` (integer): Distance in metres
- `start` (string): autostart or standing
- `gait` (string): trot or pace
- `meeting` (string): The meeting it is part of: its racecourse on its day
- `off_local` (datetime): Start time at the racecourse, with its UTC offset
- `timezone` (string): The racecourse's own time zone (a state's, in the US, Canada and Australia)
- `going` (string): The track's condition on the day where the source gives it: fast, wet fast, good, sloppy, muddy, slow, heavy
- `temperature_c` (number): Air temperature at the racecourse in degrees Celsius, where the source gives it
- `disputed` (array): Fields our sources disagree on with no known reason (winner, distance_m): the value shown is the best source's and is not yet settled. Empty when every source agrees
- `prize` (object): Total prize money and its currency
- `status` (string): scheduled, running, final or abandoned
- `runners` (array): Every runner

### GET /v1/races/{id}/runners

Runners in a race. Just the runners of one race, in saddle cloth order before the off, finishing order after. Plan: Live, Complete and Analyst. Docs: https://harnessracingapi.com/documentation/race-runners

Parameters:
- `id` (string, required): The race id, in the path

Returns a list of:
- `place` (integer): Finishing place, null when not placed
- `number` (integer): Saddle cloth number
- `post` (integer): Starting position
- `horse` (object): Horse id and name
- `driver` (object): Driver id and name
- `trainer` (object): Trainer id and name
- `km_time` (string): Time per km, m:ss.t
- `odds` (number): Final odds, decimal
- `prize` (number): Prize money won
- `status` (string): finished, disqualified, scratched or broke

## Results

Every finished race with every runner, minutes after the finish.

### GET /v1/results

Results by day. Every finished race on a day, with every runner, place, km time and odds. Plan: Live, Complete and Analyst. MCP tool: `get_results`. Docs: https://harnessracingapi.com/documentation/results

Parameters:
- `date` (date): A day, YYYY-MM-DD, or today, yesterday
- `country` (string): One or more country codes, comma separated. One of: FR, SE, NO, FI, DK, BE, NL, DE, CH, AT, IT, ES, HU, IE, US, CA, AU, NZ
- `racecourse` (string): A racecourse id
- `page` (integer): Page number, from 1
- `cursor` (string): The next_cursor from the last answer
- `limit` (integer): Items a page, at most 50

Returns a list of:
- `id` (string): Our race id
- `country` (string): Country code
- `racecourse` (object): Racecourse id and name
- `date` (date): The racecourse's own day
- `off` (datetime): Start time in UTC
- `number` (integer): Race number on the day
- `name` (string): Race name
- `distance_m` (integer): Distance in metres
- `start` (string): autostart or standing
- `gait` (string): trot or pace
- `meeting` (string): The meeting it is part of: its racecourse on its day
- `off_local` (datetime): Start time at the racecourse, with its UTC offset
- `timezone` (string): The racecourse's own time zone (a state's, in the US, Canada and Australia)
- `going` (string): The track's condition on the day where the source gives it: fast, wet fast, good, sloppy, muddy, slow, heavy
- `temperature_c` (number): Air temperature at the racecourse in degrees Celsius, where the source gives it
- `disputed` (array): Fields our sources disagree on with no known reason (winner, distance_m): the value shown is the best source's and is not yet settled. Empty when every source agrees
- `prize` (object): Total prize money and its currency
- `status` (string): scheduled, running, final or abandoned
- `runners` (array): Every runner, in finishing order

### GET /v1/results/yesterday

Yesterday's results. Every race from yesterday, at each racecourse's own day. The free key's home. Plan: Every plan, the free key included. MCP tool: `yesterdays_results`. Docs: https://harnessracingapi.com/documentation/results-yesterday

Parameters:
- `country` (string): One or more country codes, comma separated. One of: FR, SE, NO, FI, DK, BE, NL, DE, CH, AT, IT, ES, HU, IE, US, CA, AU, NZ
- `page` (integer): Page number, from 1
- `cursor` (string): The next_cursor from the last answer
- `limit` (integer): Items a page, at most 50

Returns a list of:
- `id` (string): Our race id
- `country` (string): Country code
- `racecourse` (object): Racecourse id and name
- `date` (date): The racecourse's own day
- `off` (datetime): Start time in UTC
- `number` (integer): Race number on the day
- `name` (string): Race name
- `distance_m` (integer): Distance in metres
- `start` (string): autostart or standing
- `gait` (string): trot or pace
- `meeting` (string): The meeting it is part of: its racecourse on its day
- `off_local` (datetime): Start time at the racecourse, with its UTC offset
- `timezone` (string): The racecourse's own time zone (a state's, in the US, Canada and Australia)
- `going` (string): The track's condition on the day where the source gives it: fast, wet fast, good, sloppy, muddy, slow, heavy
- `temperature_c` (number): Air temperature at the racecourse in degrees Celsius, where the source gives it
- `disputed` (array): Fields our sources disagree on with no known reason (winner, distance_m): the value shown is the best source's and is not yet settled. Empty when every source agrees
- `prize` (object): Total prize money and its currency
- `status` (string): scheduled, running, final or abandoned
- `runners` (array): Every runner, in finishing order

### GET /v1/results/latest

Latest results. Results that landed since a moment you give, newest first. Made for polling. Plan: Live, Complete and Analyst. Docs: https://harnessracingapi.com/documentation/results-latest

Parameters:
- `since` (datetime): Only results newer than this, UTC
- `country` (string): One or more country codes, comma separated. One of: FR, SE, NO, FI, DK, BE, NL, DE, CH, AT, IT, ES, HU, IE, US, CA, AU, NZ
- `limit` (integer): Items a page, at most 50

Returns a list of:
- `id` (string): Our race id
- `country` (string): Country code
- `racecourse` (object): Racecourse id and name
- `date` (date): The racecourse's own day
- `off` (datetime): Start time in UTC
- `number` (integer): Race number on the day
- `name` (string): Race name
- `distance_m` (integer): Distance in metres
- `start` (string): autostart or standing
- `gait` (string): trot or pace
- `meeting` (string): The meeting it is part of: its racecourse on its day
- `off_local` (datetime): Start time at the racecourse, with its UTC offset
- `timezone` (string): The racecourse's own time zone (a state's, in the US, Canada and Australia)
- `going` (string): The track's condition on the day where the source gives it: fast, wet fast, good, sloppy, muddy, slow, heavy
- `temperature_c` (number): Air temperature at the racecourse in degrees Celsius, where the source gives it
- `disputed` (array): Fields our sources disagree on with no known reason (winner, distance_m): the value shown is the best source's and is not yet settled. Empty when every source agrees
- `prize` (object): Total prize money and its currency
- `status` (string): scheduled, running, final or abandoned
- `landed` (datetime): When we had the result, UTC

### GET /v1/results/{race}

One result. One finished race with every runner, its times and prize money. Plan: Live, Complete and Analyst. Docs: https://harnessracingapi.com/documentation/result

Parameters:
- `race` (string, required): The race id, in the path

Returns one:
- `id` (string): Our race id
- `country` (string): Country code
- `racecourse` (object): Racecourse id and name
- `date` (date): The racecourse's own day
- `off` (datetime): Start time in UTC
- `number` (integer): Race number on the day
- `name` (string): Race name
- `distance_m` (integer): Distance in metres
- `start` (string): autostart or standing
- `gait` (string): trot or pace
- `meeting` (string): The meeting it is part of: its racecourse on its day
- `off_local` (datetime): Start time at the racecourse, with its UTC offset
- `timezone` (string): The racecourse's own time zone (a state's, in the US, Canada and Australia)
- `going` (string): The track's condition on the day where the source gives it: fast, wet fast, good, sloppy, muddy, slow, heavy
- `temperature_c` (number): Air temperature at the racecourse in degrees Celsius, where the source gives it
- `disputed` (array): Fields our sources disagree on with no known reason (winner, distance_m): the value shown is the best source's and is not yet settled. Empty when every source agrees
- `prize` (object): Total prize money and its currency
- `status` (string): scheduled, running, final or abandoned
- `runners` (array): Every runner

## Odds

Prices as they move up to the off, and the final odds.

### GET /v1/odds/{race}

Odds now. The win price of every runner: the latest read before the off, the final price once run, and how far it has moved. Plan: Live, Complete and Analyst. MCP tool: `race_odds`. Docs: https://harnessracingapi.com/documentation/odds

Parameters:
- `race` (string, required): The race id, in the path

Returns a list of:
- `number` (integer): Saddle cloth number
- `horse` (object): Horse id and name
- `win` (number): Win price, decimal: the final price once run, else the latest read
- `place` (number): Place price, decimal; null until the totes' place prices are carried
- `moved` (number): Change since the first price, %
- `at` (datetime): When this price was read, UTC

### GET /v1/odds/{race}/history

Odds history. Every win price we read for a race, runner by runner: every 5 minutes in its last hour, kept when it moves, then the final price. From 10 Nov 2026 for races priced by the Swedish, Nordic and French totes. Plan: Live, Complete and Analyst. Docs: https://harnessracingapi.com/documentation/odds-history

Parameters:
- `race` (string, required): The race id, in the path

Returns a list of:
- `number` (integer): Saddle cloth number
- `prices` (array): Each price read, oldest first

### GET /v1/odds/movers

Market movers. Runners whose win price moved most in the last hour, across the races off in the next 3 hours, biggest first. Plan: Live, Complete and Analyst. Docs: https://harnessracingapi.com/documentation/odds-movers

Parameters:
- `country` (string): One or more country codes, comma separated. One of: FR, SE, NO, FI, DK, BE, NL, DE, CH, AT, IT, ES, HU, IE, US, CA, AU, NZ
- `limit` (integer): Items a page, at most 50

Returns a list of:
- `race` (object): Race id, name and start time
- `number` (integer): Saddle cloth number
- `horse` (object): Horse id and name
- `win` (number): Win price, decimal: the final price once run, else the latest read
- `place` (number): Place price, decimal; null until the totes' place prices are carried
- `moved` (number): Change since the first price, %
- `at` (datetime): When this price was read, UTC

## Archive

The full history, by range, by day, or by search.

### GET /v1/archive/results

Results by range. Every result between two days, by country or racecourse, as far back as we hold. Plan: Archive, Complete and Analyst. MCP tool: `search_archive`. Docs: https://harnessracingapi.com/documentation/archive-results

Parameters:
- `from` (date, required): First day, YYYY-MM-DD
- `to` (date, required): Last day, YYYY-MM-DD
- `country` (string): One or more country codes, comma separated. One of: FR, SE, NO, FI, DK, BE, NL, DE, CH, AT, IT, ES, HU, IE, US, CA, AU, NZ
- `racecourse` (string): A racecourse id
- `page` (integer): Page number, from 1
- `cursor` (string): The next_cursor from the last answer
- `limit` (integer): Items a page, at most 50

Returns a list of:
- `id` (string): Our race id
- `country` (string): Country code
- `racecourse` (object): Racecourse id and name
- `date` (date): The racecourse's own day
- `off` (datetime): Start time in UTC
- `number` (integer): Race number on the day
- `name` (string): Race name
- `distance_m` (integer): Distance in metres
- `start` (string): autostart or standing
- `gait` (string): trot or pace
- `meeting` (string): The meeting it is part of: its racecourse on its day
- `off_local` (datetime): Start time at the racecourse, with its UTC offset
- `timezone` (string): The racecourse's own time zone (a state's, in the US, Canada and Australia)
- `going` (string): The track's condition on the day where the source gives it: fast, wet fast, good, sloppy, muddy, slow, heavy
- `temperature_c` (number): Air temperature at the racecourse in degrees Celsius, where the source gives it
- `disputed` (array): Fields our sources disagree on with no known reason (winner, distance_m): the value shown is the best source's and is not yet settled. Empty when every source agrees
- `prize` (object): Total prize money and its currency
- `status` (string): scheduled, running, final or abandoned
- `runners` (array): Every runner

### GET /v1/archive/days/{date}

A whole day. One day from every country in one download, as JSON or CSV. Plan: Archive, Complete and Analyst. Docs: https://harnessracingapi.com/documentation/archive-day

Parameters:
- `date` (date, required): The day, in the path
- `format` (string): json or csv. One of: json, csv
- `country` (string): One or more country codes, comma separated. One of: FR, SE, NO, FI, DK, BE, NL, DE, CH, AT, IT, ES, HU, IE, US, CA, AU, NZ

Returns one:
- `date` (date): The day
- `races` (integer): Races in the file
- `runners` (integer): Runner rows in the file
- `download` (string): Address of the file, valid 1 hour

### GET /v1/archive/meetings

Meetings by range. Every meeting between two days, with its race count. Plan: Archive, Complete and Analyst. Docs: https://harnessracingapi.com/documentation/archive-meetings

Parameters:
- `from` (date, required): First day, YYYY-MM-DD
- `to` (date, required): Last day, YYYY-MM-DD
- `country` (string): One or more country codes, comma separated. One of: FR, SE, NO, FI, DK, BE, NL, DE, CH, AT, IT, ES, HU, IE, US, CA, AU, NZ
- `racecourse` (string): A racecourse id
- `page` (integer): Page number, from 1
- `cursor` (string): The next_cursor from the last answer
- `limit` (integer): Items a page, at most 50

Returns a list of:
- `id` (string): Our meeting id
- `country` (string): Country code
- `racecourse` (object): Racecourse id and name
- `date` (date): The racecourse's own day
- `races` (integer): Races on the card
- `first_off` (datetime): First race, UTC
- `status` (string): scheduled, racing, finished

### GET /v1/search

Search. Find horses, drivers, trainers and racecourses by name. Plan: Archive, Complete and Analyst. MCP tool: `search`. Docs: https://harnessracingapi.com/documentation/search

Parameters:
- `q` (string, required): Words to find, at least 3 letters
- `type` (string): horse, driver, trainer or racecourse. One of: horse, driver, trainer, racecourse
- `country` (string): One or more country codes, comma separated. One of: FR, SE, NO, FI, DK, BE, NL, DE, CH, AT, IT, ES, HU, IE, US, CA, AU, NZ
- `limit` (integer): Items a page, at most 50

Returns a list of:
- `type` (string): What it is
- `id` (string): Its id
- `name` (string): Its name
- `country` (string): Country

## Horses

Every horse, its starts and its earnings.

### GET /v1/horses

List horses. Horses by country, sex or year of birth. Plan: Archive, Complete and Analyst. Docs: https://harnessracingapi.com/documentation/horses

Parameters:
- `country` (string): One or more country codes, comma separated. One of: FR, SE, NO, FI, DK, BE, NL, DE, CH, AT, IT, ES, HU, IE, US, CA, AU, NZ
- `born` (integer): Year of birth
- `sex` (string): mare, gelding or stallion. One of: mare, gelding, stallion
- `page` (integer): Page number, from 1
- `cursor` (string): The next_cursor from the last answer
- `limit` (integer): Items a page, at most 50

Returns a list of:
- `id` (string): Our horse id
- `name` (string): Name as raced
- `country` (string): Country it races from
- `born` (integer): Year of birth
- `sex` (string): mare, gelding or stallion
- `breed` (string): trotter, standardbred or cold-blooded
- `starts` (integer): Starts held
- `wins` (integer): Wins held
- `earnings` (object): Prize money held, by currency
- `best_km` (string): Best km time held

### GET /v1/horses/{id}

One horse. A horse's profile with its record and best km time. Plan: Archive, Complete and Analyst. MCP tool: `get_horse`. Docs: https://harnessracingapi.com/documentation/horse

Parameters:
- `id` (string, required): The horse id, in the path

Returns one:
- `id` (string): Our horse id
- `name` (string): Name as raced
- `country` (string): Country it races from
- `born` (integer): Year of birth
- `sex` (string): mare, gelding or stallion
- `breed` (string): trotter, standardbred or cold-blooded
- `starts` (integer): Starts held
- `wins` (integer): Wins held
- `earnings` (object): Prize money held, by currency
- `best_km` (string): Best km time held

### GET /v1/horses/{id}/starts

A horse's starts. Every start of a horse's career, newest first, with its place, driver and km time. Plan: Archive, Complete and Analyst. Docs: https://harnessracingapi.com/documentation/horse-starts

Parameters:
- `id` (string, required): The horse id, in the path
- `page` (integer): Page number, from 1
- `cursor` (string): The next_cursor from the last answer
- `limit` (integer): Items a page, at most 50

Returns a list of:
- `race` (object): Race id, name and day
- `place` (integer): Finishing place, null when not placed
- `driver` (object): Driver id and name
- `trainer` (object): Trainer id and name
- `km_time` (string): Time per km, m:ss.t
- `odds` (number): Final odds, decimal
- `prize` (number): Prize money won
- `status` (string): finished, disqualified, scratched or broke

### GET /v1/horses/{id}/earnings

A horse's earnings. Prize money year by year, with starts and wins. Plan: Archive, Complete and Analyst. Docs: https://harnessracingapi.com/documentation/horse-earnings

Parameters:
- `id` (string, required): The horse id, in the path

Returns a list of:
- `year` (integer): Year
- `starts` (integer): Starts
- `wins` (integer): Wins
- `earnings` (object): Prize money by currency

## Drivers and trainers

Every driver and trainer, and every runner they had.

### GET /v1/drivers

List drivers. Drivers by country, with their starts and wins. Plan: Archive, Complete and Analyst. Docs: https://harnessracingapi.com/documentation/drivers

Parameters:
- `country` (string): One or more country codes, comma separated. One of: FR, SE, NO, FI, DK, BE, NL, DE, CH, AT, IT, ES, HU, IE, US, CA, AU, NZ
- `page` (integer): Page number, from 1
- `cursor` (string): The next_cursor from the last answer
- `limit` (integer): Items a page, at most 50

Returns a list of:
- `id` (string): Our id
- `name` (string): Name as published
- `country` (string): Main country
- `starts` (integer): Runners held
- `wins` (integer): Wins held
- `win_rate` (number): Wins per start, %
- `first` (date): First runner held

### GET /v1/drivers/{id}

One driver. A driver's profile and record. Plan: Archive, Complete and Analyst. MCP tool: `get_driver`. Docs: https://harnessracingapi.com/documentation/driver

Parameters:
- `id` (string, required): The driver id, in the path

Returns one:
- `id` (string): Our id
- `name` (string): Name as published
- `country` (string): Main country
- `starts` (integer): Runners held
- `wins` (integer): Wins held
- `win_rate` (number): Wins per start, %
- `first` (date): First runner held

### GET /v1/drivers/{id}/starts

A driver's drives. Every runner a driver drove, newest first. Plan: Archive, Complete and Analyst. Docs: https://harnessracingapi.com/documentation/driver-starts

Parameters:
- `id` (string, required): The driver id, in the path
- `from` (date, required): First day, YYYY-MM-DD
- `to` (date, required): Last day, YYYY-MM-DD
- `page` (integer): Page number, from 1
- `cursor` (string): The next_cursor from the last answer
- `limit` (integer): Items a page, at most 50

Returns a list of:
- `race` (object): Race id, name and day
- `place` (integer): Finishing place, null when not placed
- `number` (integer): Saddle cloth number
- `post` (integer): Starting position
- `horse` (object): Horse id and name
- `km_time` (string): Time per km, m:ss.t
- `odds` (number): Final odds, decimal
- `prize` (number): Prize money won
- `status` (string): finished, disqualified, scratched or broke

### GET /v1/trainers

List trainers. Trainers by country, with their runners and wins. Plan: Archive, Complete and Analyst. Docs: https://harnessracingapi.com/documentation/trainers

Parameters:
- `country` (string): One or more country codes, comma separated. One of: FR, SE, NO, FI, DK, BE, NL, DE, CH, AT, IT, ES, HU, IE, US, CA, AU, NZ
- `page` (integer): Page number, from 1
- `cursor` (string): The next_cursor from the last answer
- `limit` (integer): Items a page, at most 50

Returns a list of:
- `id` (string): Our id
- `name` (string): Name as published
- `country` (string): Main country
- `starts` (integer): Runners held
- `wins` (integer): Wins held
- `win_rate` (number): Wins per start, %
- `first` (date): First runner held

### GET /v1/trainers/{id}

One trainer. A trainer's profile and record. Plan: Archive, Complete and Analyst. Docs: https://harnessracingapi.com/documentation/trainer

Parameters:
- `id` (string, required): The trainer id, in the path

Returns one:
- `id` (string): Our id
- `name` (string): Name as published
- `country` (string): Main country
- `starts` (integer): Runners held
- `wins` (integer): Wins held
- `win_rate` (number): Wins per start, %
- `first` (date): First runner held

### GET /v1/trainers/{id}/starts

A trainer's runners. Every runner a trainer sent out, newest first. Plan: Archive, Complete and Analyst. Docs: https://harnessracingapi.com/documentation/trainer-starts

Parameters:
- `id` (string, required): The trainer id, in the path
- `from` (date, required): First day, YYYY-MM-DD
- `to` (date, required): Last day, YYYY-MM-DD
- `page` (integer): Page number, from 1
- `cursor` (string): The next_cursor from the last answer
- `limit` (integer): Items a page, at most 50

Returns a list of:
- `race` (object): Race id, name and day
- `place` (integer): Finishing place, null when not placed
- `number` (integer): Saddle cloth number
- `post` (integer): Starting position
- `horse` (object): Horse id and name
- `driver` (object): Driver id and name
- `km_time` (string): Time per km, m:ss.t
- `odds` (number): Final odds, decimal
- `prize` (number): Prize money won
- `status` (string): finished, disqualified, scratched or broke

## Webhooks

A signed push to your server the moment a result lands.

### GET /v1/hooks

List webhooks. Your webhooks and their state. Plan: Live, Complete and Analyst. Docs: https://harnessracingapi.com/documentation/hooks

Returns a list of:
- `id` (string): Our webhook id
- `url` (string): Your https address
- `events` (array): Events it receives
- `countries` (array): Countries it covers, empty for all
- `status` (string): active, or disabled after 50 missed deliveries running (a passing test turns it back on)
- `secret_hint` (string): Last four of the signing secret
- `created_at` (datetime): Added, UTC

### POST /v1/hooks

Add a webhook. Send results to your https address, for every country or the ones you choose. Up to 10. Each delivery is signed: X-Signature: t=<unix time>,v1=<HMAC-SHA256 of "t.body" with the secret>. Plan: Live, Complete and Analyst. Docs: https://harnessracingapi.com/documentation/hook-create

Parameters:
- `url` (string, required): Your https address
- `events` (string): Events to send, comma separated. One of: result.final, race.abandoned, odds.final
- `country` (string): One or more country codes, comma separated. One of: FR, SE, NO, FI, DK, BE, NL, DE, CH, AT, IT, ES, HU, IE, US, CA, AU, NZ

Returns one:
- `id` (string): Our webhook id
- `url` (string): Your https address
- `events` (array): Events it receives
- `countries` (array): Countries it covers, empty for all
- `status` (string): active, or disabled after 50 missed deliveries running (a passing test turns it back on)
- `secret_hint` (string): Last four of the signing secret
- `created_at` (datetime): Added, UTC
- `secret` (string): The signing secret, shown once

### DELETE /v1/hooks/{id}

Remove a webhook. Stop sending to an address. Plan: Live, Complete and Analyst. Docs: https://harnessracingapi.com/documentation/hook-delete

Parameters:
- `id` (string, required): The webhook id, in the path

Returns one:
- `id` (string): The webhook removed
- `removed` (boolean): Always true

### POST /v1/hooks/{id}/test

Send a test. Send a real recent result to your address now, signed as usual. Plan: Live, Complete and Analyst. Docs: https://harnessracingapi.com/documentation/hook-test

Parameters:
- `id` (string, required): The webhook id, in the path

Returns one:
- `delivered` (boolean): Whether your address answered 2xx
- `http` (integer): What your address answered
- `ms` (integer): How long it took

### GET /v1/hooks/{id}/deliveries

Deliveries. Each delivery to an address, with its answer and tries. Plan: Live, Complete and Analyst. Docs: https://harnessracingapi.com/documentation/hook-deliveries

Parameters:
- `id` (string, required): The webhook id, in the path
- `page` (integer): Page number, from 1
- `cursor` (string): The next_cursor from the last answer
- `limit` (integer): Items a page, at most 50

Returns a list of:
- `event` (string): Event sent
- `race` (string): Race id
- `status` (string): pending, ok, failed (after 7 tries) or cancelled
- `http` (integer): Your answer
- `tries` (integer): Tries so far
- `ms` (integer): How long the last try took
- `error` (string): What went wrong on the last try, when it did
- `at` (datetime): Queued, UTC
- `last_at` (datetime): Last try, UTC
- `next_at` (datetime): Next try while pending, UTC

## Statistics: horses

Form, km curves and profiles for one horse.

### GET /v1/stats/horses/{id}/form

Horse form. The form line, a rolling km time and a consistency score over the last starts. Plan: Analyst only. MCP tool: `horse_form`. Docs: https://harnessracingapi.com/documentation/stats-horse-form

Parameters:
- `id` (string, required): The horse id, in the path
- `starts` (integer): How many recent starts, at most 20

Returns one:
- `form` (string): Places, newest first; 0 when out of the places or not finishing
- `rolling_km` (string): Average km time over these starts
- `consistency` (number): Share of starts in the first three, %
- `trend` (string): improving, steady or declining
- `sample` (integer): Starts used
- `timed` (integer): Of those, starts with a km time

### GET /v1/stats/horses/{id}/km-curve

Km curve. Km time start by start over the career, with the fitted trend. Plan: Analyst only. Docs: https://harnessracingapi.com/documentation/stats-horse-curve

Parameters:
- `id` (string, required): The horse id, in the path

Returns one:
- `points` (array): Each start: day, distance and km time
- `trend_per_year` (number): Seconds per km gained a year, negative is faster
- `best` (string): Best km time

### GET /v1/stats/horses/{id}/distances

Distance profile. Win and place rate and km time by distance band. Plan: Analyst only. Docs: https://harnessracingapi.com/documentation/stats-horse-distances

Parameters:
- `id` (string, required): The horse id, in the path

Returns a list of:
- `band` (string): Distance band
- `starts` (integer): Starts
- `win_rate` (number): Wins per start, %
- `place_rate` (number): First three per start, %
- `avg_km` (string): Average km time

### GET /v1/stats/horses/{id}/racecourses

Racecourse profile. The same profile, racecourse by racecourse. Plan: Analyst only. Docs: https://harnessracingapi.com/documentation/stats-horse-courses

Parameters:
- `id` (string, required): The horse id, in the path

Returns a list of:
- `racecourse` (object): Racecourse id and name
- `starts` (integer): Starts
- `win_rate` (number): Wins per start, %
- `avg_km` (string): Average km time

### GET /v1/stats/horses/{id}/rest

Days between runs. How the horse runs by the days since its last start. Plan: Analyst only. Docs: https://harnessracingapi.com/documentation/stats-horse-rest

Parameters:
- `id` (string, required): The horse id, in the path

Returns a list of:
- `band` (string): Days since the last start
- `starts` (integer): Starts
- `win_rate` (number): Wins per start, %

## Statistics: people

Strike rates and form for drivers, trainers and pairs.

### GET /v1/stats/drivers/{id}

Driver statistics. Strike rate, place rate and profit at final odds, for the season and the last 14 and 30 days. Plan: Analyst only. Docs: https://harnessracingapi.com/documentation/stats-driver

Parameters:
- `id` (string, required): The driver id, in the path
- `season` (integer): A year

Returns a list of:
- `period` (string): season, 30 days or 14 days
- `drives` (integer): Drives
- `win_rate` (number): Wins per drive, %
- `place_rate` (number): First three per drive, %
- `profit` (number): Profit for 1 unit on each drive with final odds, at those odds
- `with_odds` (integer): Drives with final odds, which profit rests on

### GET /v1/stats/drivers/{id}/racecourses

Driver by racecourse. A driver's strike rate at each racecourse. Plan: Analyst only. Docs: https://harnessracingapi.com/documentation/stats-driver-courses

Parameters:
- `id` (string, required): The driver id, in the path
- `season` (integer): A year

Returns a list of:
- `racecourse` (object): Racecourse id and name
- `drives` (integer): Drives
- `win_rate` (number): Wins per drive, %

### GET /v1/stats/trainers/{id}

Trainer statistics. A trainer's strike rate, place rate and profit, for the season and the last 14 and 30 days. Plan: Analyst only. Docs: https://harnessracingapi.com/documentation/stats-trainer

Parameters:
- `id` (string, required): The trainer id, in the path
- `season` (integer): A year

Returns a list of:
- `period` (string): season, 30 days or 14 days
- `runners` (integer): Runners
- `win_rate` (number): Wins per runner, %
- `profit` (number): Profit for 1 unit each at final odds

### GET /v1/stats/pairs

Driver and trainer pairs. How a driver does for a trainer, or the best pairs in a country. Plan: Analyst only. Docs: https://harnessracingapi.com/documentation/stats-pairs

Parameters:
- `driver` (string): A driver id
- `trainer` (string): A trainer id
- `country` (string): One or more country codes, comma separated. One of: FR, SE, NO, FI, DK, BE, NL, DE, CH, AT, IT, ES, HU, IE, US, CA, AU, NZ
- `limit` (integer): Items a page, at most 50

Returns a list of:
- `driver` (object): Driver
- `trainer` (object): Trainer
- `runners` (integer): Runners together
- `win_rate` (number): Wins per runner, %

### GET /v1/stats/head-to-head

Head to head. Every race two horses met in, and who finished in front. Plan: Analyst only. Docs: https://harnessracingapi.com/documentation/stats-h2h

Parameters:
- `a` (string, required): First horse id
- `b` (string, required): Second horse id

Returns one:
- `a` (object): The first horse, id and name
- `b` (object): The second horse, id and name
- `meetings` (integer): Races both ran in
- `a_ahead` (integer): Times the first finished in front
- `b_ahead` (integer): Times the second finished in front
- `races` (array): Each race with both places

## Statistics: racecourses

Draw bias, start method, par times and records.

### GET /v1/stats/draw-bias

Draw bias. Win share by starting position at a racecourse, for a distance and a start method. Plan: Analyst only. MCP tool: `draw_bias`. Docs: https://harnessracingapi.com/documentation/stats-draw

Parameters:
- `racecourse` (string, required): A racecourse id
- `distance` (integer): Distance in metres, within 50 m
- `start` (string): autostart or standing. One of: autostart, standing
- `years` (integer): How many seasons back, at most 10

Returns a list of:
- `post` (integer): Starting position
- `starts` (integer): Starts from it
- `win_share` (number): Wins per start, %
- `place_share` (number): First three per start, %
- `wins` (integer): Wins from it

### GET /v1/stats/start-method

Start method. Autostart against standing start: win shares, breaks and km times at a racecourse. Plan: Analyst only. Docs: https://harnessracingapi.com/documentation/stats-start

Parameters:
- `racecourse` (string, required): A racecourse id
- `distance` (integer): Distance in metres, within 50 m

Returns a list of:
- `start` (string): autostart or standing
- `races` (integer): Races
- `break_rate` (number): Runners that broke stride, were disqualified or did not finish, %, over break_races; null under 50 runners
- `break_races` (integer): Races whose places cover every finisher, which the break rate rests on
- `runners` (integer): Runners it rests on
- `timed_races` (integer): Races with a winning km time
- `avg_km` (string): Average winning km time

### GET /v1/stats/racecourses/{id}/par

Par times. The par winning km time by distance and month at a racecourse. Plan: Analyst only. Docs: https://harnessracingapi.com/documentation/stats-par

Parameters:
- `id` (string, required): The racecourse id, in the path

Returns a list of:
- `distance_m` (integer): Distance
- `month` (integer): Month, 1 to 12
- `par_km` (string): Par winning km time
- `races` (integer): Races it rests on

### GET /v1/stats/racecourses/{id}/records

Racecourse records. The fastest winning km time at each distance and start, with the horse that set it. Plan: Analyst only. Docs: https://harnessracingapi.com/documentation/stats-records

Parameters:
- `id` (string, required): The racecourse id, in the path

Returns a list of:
- `distance_m` (integer): Distance
- `start` (string): autostart or standing
- `km_time` (string): Record km time
- `horse` (object): The horse
- `date` (date): When
- `race` (string): The race it was set in

### GET /v1/stats/breaks

Breaks and disqualifications. How often runners break into a gallop or are disqualified, by horse, driver or racecourse. Plan: Analyst only. Docs: https://harnessracingapi.com/documentation/stats-breaks

Parameters:
- `by` (string, required): horse, driver or racecourse. One of: horse, driver, racecourse
- `id` (string): One id, or leave out for a table
- `country` (string): One or more country codes, comma separated. One of: FR, SE, NO, FI, DK, BE, NL, DE, CH, AT, IT, ES, HU, IE, US, CA, AU, NZ
- `limit` (integer): Items a page, at most 50

Returns a list of:
- `name` (string): Who or where
- `runners` (integer): Runners
- `break_rate` (number): Broke stride, disqualified or did not finish, %
- `dq_rate` (number): Disqualified, %: null, as our results do not tell a break from a disqualification

## Statistics: races

Speed figures and a form guide for one race.

### GET /v1/stats/races/{id}/speed

Speed figures. A speed figure for every runner, set against the median winner at that racecourse, distance and start. Plan: Analyst only. MCP tool: `speed_figures`. Docs: https://harnessracingapi.com/documentation/stats-speed

Parameters:
- `id` (string, required): The race id, in the path

Returns a list of:
- `number` (integer): Saddle cloth number
- `horse` (object): Horse
- `figure` (integer): Speed figure: 100 is the median winner at that racecourse, distance and start; 10 points a second a km
- `best_before` (integer): Its best figure before this race
- `place` (integer): Finishing place, once run

### GET /v1/stats/races/{id}/form-guide

Form guide. Every declared runner with its form line, last figure, driver strike rate and draw share, in one call. Plan: Analyst only. MCP tool: `form_guide`. Docs: https://harnessracingapi.com/documentation/stats-form-guide

Parameters:
- `id` (string, required): The race id, in the path

Returns a list of:
- `number` (integer): Saddle cloth number
- `horse` (object): Horse
- `form` (string): Places, newest first
- `last_figure` (integer): Last speed figure
- `driver_win_rate` (number): Driver's wins per drive, 30 days, %
- `post_win_share` (number): Win share from this post here, %

## Statistics: markets and trends

Favourites, odds bands, hot form, leaders and trends.

### GET /v1/stats/favourites

Favourites. How often the favourite wins and what backing every favourite returned. Plan: Analyst only. Docs: https://harnessracingapi.com/documentation/stats-favourites

Parameters:
- `country` (string): One or more country codes, comma separated. One of: FR, SE, NO, FI, DK, BE, NL, DE, CH, AT, IT, ES, HU, IE, US, CA, AU, NZ
- `racecourse` (string): A racecourse id
- `season` (integer): A year

Returns one:
- `races` (integer): Races
- `fav_win_rate` (number): Favourites that won, %
- `profit` (number): Profit for 1 unit on each favourite

### GET /v1/stats/odds-bands

Odds bands. Runners grouped by final odds: how often each band wins against what the odds said. Plan: Analyst only. Docs: https://harnessracingapi.com/documentation/stats-odds-bands

Parameters:
- `country` (string): One or more country codes, comma separated. One of: FR, SE, NO, FI, DK, BE, NL, DE, CH, AT, IT, ES, HU, IE, US, CA, AU, NZ
- `season` (integer): A year

Returns a list of:
- `band` (string): Final odds band
- `runners` (integer): Runners
- `win_rate` (number): Won, %
- `implied` (number): Odds said, %

### GET /v1/stats/hot-form

Hot form. Drivers, trainers and horses winning most over the last 14 days. Plan: Analyst only. Docs: https://harnessracingapi.com/documentation/stats-hot

Parameters:
- `type` (string): driver, trainer or horse. One of: driver, trainer, horse
- `country` (string): One or more country codes, comma separated. One of: FR, SE, NO, FI, DK, BE, NL, DE, CH, AT, IT, ES, HU, IE, US, CA, AU, NZ
- `limit` (integer): Items a page, at most 50

Returns a list of:
- `name` (object): Who
- `runs` (integer): Runs in 14 days
- `wins` (integer): Wins
- `win_rate` (number): Wins per run, %

### GET /v1/stats/leaders

Leaderboards. Leaders by wins or prize money for a country and season. Plan: Analyst only. Docs: https://harnessracingapi.com/documentation/stats-leaders

Parameters:
- `type` (string, required): driver, trainer or horse. One of: driver, trainer, horse
- `by` (string): wins or prize. One of: wins, prize
- `country` (string): One or more country codes, comma separated. One of: FR, SE, NO, FI, DK, BE, NL, DE, CH, AT, IT, ES, HU, IE, US, CA, AU, NZ
- `season` (integer): A year
- `limit` (integer): Items a page, at most 50

Returns a list of:
- `rank` (integer): Place on the board
- `name` (object): Who
- `wins` (integer): Wins
- `prize` (object): Prize money by currency

### GET /v1/stats/age-sex

Age and sex. Win rates and km times by age and sex. Plan: Analyst only. Docs: https://harnessracingapi.com/documentation/stats-age-sex

Parameters:
- `country` (string): One or more country codes, comma separated. One of: FR, SE, NO, FI, DK, BE, NL, DE, CH, AT, IT, ES, HU, IE, US, CA, AU, NZ
- `season` (integer): A year

Returns a list of:
- `age` (integer): Age
- `sex` (string): mare, gelding or stallion
- `runners` (integer): Runners
- `win_rate` (number): Won, %
- `avg_km` (string): Average km time

### GET /v1/stats/trends

Trends. A measure year by year for a country: winning km time, field size, favourites or breaks. Plan: Analyst only. Docs: https://harnessracingapi.com/documentation/stats-trends

Parameters:
- `country` (string): One or more country codes, comma separated. One of: FR, SE, NO, FI, DK, BE, NL, DE, CH, AT, IT, ES, HU, IE, US, CA, AU, NZ
- `measure` (string, required): km_time, field_size, favourites or breaks. One of: km_time, field_size, favourites, breaks
- `from` (integer): First year

Returns a list of:
- `year` (integer): Year
- `value` (number): The measure
- `races` (integer): Races it rests on

## Changelog

- 11 Nov 2026: Every race carries its meeting, its racecourse's own time zone and local start time (off_local), by state in the US, Canada and Australia. Races whose source misfiles their day are held back rather than served wrong.
- 10 Nov 2026: Win prices before the off: odds now, odds history and market movers read every 5 minutes in a race's last hour, for the Swedish, Nordic and French totes.
- 10 Nov 2026: Webhooks open: result.final, odds.final and race.abandoned, signed, retried for most of a day, with a deliveries log.
- 10 Nov 2026: United States results carry every starter with post, finish, km time, final odds, driver and trainer, plus going and temperature.
- 10 Nov 2026: Head to head joins the statistics: every race two horses met in and who finished in front.
- 9 Nov 2026: Analyst statistics open: draw bias, start methods, par times, records, form, km curves, people and markets.
- 8 Nov 2026: The documentation opens.
