Greyhound tracks
Every track covered in the UK, Ireland and Australia, with its id, country and race distances.
The track id (for example romford or shelbourne-park) is what every race carries and what the track parameter takes. Read the list once a day; it rarely changes.
| Endpoint | For | Plan |
|---|---|---|
/v1/tracks | Every track, with distances. | Free key |
Full coverage by country is on coverage.
curl "https://api.greyhoundracingapi.com/v1/tracks?country=IE" \ -H "X-API-Key: $KEY"
import os, requests r = requests.get( "https://api.greyhoundracingapi.com/v1/tracks", params={"country": "IE"}, headers={"X-API-Key": os.environ["KEY"]}, timeout=30, ) print(r.json()["data"])
const r = await fetch("https://api.greyhoundracingapi.com/v1/tracks?country=IE", { headers: { "X-API-Key": process.env.KEY }, }); console.log((await r.json()).data);
$ch = curl_init("https://api.greyhoundracingapi.com/v1/tracks?country=IE"); curl_setopt_array($ch, [ CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => ["X-API-Key: " . getenv("KEY")], ]); $data = json_decode(curl_exec($ch), true); print_r($data["data"]);