DocumentationStatistics: people
Head to head
Analyst
Every race two horses met in, and who finished in front.
Try it
Runs against the real API with your keyNo key yet? Get a free key and it is filled in here for you.
https://api.harnessracingapi.com/v1/stats/head-to-headParameters
astringrequiredFirst horse id
bstringrequiredSecond horse id
Returns
One object in data with these fields.
aobjectThe first horse, id and name
bobjectThe second horse, id and name
meetingsintegerRaces both ran in
a_aheadintegerTimes the first finished in front
b_aheadintegerTimes the second finished in front
racesarrayEach race with both places
Example answer
A real answer from the API, read in the last six hours.
{
"data": {
"a": {
"id": "hr_hs_3ehemezb",
"name": "Hamilton Du Ham"
},
"b": {
"id": "hr_hs_g7a90x4r",
"name": "Jizou D'Etang"
},
"meetings": 1,
"a_ahead": 1,
"b_ahead": 0,
"races": [
{
"id": "hr_rc_m4hyrrnr",
"date": "2026-11-28",
"a": 1,
"b": 2
}
]
},
"meta": {
"about": "a place beats no place (did not finish, disqualified or out of the places the source gives); races newest first, at most 500"
}
}