GET
/v1/stats/trainer/{name}Pro
Trainer Stats
Returns career statistics for a trainer, including overall win/place rates and per-track breakdowns.
Pro only
This endpoint requires a Professional or Enterprise subscription.
Parameters
namestringrequired
Trainer name (path parameter). Case-insensitive. Use URL encoding for names with spaces (e.g.
C.%20Waller).race_codestringoptional
Default: gallopsRace type filter.
min_startsintegeroptional
Default: 5Minimum starts at a track to include in
trackStats. Range: 1-100.windowintegeroptional
Optional rolling window in days (14–365). When provided, a
recentStats object is included with stats computed only from races within the window.Code Examples
javascript
const response = await fetch(
'https://api.formfav.com/v1/stats/trainer/C.%20Waller?' +
new URLSearchParams({ race_code: 'gallops', window: '90' }),
{
headers: { 'X-API-Key': 'your_api_key_here' }
}
);
const data = await response.json();Response Fields
trainerNamestringCanonical trainer name
raceTypestringRace type filter applied
totalStartsintegerTotal career runners
totalWinsintegerTotal career wins
overallWinRatenumberCareer win rate (0-1)
overallPlaceRatenumberCareer place rate (0-1)
trackStatsarrayPer-track breakdown
trackStats[].trackstringTrack name
trackStats[].startsintegerRunners at this track
trackStats[].winsintegerWins at this track
trackStats[].winRatenumberWin rate at this track
trackStats[].placeRatenumberPlace rate at this track
isAmbiguousbooleanTrue if name could match multiple trainers
recentStatsobject | nullRecent-window stats (only when
window param provided)recentStats.windowDaysintegerWindow size in days
recentStats.totalStartsintegerStarts in window
recentStats.overallWinRatenumberWin rate in window
recentStats.overallPlaceRatenumberPlace rate in window
recentStats.trackStatsarrayPer-track breakdown in window
recentStats.conditionStatsarrayPer-condition breakdown in window
Example Response
200
Responsejson
{
"trainerName": "C. Waller",
"raceType": "gallops",
"totalStarts": 3421,
"totalWins": 752,
"overallWinRate": 0.220,
"overallPlaceRate": 0.558,
"trackStats": [
{
"track": "Randwick",
"starts": 892,
"wins": 231,
"winRate": 0.259,
"placeRate": 0.601
},
{
"track": "Rosehill",
"starts": 645,
"wins": 148,
"winRate": 0.229,
"placeRate": 0.542
}
]
}