horseracingapi.co.uk

One trainer

Live, Archive and Complete

A trainer's runners, wins and horses.

GEThttps://api.horseracingapi.co.uk/v1/trainers/{trainer_id}
Try itruns against the real API with your key
Get a free key
GET /v1/trainers/{trainer_id}
ExampleThe example answer appears here once the data feed is connected. Run shows a live one.
  

Parameters

NameInTypeRequiredWhat it does
trainer_idpathidyesOur id for the trainer, as other answers give it (tr_ and eight characters).

Returns

One record in data. Every answer carries meta: request_id, plan, window and data_as_of.

Each field is listed here, read from the example answer, once the data feed is connected.

Errors

CodeStatusWhen
unauthorized401No key was sent, or the key is not one of ours.
upgrade_required403Your plan does not reach this endpoint. The answer names the plans that do.
bad_request400A value is the wrong shape: a date that is not YYYY-MM-DD, a cursor that is not ours, or a key sent in the address.
unknown_parameter422A parameter this endpoint does not take. The answer lists the ones it does.
not_found404No record has that id, or it is not British or Northern Irish racing.
rate_limited429Too many calls this minute for your plan.
quota_exceeded429Your plan's calls for the month are used. The answer says when they reset.