RACE LAB DEVELOPERS

API documentation

Build with Race Lab's UK horse racing data, scoring, and analytics. Follow the steps below to authenticate and make your first request.

← API overview
01
QUICK START

Make your first API call

Race Lab uses JSON over HTTPS. Log in using your Race Lab account, copy the returned access token, and include it as a bearer token with every REST API request.

Base URL https://horseapi-aycuedgjagfkddga.uksouth-01.azurewebsites.net
02
AUTHENTICATION

Log in for an access token

Send the email address and password for your Race Lab account. Keep the returned token private and do not embed it in public client-side code.

POST/api/accounts/loginPublic

Example request

curl --request POST "https://horseapi-aycuedgjagfkddga.uksouth-01.azurewebsites.net/api/accounts/login" \
  --header "Content-Type: application/json" \
  --data '{
    "email": "you@example.com",
    "password": "your-password"
  }'

Example response

{
  "accessToken": "<access-token>",
  "account": {
    "email": "you@example.com",
    "subscriptionLevel": "Pro"
  }
}
03
ENDPOINTS

Test API access

Use this endpoint to confirm that your bearer token is valid and the associated account has an active API Access subscription.

GET/api/pro/rest-api/testAPI Access

Example request

curl --request GET \
  --header "Authorization: Bearer <access-token>" \
  "https://horseapi-aycuedgjagfkddga.uksouth-01.azurewebsites.net/api/pro/rest-api/test"

200 response

{
  "message": "The Pro REST API is available.",
  "account": "you@example.com"
}
04
DATA ENDPOINTS

Get and filter Race Lab data

Every resource supports getting one item by its id and filtering a collection by one or more exact-match fields. Responses include all current public model fields automatically, while internal partition information is removed.

Filter requests accept an optional limit from 1 to 100 (default 50). See the live field reference for the fields and types currently available on each model.

GET/api/pro/rest-api/courses/{id}API Access

Get one course by id.

GET/api/pro/rest-api/courses?name=<value>&limit=50API Access

Filter courses using any fields marked filterable in the live reference.

Example filter request

curl --get \
  --header "Authorization: Bearer <access-token>" \
  --data-urlencode "name=Ascot" \
  --data-urlencode "limit=2" \
  "https://horseapi-aycuedgjagfkddga.uksouth-01.azurewebsites.net/api/pro/rest-api/courses"

200 response

[{ "id": "example-course-id", "name": "Ascot", "raceCount": 1 }]
GET/api/pro/rest-api/horses/{id}API Access

Get one horse by id.

GET/api/pro/rest-api/horses?name=<value>&limit=50API Access

Filter horses using any fields marked filterable in the live reference.

Example filter request

curl --get \
  --header "Authorization: Bearer <access-token>" \
  --data-urlencode "name=Example Runner" \
  --data-urlencode "limit=2" \
  "https://horseapi-aycuedgjagfkddga.uksouth-01.azurewebsites.net/api/pro/rest-api/horses"

200 response

