Get Horses

GET/api/horse-racing/horses

The full catalog of horses tracked by the API, with pagination — a reference list independent of any specific race.

Query Params

pageinteger

Page number (default is 1).

perPageinteger

Number of results per page (default is 10).

Try Get Horses with live data

Run this request in the Sportbex trial panel and see the real response.

Try it(opens in a new tab)
curl -X GET 'http://xx.xx.xx.xx/api/horse-racing/horses?page=1&perPage=10'
Example response

The real API responds in this shape — but the values below are a fixed example and may be stale. This is here to show what the output looks like, not to reflect current data.

{
  "page": 1,
  "perPage": 10,
  "total": 128,
  "data": [
    {
      "id": "h-3001",
      "name": "Horse One",
      "country": "GBR",
      "age": 5
    },
    {
      "id": "h-3002",
      "name": "Horse Two",
      "country": "IRE",
      "age": 4
    }
  ]
}