https://api.zkrace.ggroogle.aurace=champion or race=best_timerace=donkey or race=worst_time0 Dirt1 Turf2 Synthetic2-150 No horseshoes1 With horseshoesExport all horse ancestry data. Same as /v5/csv/horse/ancestry.
| Name | Type | Required | Description |
|---|---|---|---|
| limit | int | optional | Max results |
Get horse averages with global comparison.
| Name | Type | Required | Description |
|---|---|---|---|
| horse | int | required | Horse ID |
| race | str | optional | Race type: champion or donkey |
Get horse track stats supporting both race types via query parameter.
| Name | Type | Required | Description |
|---|---|---|---|
| horse | int | required | Horse ID |
| race | str | optional | Race type: champion or donkey |
Get global surface speed statistics for champion (fastest) races.
| Name | Type | Required | Description |
|---|---|---|---|
| surface | int | optional | Surface ID filter |
| length | int | optional | Track length filter |
| equipment | int | optional | Equipment filter |
Get global surface speed statistics for donkey (slowest) races.
| Name | Type | Required | Description |
|---|---|---|---|
| surface | int | optional | Surface ID filter |
| length | int | optional | Track length filter |
| equipment | int | optional | Equipment filter |
Health check endpoint for monitoring API status. Returns system health including: - API status and uptime - Database connectivity - Environment mode (PROD/DEV) - Recent race count for data freshness Returns: JSONResponse with health status and metrics
Get individual race results for a specific horse.
| Name | Type | Required | Description |
|---|---|---|---|
| horse | int | required | Horse ID |
| surface | int | optional | Surface ID (0=dirt, 1=turf, 2=synthetic) |
| length | int | optional | Track length (2-15) |
| equipment | int | optional | Equipment (0=none, 1=equipped) |
| race | str | optional | Race type: champion or donkey |
| start | int | optional | Start timestamp (ms) |
| end | int | optional | End timestamp (ms) |
| limit | int | optional | Max results |
Get champion race track stats for a horse.
| Name | Type | Required | Description |
|---|---|---|---|
| horse | int | required | Horse ID |
Get donkey race track stats for a horse.
| Name | Type | Required | Description |
|---|---|---|---|
| horse | int | required | Horse ID |
Get detailed information for a single horse.
| Name | Type | Required | Description |
|---|---|---|---|
| horse | int | required | Horse ID |
Get individual race results for a horse as JSON with pagination. URL: /json/race/results?horse={id}&limit=20&offset=0 Args: cxn: Database connection (injected) params: Query parameters including: - horse: Horse ID (required) - surface, equipment, length: Optional filters - limit: Results per page (default 20) - offset: Result offset for pagination (default 0) place: Place filter (wins, podiums, or all) Returns: JSON object with total count, pagination info, and results array
Get per-horse per-track stats for all horses on a given surface. URL: /surface/topstats/v1?surface={id}&race={best_time|worst_time} Args: background_tasks: FastAPI background tasks for cleanup cxn: Database connection (injected) params: Query parameters including: - surface: Surface ID (required) - equipment: Equipment filter - gen: Generation filter - starts: Minimum starts filter - race: Race type - "best_time" (default) or "worst_time" Returns: FileResponse: CSV with per-horse per-track stats
Legacy alias for /csv/surface/champion/v1.
Horse detail page showing complete profile and statistics. Displays horse info, career stats, financials, reactions, track statistics for both Champion and Donkey races, lineage (parents and children), and external links.
Traditional racecourse-style leaderboard showing track records. Displays fastest times for Champion races and slowest times for Donkey races, organized by surface type with toggles for race type and equipment.
Stable page showing all horses owned by a wallet address. Displays aggregated stable statistics, tier distribution, and individual horse summaries with links to horse detail pages.
Get average speed statistics for a horse across surfaces and lengths.
| Name | Type | Required | Description |
|---|---|---|---|
| horse_id | int | required | Horse ID (in URL path) |
| surface | int | optional | Surface ID filter |
| length | int | optional | Track length filter |
| equipment | int | optional | Equipment filter |
Get lifetime summary statistics for a single horse.
| Name | Type | Required | Description |
|---|---|---|---|
| horse | int | required | Horse ID |
Get ancestry data for all horses in the database.
| Name | Type | Required | Description |
|---|---|---|---|
| limit | int | optional | Max results (default: 50000) |
Get per-track statistics for a horse in champion or donkey races.
| Name | Type | Required | Description |
|---|---|---|---|
| horse | int | required | Horse ID |
| race | str | optional | Race type: champion (default) or donkey |
| surface | int | optional | Surface ID |
| length | int | optional | Track length |
| equipment | int | optional | Equipment flag |
Get individual race results for a specific horse.
| Name | Type | Required | Description |
|---|---|---|---|
| horse | int | required | Horse ID |
| surface | int | optional | Surface ID (0=dirt, 1=turf, 2=synthetic) |
| length | int | optional | Track length (2-15) |
| equipment | int | optional | Equipment (0=none, 1=equipped) |
| race | str | optional | Race type: champion or donkey |
| start | int | optional | Start timestamp (ms) |
| end | int | optional | End timestamp (ms) |
| limit | int | optional | Max results |