[{
    "id": "2636627",
    "form": "0-7-0-6-8-5-0-6-5-5-7-4-12-4-1-7-2-1-2-2-4-0-1-2-3-1-7-3-2-3-0-2-0-2-2-6-7-3-0-4-3-0-9-4-4-0-1-2-0-3-1-5-3-6-4-4-2-1-0-1-3-2-4-5-9-4-6-0-9-10-1-12-6-10",
    "name": "Tara Iti (GB)",
    "trainerName": "Barry Brennan",
    "trainerId": 508275,
    "ownerName": "Mr David Gibbons",
    "sex": "GELDING",
    "career": {
        "raceCount": 74,
        "winCount": 9,
        "secondCount": 11,
        "thirdCount": 8,
        "winRate": "12.16 %",
        "totalPrize": 79917.27
    },
    "courseStats": [
        {
            "courseName": "Kempton Park",
            "courseId": "27",
            "raceCount": 1,
            "winCount": 0,
            "secondCount": 0,
            "thirdCount": 0,
            "winRate": "0.00 %"
        },
        {
            "courseName": "Newcastle",
            "courseId": "35",
            "raceCount": 3,
            "winCount": 0,
            "secondCount": 0,
            "thirdCount": 0,
            "winRate": "0.00 %"
        },
        {
            "courseName": "Leicester",
            "courseId": "29",
            "raceCount": 4,
            "winCount": 1,
            "secondCount": 1,
            "thirdCount": 1,
            "winRate": "25.00 %"
        },
        {
            "courseName": "Windsor",
            "courseId": "57",
            "raceCount": 1,
            "winCount": 0,
            "secondCount": 0,
            "thirdCount": 0,
            "winRate": "0.00 %"
        },
        {
            "courseName": "Newton Abbot",
            "courseId": "37",
            "raceCount": 1,
            "winCount": 0,
            "secondCount": 0,
            "thirdCount": 0,
            "winRate": "0.00 %"
        },
        {
            "courseName": "Brighton",
            "courseId": "6",
            "raceCount": 1,
            "winCount": 0,
            "secondCount": 0,
            "thirdCount": 0,
            "winRate": "0.00 %"
        },
        {
            "courseName": "Fontwell Park",
            "courseId": "19",
            "raceCount": 10,
            "winCount": 2,
            "secondCount": 1,
            "thirdCount": 0,
            "winRate": "20.00 %"
        },
        {
            "courseName": "Plumpton",
            "courseId": "40",
            "raceCount": 17,
            "winCount": 3,
            "secondCount": 4,
            "thirdCount": 3,
            "winRate": "17.65 %"
        },
        {
            "courseName": "Lingfield Park",
            "courseId": "30",
            "raceCount": 9,
            "winCount": 0,
            "secondCount": 0,
            "thirdCount": 0,
            "winRate": "0.00 %"
        },
        {
            "courseName": "Market Rasen",
            "courseId": "33",
            "raceCount": 3,
            "winCount": 0,
            "secondCount": 0,
            "thirdCount": 0,
            "winRate": "0.00 %"
        },
        {
            "courseName": "Fakenham",
            "courseId": "17",
            "raceCount": 4,
            "winCount": 1,
            "secondCount": 0,
            "thirdCount": 3,
            "winRate": "25.00 %"
        },
        {
            "courseName": "Huntingdon",
            "courseId": "25",
            "raceCount": 5,
            "winCount": 1,
            "secondCount": 1,
            "thirdCount": 1,
            "winRate": "20.00 %"
        },
        {
            "courseName": "Sedgefield",
            "courseId": "46",
            "raceCount": 1,
            "winCount": 0,
            "secondCount": 1,
            "thirdCount": 0,
            "winRate": "0.00 %"
        },
        {
            "courseName": "Nottingham",
            "courseId": "38",
            "raceCount": 1,
            "winCount": 0,
            "secondCount": 0,
            "thirdCount": 0,
            "winRate": "0.00 %"
        },
        {
            "courseName": "Warwick",
            "courseId": "54",
            "raceCount": 1,
            "winCount": 0,
            "secondCount": 1,
            "thirdCount": 0,
            "winRate": "0.00 %"
        },
        {
            "courseName": "Uttoxeter",
            "courseId": "53",
            "raceCount": 4,
            "winCount": 1,
            "secondCount": 1,
            "thirdCount": 0,
            "winRate": "25.00 %"
        },
        {
            "courseName": "Bath",
            "courseId": "4",
            "raceCount": 3,
            "winCount": 0,
            "secondCount": 1,
            "thirdCount": 0,
            "winRate": "0.00 %"
        },
        {
            "courseName": "Hexham",
            "courseId": "24",
            "raceCount": 1,
            "winCount": 0,
            "secondCount": 0,
            "thirdCount": 0,
            "winRate": "0.00 %"
        },
        {
            "courseName": "Beverley",
            "courseId": "5",
            "raceCount": 1,
            "winCount": 0,
            "secondCount": 0,
            "thirdCount": 0,
            "winRate": "0.00 %"
        },
        {
            "courseName": "Catterick Bridge",
            "courseId": "9",
            "raceCount": 1,
            "winCount": 0,
            "secondCount": 0,
            "thirdCount": 0,
            "winRate": "0.00 %"
        },
        {
            "courseName": "Hereford",
            "courseId": "23",
            "raceCount": 1,
            "winCount": 0,
            "secondCount": 0,
            "thirdCount": 0,
            "winRate": "0.00 %"
        },
        {
            "courseName": "Worcester",
            "courseId": "59",
            "raceCount": 1,
            "winCount": 0,
            "secondCount": 0,
            "thirdCount": 0,
            "winRate": "0.00 %"
        }
    ]
}]
GET/api/pro/rest-api/jockeys/{id}API Access

