harnessracingapi
DocumentationStatistics: horses

Horse form

The form line, a rolling km time and a consistency score over the last starts.

GEThttps://api.harnessracingapi.com/v1/stats/horses/{id}/form

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}/form

Parameters

idstringrequired
The horse id, in the path
startsinteger
How many recent starts, at most 20

Returns

One object in data with these fields.

formstring
Places, newest first; 0 when out of the places or not finishing
rolling_kmstring
Average km time over these starts
consistencynumber
Share of starts in the first three, %
trendstring
improving, steady or declining
sampleinteger
Starts used
timedinteger
Of those, starts with a km time

Example answer

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

{
    "data": {
        "horse": {
            "id": "hr_hs_3ehemezb",
            "name": "Hamilton Du Ham"
        },
        "form": "1-9-4-0-0-1-6-3-9-4",
        "rolling_km": "1:12.0",
        "consistency": 30,
        "trend": "declining",
        "sample": 10,
        "timed": 8
    },
    "meta": {
        "about": "form is newest first: the place, 0 out of the places or not finishing; rolling_km over the timed starts; trend compares the newer half with the older (0.3 s a km either way)"
    }
}

Errors