Analytics

H2H Finish Probability

Head-to-head finish probability between two drivers. Returns P(driverA finishes ahead of driverB) computed from the CTMC position distributions stored in rh_lap_analytics. Requires the Custom plan.

get/v1/analytics/h2h

Request

  • Base URL: https://api.racehooks.io
  • URL: https://api.racehooks.io/v1/analytics/h2h
  • Auth: API key in header Authorization

Query parameters

driverAstring required

Car number or driver slug for driver A (e.g. '1' or 'verstappen-max')

driverBstring required

Car number or driver slug for driver B (e.g. '33' or 'perez-sergio')

Response

Default Response

pABeatsBnumber
pBBeatsAnumber
pTienumber
lapinteger
raceIdstring nullable
updatedAtstring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.