Get one jockey by id.

GET/api/pro/rest-api/jockeys?name=<value>&limit=50API Access

Filter jockeys using any fields marked filterable in the live reference.

Example filter request

curl --get \
  --header "Authorization: Bearer <access-token>" \
  --data-urlencode "name=Example Jockey" \
  --data-urlencode "limit=2" \
  "https://horseapi-aycuedgjagfkddga.uksouth-01.azurewebsites.net/api/pro/rest-api/jockeys"

200 response

[{
    "id": "949265",
    "name": "James Best",
    "raceCount": 3700,
    "winCount": 226,
    "winRate": "6.11 %"
}]
GET/api/pro/rest-api/races/{id}API Access

Get one race result by id.

GET/api/pro/rest-api/races?raceDate=<value>&limit=50API Access

Filter race results using any fields marked filterable in the live reference.

Example filter request

curl --get \
  --header "Authorization: Bearer <access-token>" \
  --data-urlencode "raceDate=2026-10-05T14:30:00Z" \
  --data-urlencode "limit=2" \
  "https://horseapi-aycuedgjagfkddga.uksouth-01.azurewebsites.net/api/pro/rest-api/races"

200 response

[{
    "id": "2024_48473_0",
    "fixtureId": "2024_1553",
    "raceId": "48473",
    "raceDate": "2024-01-01T14:00:00",
    "courseId": "35",
    "courseName": "Newcastle",
    "raceType": "FLAT",
    "raceName": "THE BETUK. HOME OF THE ACCA-FENWA HANDICAP STAKES (CLASS 2)",
    "raceDistance": "2m 56y",
    "raceClass": "2",
    "raceCondition": "Standard",
    "racePrize": 44266.5,
    "raceOverview": null,
    "StartPriceAvailable": true,
    "Insight": null,
    "DrawStatistics": {
        "StallWins": {
            "1": 43,
            "2": 46,
            "3": 40,
            "4": 35,
            "5": 40,
            "6": 57,
            "7": 40,
            "8": 62,
            "9": 49,
            "10": 57,
            "11": 50,
            "12": 52
        },
        "MatchingRaceCount": 615,
        "NearWins": 1728,
        "FarWins": 2303,
        "Verdict": "Far draws have produced more winners per stall in matching races at this track."
    },
    "horseResults": [
        {
            "horseId": "2642076",
            "position": 1,
            "time": "223.8",
            "odds": "17/2",
            "startPrice": 10.23279,
            "jockeyId": "1011325",
            "jockeyName": "Kieran O'Neill",
            "trainerId": "537257",
            "trainerName": "Ian Williams",
            "ownerName": "Ian Williams Racing Club",
            "sex": "GELDING",
            "weight": "117",
            "prizeMoney": 24300,
            "HRO": 88,
            "racehorseName": "Zealandia (FR)",
            "clothNumber": 9,
            "drawnStall": 3,
            "DNFReason": null,
            "FormFigures": "0-11-8-4-2-1-5-3-5",
            "Sex": "",
            "Age": 0,
            "HorseScore": 106.6256,
            "JockeyScore": 94.31028,
            "TrainerScore": 131.4451,
            "Flags": []
        },
        {
            "horseId": "2585748",
            "position": 2,
            "time": "223.86",
            "odds": "7/1",
            "startPrice": 9.213318,
            "jockeyId": "1059130",
            "jockeyName": "Clifford Lee",
            "trainerId": "537257",
            "trainerName": "Ian Williams",
            "ownerName": "Tracey Bell & Caroline Lyons",
            "sex": "GELDING",
            "weight": "133",
            "prizeMoney": 11407.5,
            "HRO": 104,
            "racehorseName": "Enemy (GB)",
            "clothNumber": 2,
            "drawnStall": 5,
            "DNFReason": null,
            "FormFigures": "1-2-4-2-4-1-3-5-8-14-5-5-11-16-3-9-6-2",
            "Sex": "",
            "Age": 0,
            "HorseScore": 106.9336,
            "JockeyScore": 97.36415,
            "TrainerScore": 131.4451,
            "Flags": []
        },
        {
            "horseId": "2741424",
            "position": 3,
            "time": "224.84",
            "odds": "11/4",
            "startPrice": 4.235445,
            "jockeyId": "1121058",
            "jockeyName": "Tyler Heard",
            "trainerId": "504348",
            "trainerName": "Michael Bell",
            "ownerName": "Mr A Cope, Mr B Roberts and Mr J Biggane",
            "sex": "GELDING",
            "weight": "111",
            "prizeMoney": 5706,
            "HRO": 90,
            "racehorseName": "Duke of Oxford (GB)",
            "clothNumber": 10,
            "drawnStall": 10,
            "DNFReason": null,
            "FormFigures": "1-1-4-0-3-9-7-1-1",
            "Sex": "",
            "Age": 0,
            "HorseScore": 109.3969,
            "JockeyScore": 98.9135,
            "TrainerScore": 105.7545,
            "Flags": []
        },
        {
            "horseId": "2574059",
            "position": 4,
            "time": "224.87",
            "odds": "10/1",
            "startPrice": 11.979498,
            "jockeyId": "1103286",
            "jockeyName": "Marco Ghiani",
            "trainerId": "549484",
            "trainerName": "Michael Appleby",
            "ownerName": "Mr Gary Allsopp",
            "sex": "GELDING",
            "weight": "138",
            "prizeMoney": 2853,
            "HRO": 109,
            "racehorseName": "Roberto Escobarr (IRE)",
            "clothNumber": 1,
            "drawnStall": 7,
            "DNFReason": null,
            "FormFigures": "3-1-6-5-1-4-0-2-9-2-3-1-4",
            "Sex": "",
            "Age": 0,
            "HorseScore": 109.0943,
            "JockeyScore": 102.9242,
            "TrainerScore": 128.0918,
            "Flags": []
        },
        {
            "horseId": "2622837",
            "position": 5,
            "time": "225.13",
            "odds": "17/2",
            "startPrice": 9.169331,
            "jockeyId": "529442",
            "jockeyName": "Joe Fanning",
            "trainerId": "960298",
            "trainerName": "Charlie Johnston",
            "ownerName": "Sir Ian & Ms Catriona Good",
            "sex": "GELDING",
            "weight": "118",
            "prizeMoney": 0,
            "HRO": 89,
            "racehorseName": "Evaluation (GB)",
            "clothNumber": 8,
            "drawnStall": 2,
            "DNFReason": null,
            "FormFigures": "5-5-5-3-4-4-4-1-2-2-1-1-1-1-4-2-12-8-4-5",
            "Sex": "",
            "Age": 0,
            "HorseScore": 110.1975,
            "JockeyScore": 101.03,
            "TrainerScore": 128.3133,
            "Flags": []
        },
        {
            "horseId": "2732173",
            "position": 6,
            "time": "225.31",
            "odds": "11/2",
            "startPrice": 7.6625977,
            "jockeyId": "1058437",
            "jockeyName": "Callum Shepherd",
            "trainerId": "503153",
            "trainerName": "Brian Ellison",
            "ownerName": "Mr P. Boyle",
            "sex": "GELDING",
            "weight": "121",
            "prizeMoney": 0,
            "HRO": 92,
            "racehorseName": "Onesmoothoperator (USA)",
            "clothNumber": 4,
            "drawnStall": 12,
            "DNFReason": null,
            "FormFigures": "1-3-0-9-2-2-2-1-2-2-2-3-6-14-3-7-2-5-12-3-4-9-7-2-7-5-1-3",
            "Sex": "",
            "Age": 0,
            "HorseScore": 111.141,
            "JockeyScore": 106.0758,
            "TrainerScore": 133.917,
            "Flags": []
        },
        {
            "horseId": "2628091",
            "position": 7,
            "time": "225.59",
            "odds": "7/1",
            "startPrice": 9.036299,
            "jockeyId": "1101072",
            "jockeyName": "Dylan Hogan",
            "trainerId": "1108335",
            "trainerName": "Jack Jones",
            "ownerName": "Mrs Mary-Ann Middleton",
            "sex": "GELDING",
            "weight": "120",
            "prizeMoney": 0,
            "HRO": 91,
            "racehorseName": "Pleasant Man (GB)",
            "clothNumber": 7,
            "drawnStall": 6,
            "DNFReason": null,
            "FormFigures": "1-5-3-5-1-4-8-7-1-6-3-0-2-2-3-17-3-4-3",
            "Sex": "",
            "Age": 0,
            "HorseScore": 107.8391,
            "JockeyScore": 110.7622,
            "TrainerScore": 133.611,
            "Flags": []
        },
        {
            "horseId": "2690327",
            "position": 8,
            "time": "225.7",
            "odds": "18/1",
            "startPrice": 22.820541,
            "jockeyId": "1132245",
            "jockeyName": "Laura Pearson",
            "trainerId": "1101978",
            "trainerName": "Kevin Philippart de Foy",
            "ownerName": "Constellation, Murfitt & Partners",
            "sex": "GELDING",
            "weight": null,
            "prizeMoney": 0,
            "HRO": 85,
            "racehorseName": "Enthrallment (IRE)",
            "clothNumber": 12,
            "drawnStall": 1,
            "DNFReason": null,
            "FormFigures": "0-6-2-7-3",
            "Sex": "",
            "Age": 0,
            "HorseScore": 104.85,
            "JockeyScore": 104.6643,
            "TrainerScore": 130.3773,
            "Flags": []
        },
        {
            "horseId": "2638452",
            "position": 9,
            "time": "226.01",
            "odds": "50/1",
            "startPrice": 67.20645,
            "jockeyId": "1134938",
            "jockeyName": "Mark Winn",
            "trainerId": "752359",
            "trainerName": "David O'Meara",
            "ownerName": "Richard D.A. Hames & Mark Russell",
            "sex": "GELDING",
            "weight": "117",
            "prizeMoney": 0,
            "HRO": 91,
            "racehorseName": "Barenboim (GB)",
            "clothNumber": 5,
            "drawnStall": 8,
            "DNFReason": null,
            "FormFigures": "8-4-2-0-11-2-4-2-4-3-4-9-3-7-1-2-1-6-1-1-2-1-3-7-9-5-9-9",
            "Sex": "",
            "Age": 0,
            "HorseScore": 103.4669,
            "JockeyScore": 105.3127,
            "TrainerScore": 130.2219,
            "Flags": []
        },
        {
            "horseId": "2354642",
            "position": 10,
            "time": "226.1",
            "odds": "12/1",
            "startPrice": 18.353596,
            "jockeyId": "1058376",
            "jockeyName": "Hollie Doyle",
            "trainerId": "513654",
            "trainerName": "Alan King",
            "ownerName": "The Maple Street Partnership",
            "sex": "GELDING",
            "weight": "125",
            "prizeMoney": 0,
            "HRO": 96,
            "racehorseName": "Rainbow Dreamer (GB)",
            "clothNumber": 3,
            "drawnStall": 11,
            "DNFReason": null,
            "FormFigures": "8-3-2-4-2-2-2-3-1-1-2-12-3-1-4-7-6-1-8-21-2-1-1-1-1-4-5-3-2-1-4-5-4-15-2-1-7-5-9-5-1-2-2-7-1-6-6-7-6",
            "Sex": "",
            "Age": 0,
            "HorseScore": 110.7289,
            "JockeyScore": 104.675,
            "TrainerScore": 124.7101,
            "Flags": []
        },
        {
            "horseId": "2286643",
            "position": 11,
            "time": "226.45",
            "odds": "40/1",
            "startPrice": 56.4726,
            "jockeyId": "1050856",
            "jockeyName": "Cam Hardie",
            "trainerId": "503639",
            "trainerName": "Jim Goldie",
            "ownerName": "Mr J. Fyffe & Mr J. S. Goldie",
            "sex": "GELDING",
            "weight": "114",
            "prizeMoney": 0,
            "HRO": 85,
            "racehorseName": "Sir Chauvelin (GB)",
            "clothNumber": 11,
            "drawnStall": 4,
            "DNFReason": null,
            "FormFigures": "1-3-8-1-1-3-4-6-20-12-6-2-7-1-6-2-7-20-23-1-1-4-8-14-4-2-3-10-7-1-6-6-6-7-18-3-4-1-4-3-11-20-10-8-7-1-1-3-3-1-3-6-6-19-3-7-1-2-7-12-11-8-3-10-8-5-10-9-1-4-11-1-9-6",
            "Sex": "",
            "Age": 0,
            "HorseScore": 104.7931,
            "JockeyScore": 96.44916,
            "TrainerScore": 130.7252,
            "Flags": []
        },
        {
            "horseId": "2626441",
            "position": null,
            "time": "223.8",
            "odds": "0/0",
            "startPrice": 0,
            "jockeyId": "1174344",
            "jockeyName": "Billy Loughnane",
            "trainerId": "555358",
            "trainerName": "Jamie Osborne",
            "ownerName": "Gallagher Bloodstock Limited",
            "sex": "GELDING",
            "weight": "120",
            "prizeMoney": 0,
            "HRO": 0,
            "racehorseName": "Duty of Care (GB)",
            "clothNumber": 6,
            "drawnStall": 9,
            "DNFReason": null,
            "FormFigures": "3-1-6-0-5-16-5-6-1-1-2-14-11",
            "Sex": "",
            "Age": 0,
            "HorseScore": 103.0675,
            "JockeyScore": 100.1275,
            "TrainerScore": 124.8701,
            "Flags": []
        }
    ]
}]
GET/api/pro/rest-api/racecards/{id}API Access

