HORSERACINGAPI --:--:-- UTC Sign inFree key

Documentation / Reference

Nations

Free key

The five nations and what each one publishes.

GET/v1/countries
Try itRuns against the real API with your key
No key yet? The free key is made the moment you sign in, and appears here by itself.Get a free key
https://api.horseracingapi.org/v1/countries

Press Run to see the live answer here.

curl "https://api.horseracingapi.org/v1/countries" \
  -H "X-API-Key: hra_live_…"

Returns

FieldTypeWhat it holds
countrystringUSA, GB, IRE, FR or RSA.
namestringThe nation.
notestringAnything worth knowing, else null.
fromstringThe first day served: 2022-01-01.
publishesobjectfinishing_order, class and winning_time: true where the nation publishes them.

Example answer

{
  "data": [
    {
      "country": "USA",
      "name": "United States",
      "note": null,
      "from": "2022-01-01",
      "publishes": {
        "finishing_order": true,
        "class": false,
        "winning_time": true
      }
    },
    {
      "country": "GB",
      "name": "Great Britain",
      "note": null,
      "from": "2022-01-01",
      "publishes": {
        "finishing_order": true,
        "class": true,
        "winning_time": true
      }
    },
    "… 3 more"
  ],
  "meta": {
    "plan": "free",
    "window": "yesterday",
    "data_as_of": "2026-10-21T21:19:06Z",
    "count": 5
  }
}

Errors

StatusCodeWhen
400bad_requestA value is the wrong shape, or the key was sent in the address.
401unauthorizedNo key, or one we do not know.
422unknown_parameterA parameter this endpoint does not take.
429rate_limitedOver your calls a minute. Retry after the seconds given.
429quota_exceededYour allowance is used. The answer says when it comes back.
503server_errorOn our side. Try again in a minute.