harnessracingapi
DocumentationStatistics: markets and trends

Trends

Analyst

A measure year by year for a country: winning km time, field size, favourites or breaks.

GEThttps://api.harnessracingapi.com/v1/stats/trends

Try it

Runs against the real API with your key
No key yet? Get a free key and it is filled in here for you.
https://api.harnessracingapi.com/v1/stats/trends

Parameters

countrystring
One or more country codes, comma separated
FRSENOFIDKBENLDECHATITESHUIEUSCAAUNZ
measurestringrequired
km_time, field_size, favourites or breaks
km_timefield_sizefavouritesbreaks
frominteger
First year

Returns

A list in data, each item with these fields, and paging in meta.

yearinteger
Year
valuenumber
The measure
racesinteger
Races it rests on

Example answer

A real answer from the API, read in the last six hours, cut to two items.

{
    "data": [
        {
            "year": 2000,
            "value": 79.24,
            "races": 8144
        },
        {
            "year": 2001,
            "value": 79.08,
            "races": 8006
        }
    ],
    "meta": {
        "count": 2,
        "next_cursor": null,
        "page": 1,
        "per_page": 50,
        "total": 27,
        "total_pages": 1,
        "next_page": null,
        "prev_page": null,
        "built_at": "2026-11-28T04:17:07Z",
        "measure": "km_time",
        "about": "the average winning km time, seconds"
    }
}

Errors