Get one racecard by id.

GET/api/pro/rest-api/racecards?startTime=<value>&limit=50API Access

Filter racecards using any fields marked filterable in the live reference.

Example filter request

curl --get \
  --header "Authorization: Bearer <access-token>" \
  --data-urlencode "startTime=2026-10-05T14:30:00Z" \
  --data-urlencode "limit=2" \
  "https://horseapi-aycuedgjagfkddga.uksouth-01.azurewebsites.net/api/pro/rest-api/racecards"

200 response

[{
    "id": "2026_57251",
    "StartTime": "2026-09-28T15:50:00+01:00",
    "FixtureId": "564",
    "CourseId": "6",
    "CourseName": "Brighton",
    "Name": "THE MATCHBOOK MONTHLY BET-BUILDER REBATE HANDICAP STAKES (CLASS 5)",
    "Type": "FLAT",
    "Distance": "1m 3f 198y",
    "RaceClass": "5",
    "Going": null,
    "Prize": 8000,
    "raceOverview": null,
    "Runners": [
        {
            "HorseId": "2920593",
            "HorseName": "Crackergee (GB)",
            "ClothNumber": 1,
            "Draw": 5,
            "JockeyId": "897079",
            "JockeyName": "David Probert",
            "TrainerId": "562209",
            "TrainerName": "Hughie Morrison",
            "OwnerId": "532707",
            "OwnerName": "The Fairy Story Partnership",
            "Weight": "10st 2lbs",
            "OfficialRating": 69,
            "Odds": "11.00",
            "FormFigures": "   5-44155",
            "Sex": "GELDING",
            "Age": 4
        },
        {
            "HorseId": "2747213",
            "HorseName": "Gallant Lion (GB)",
            "ClothNumber": 2,
            "Draw": 2,
            "JockeyId": "1085379",
            "JockeyName": "Jason Watson",
            "TrainerId": "537257",
            "TrainerName": "Ian Williams",
            "OwnerId": "1207723",
            "OwnerName": "GL Racing",
            "Weight": "10st 1lbs",
            "OfficialRating": 68,
            "Odds": "7.20",
            "FormFigures": "   00-0140",
            "Sex": "GELDING",
            "Age": 6
        },
        {
            "HorseId": "2929679",
            "HorseName": "Love You Back (IRE)",
            "ClothNumber": 3,
            "Draw": 6,
            "JockeyId": "1207453",
            "JockeyName": "Warren Fentiman",
            "TrainerId": "1219651",
            "TrainerName": "Gary & Josh Moore",
            "OwnerId": "1214259",
            "OwnerName": "Zoe & Scott Chambers",
            "Weight": "10st 0lbs",
            "OfficialRating": 67,
            "Odds": "3.10",
            "FormFigures": "   342321-",
            "Sex": "GELDING",
            "Age": 4
        },
        {
            "HorseId": "2743394",
            "HorseName": "Bohemian Breeze (IRE)",
            "ClothNumber": 4,
            "Draw": 4,
            "JockeyId": "774825",
            "JockeyName": "Tom Queally",
            "TrainerId": "1219651",
            "TrainerName": "Gary & Josh Moore",
            "OwnerId": "1229385",
            "OwnerName": "Moore Racing Syndicate",
            "Weight": "9st 11lbs",
            "OfficialRating": 64,
            "Odds": "13.50",
            "FormFigures": "    401143",
            "Sex": "GELDING",
            "Age": 6
        },
        {
            "HorseId": "2838559",
            "HorseName": "Skimming Along (IRE)",
            "ClothNumber": 5,
            "Draw": 3,
            "JockeyId": "1154560",
            "JockeyName": "Alec Voikhansky",
            "TrainerId": "825438",
            "TrainerName": "Daniel Steele",
            "OwnerId": "1099490",
            "OwnerName": "Steele Going Strong Partnership",
            "Weight": "9st 6lbs",
            "OfficialRating": 59,
            "Odds": "34.00",
            "FormFigures": "   44102-5",
            "Sex": "GELDING",
            "Age": 5
        },
        {
            "HorseId": "2989391",
            "HorseName": "Miss Guinevere (IRE)",
            "ClothNumber": 6,
            "Draw": 7,
            "JockeyId": "1038142",
            "JockeyName": "Paddy Bradley",
            "TrainerId": "920549",
            "TrainerName": "Charlie Fellowes",
            "OwnerId": "1053603",
            "OwnerName": "Dahab Racing",
            "Weight": "9st 3lbs",
            "OfficialRating": 63,
            "Odds": "4.60",
            "FormFigures": "     05433",
            "Sex": "FILLY",
            "Age": 3
        },
        {
            "HorseId": "3004056",
            "HorseName": "Darkest Red (GB)",
            "ClothNumber": 7,
            "Draw": 1,
            "JockeyId": "1232640",
            "JockeyName": "Donagh Murphy",
            "TrainerId": "600764",
            "TrainerName": "Jim Boyle",
            "OwnerId": "753267",
            "OwnerName": "Inside Track Racing Club",
            "Weight": "9st 2lbs",
            "OfficialRating": 62,
            "Odds": "4.80",
            "FormFigures": "    222442",
            "Sex": "GELDING",
            "Age": 3
        }
    ]
}]
GET/api/pro/rest-api/trainers/{id}API Access

