harnessracingapi
DocumentationStatistics: horses

Km curve

Analyst

Km time start by start over the career, with the fitted trend.

GEThttps://api.harnessracingapi.com/v1/stats/horses/{id}/km-curve

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/horses/{id}/km-curve

Parameters

idstringrequired
The horse id, in the path

Returns

One object in data with these fields.

pointsarray
Each start: day, distance and km time
trend_per_yearnumber
Seconds per km gained a year, negative is faster
beststring
Best km time

Example answer

A real answer from the API, read in the last six hours.

{
    "data": {
        "horse": {
            "id": "hr_hs_et5sjzq4",
            "name": "Kiannick Of Nouic"
        },
        "points": [
            {
                "date": "2023-07-02",
                "distance_m": 2375,
                "km": "1:21.7"
            },
            {
                "date": "2023-08-05",
                "distance_m": 2150,
                "km": "1:19.0"
            },
            {
                "date": "2024-02-11",
                "distance_m": 2550,
                "km": "1:15.8"
            }
        ],
        "trend_per_year": -1.1,
        "best": "1:13.5"
    },
    "meta": {
        "built_at": "2026-11-28T04:17:07Z",
        "about": "trend_per_year is the fitted change in km time a year over the career (3 timed starts or more), negative is faster; distances differ, so read it with the points"
    }
}

Errors