Racing

Queue a batch of horses for paced form collection

Cost: free to submit. 3 credits per horse when it is delivered.

Hand us a list of horses and we collect their Racing Australia form at a pace RA tolerates, then hold it for you. This is the supported way to backfill a model: looping /v1/racing/horses/form yourself will trip RA's bot protection long before a few thousand horses, and the 503s that follow are shared with every other customer.

Names resolve the same way they do on the form endpoint — against acceptances (about three days ahead) and every archived result runner — and so do the pe: horse_refs published on results, the live board, the archives and /v1/racing/horses/runs, which is the spelling to submit if you are working from those. A horse we have never seen comes straight back in not_found rather than being queued, and costs nothing. ambiguous is always empty: a name resolves to one horse (several Racing Australia codes under one name are the same horse's codes from different days, not several horses).

Horses we already hold a fresh copy of skip the queue and are ready at once — matched on the HORSE, so a page collected under any of its codes counts and no read of Racing Australia is spent re-fetching it. A horse already queued for you is not queued twice.

Poll GET /v1/racing/horses/backfill/{job_id} for progress and collect from /results as rows complete — you do not have to wait for the whole batch.

post/v1/racing/horses/backfill

Request

  • Base URL: https://api.puntersedge.online
  • URL: https://api.puntersedge.online/v1/racing/horses/backfill
  • Auth: API key in header X-API-Key

Headers

X-API-Keystring
X-RapidAPI-Proxy-Secretstring

Request body

horsesstring[] required

Horse names, pe: horse_refs or ra: entry codes, in any mix. Max 500 per call. A name and its horse_ref resolve identically, against acceptances and archived results; an ra: code pins one meeting's entry.

labelstring nullable

Your own tag for this batch, echoed back on status.

Response

Successful Response

job_idstring required
labelstring nullable
queuedinteger required

Horses accepted and waiting on the worker.

already_storedinteger required

Horses we already hold a fresh copy of — matched on the HORSE, so a page collected under any of its Racing Australia codes counts. Collectable immediately, still billed at 3 credits each.

duplicatesinteger required

Already queued for you; not queued twice.

not_foundstring[]

Names we have never seen on our own feeds.

ambiguousobject[]

Names matching several horses. Re-submit with the runner_ref you meant.

estimated_readystring nullable

UTC estimate for the last horse, from the worker's measured pace.

Changes

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