Get one trainer by id.

GET/api/pro/rest-api/trainers?name=<value>&limit=50API Access

Filter trainers using any fields marked filterable in the live reference.

Example filter request

curl --get \
  --header "Authorization: Bearer <access-token>" \
  --data-urlencode "name=Example Trainer" \
  --data-urlencode "limit=2" \
  "https://horseapi-aycuedgjagfkddga.uksouth-01.azurewebsites.net/api/pro/rest-api/trainers"

200 response

[{
    "id": "727266",
    "name": "Anthony Honeyball",
    "raceCount": 2302,
    "winCount": 389,
    "winRate": "16.90 %",
    "horseCount": 246
}]
05
RESPONSES

Rate limits and errors

Each client IP address can make 5 requests in any rolling one-second window across all API endpoints, including login and site requests. Clients sharing a public IP share this limit. Pace requests at least 200 ms apart.

If you receive 429 Too Many Requests, wait at least the number of seconds in the Retry-After response header before retrying. Use bounded retries with backoff and jitter.

HTTP/1.1 429 Too Many Requests
Retry-After: 1
Content-Type: application/json

{"error":"rate_limit_exceeded","message":"The API allows 5 requests per second per client IP address across all endpoints."}
200

Success

The request completed and the response body contains JSON data.

401

Authentication required

The bearer token is missing, invalid, or no longer active.

403

API Access required

The account is valid but does not have an API Access subscription.

429

Too many requests

The client IP exceeded the shared rate limit. Wait for Retry-After before retrying.

503

Temporarily unavailable

API protection is unavailable. Wait for Retry-After before retrying.

API ACCESS

Ready to build with Race Lab?

Documentation is open to everyone. API data calls require a Race Lab account with an API Access subscription.