GET
/v1/form/venuesVenues
Returns a list of all known venues/tracks, optionally filtered by race type and country. Useful for building track selectors or validating track slugs.
Parameters
raceTypestringoptional
Filter by race type:
gallops, harness, or greyhounds. Returns all types if omitted.countrystringoptional
Two-letter country code (e.g.
au, nz, hk, gb, us). Returns all countries if omitted.Code Examples
javascript
const response = await fetch(
'https://api.formfav.com/v1/form/venues?' +
new URLSearchParams({
raceType: 'gallops',
country: 'au'
}),
{
headers: { 'X-API-Key': 'your_api_key_here' }
}
);
const data = await response.json();Response Fields
countintegerTotal number of matching venues
venuesarrayList of venues
venues[].namestringVenue display name
venues[].slugstringURL-safe slug for use in API calls
venues[].raceTypestringRace type at this venue
venues[].countrystringTwo-letter country code
Example Response
200
Responsejson
{
"count": 3,
"venues": [
{ "name": "Flemington", "slug": "flemington", "raceType": "gallops", "country": "au" },
{ "name": "Randwick", "slug": "randwick", "raceType": "gallops", "country": "au" },
{ "name": "Eagle Farm", "slug": "eagle-farm", "raceType": "gallops", "country": "au" }
]
}