Results breakdown
/v1/results/breakdownAvailable on Live Live Plus
Count every completed race one way, by winning trap, the winner's price, going, favourite, month, track, distance or grade, with the share each group holds.
Authenticate with your key in the X-API-Key header, or
?key= if your tool cannot set one —
see Authentication. Works with sandbox keys
inside the sandbox data window.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
by |
query | string | yes | How to group the races: trap (the winning trap), price (the winner's starting price, in six bands), going, favourite (won or beaten), month, track, distance, grade (the grade family) or runners (the field size). Four more count runners instead of races: time_of_day (morning, afternoon or evening on the track's clock), layoff (days since the dog's previous run), sex, last_run (won or beaten last time), runner_price (the runner's own starting price, in the six bands) and month_of_year (every January together, and so on); each row then gives ran, won, win_pct, the runners' fair share even_pct, and the return at starting price. |
span |
query | string | no | 30 for the last 30 days, 365 for the last 12 months, all (the default) for every race on record. |
month_from |
query | string | no | A custom range in place of span: the first month to count, YYYY-MM. Counts go by whole month. Not with by=track. |
month_to |
query | string | no | The last month to count, YYYY-MM; this month when left out. |
with_months |
query | boolean | no | true adds meta.months: the races in each month at this place (and grade), for drawing a date picker. |
region |
query | string | no | GB, AU or IE. Needed unless a track_id is given, which sets the region itself. |
track_id |
query | integer | no | Filter to a single track. Track IDs come from List tracks. |
distance_m |
query | integer | no | Filter by race distance in metres. |
going |
query | string | no | Count only races run in this going band. |
runners |
query | integer | no | Count only races with this many runners, 3 to 8; 3 counts races of three or fewer. meta.fields lists the field sizes the races cover. |
grade |
query | string | no | Count only races in this grade family: the letters of the race grade, so A counts A1 to A12, OR open races, HP, D and S their grades in Britain; G, M or MX in Australia. meta.grades lists the families the races cover. |
winner_trap |
query | integer | no | Look for races won from this trap, 1 to 8: each row gains hits and hit_pct. |
winner_price |
query | string | no | Look for races whose winner started in this price band. |
favourite |
query | boolean | no | true to look for races the starting-price favourite won, false for races it lost. In a runner question, true counts only the runners that started favourite. |
time_of_day |
query | string | no | Count only runners in races run at this time on the track's own clock: morning before 1pm, afternoon 1pm to 6pm, evening from 6pm. Makes it a runner question. |
layoff |
query | string | no | Count only runners this many days after their previous run. Makes it a runner question. |
sex |
query | string | no | Count only dogs or only bitches. Ireland records sex from 2026. Makes it a runner question. |
last_run |
query | string | no | Count only runners that won, or were beaten, in their previous run (none: no run before on record). Makes it a runner question. |
runner_price |
query | string | no | Count only runners that started at this price, whether they won or not: with it, the return answers what £1 on every such runner brought back. Makes it a runner question. |
Request
curl "https://api.greyhoundapi.com/v1/results/breakdown?by=trap®ion=GB" \
-H "X-API-Key: $GAPI_KEY"<?php
$ch = curl_init('https://api.greyhoundapi.com/v1/results/breakdown?by=trap®ion=GB');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['X-API-Key: ' . getenv('GAPI_KEY')],
]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($response['data']);const res = await fetch('https://api.greyhoundapi.com/v1/results/breakdown?by=trap®ion=GB', {
headers: { 'X-API-Key': process.env.GAPI_KEY }
});
if (!res.ok) throw new Error(`GreyhoundAPI ${res.status}`);
const { meta, data } = await res.json();
console.log(meta.data_as_of, data);import { useEffect, useState } from 'react';
export default function Example() {
const [data, setData] = useState(null);
useEffect(() => {
fetch('https://api.greyhoundapi.com/v1/results/breakdown?by=trap®ion=GB', {
headers: { 'X-API-Key': import.meta.env.VITE_GAPI_KEY }
})
.then((r) => r.json())
.then((body) => setData(body.data));
}, []);
if (!data) return <p>Loading…</p>;
return <pre>{JSON.stringify(data, null, 2)}</pre>;
}Browser code exposes whatever key it ships with — use a sandbox key for prototypes and proxy live keys through your own server in production.
import os
import requests
r = requests.get(
"https://api.greyhoundapi.com/v1/results/breakdown?by=trap®ion=GB",
headers={"X-API-Key": os.environ["GAPI_KEY"]},
timeout=10,
)
r.raise_for_status()
body = r.json()
print(body["meta"]["data_as_of"], body["data"])curl "https://api.greyhoundapi.com/v1/results/breakdown?by=trap®ion=GB&key=$GAPI_KEY"<?php
$url = 'https://api.greyhoundapi.com/v1/results/breakdown?by=trap®ion=GB' . (str_contains('https://api.greyhoundapi.com/v1/results/breakdown?by=trap®ion=GB', '?') ? '&' : '?') . 'key=' . getenv('GAPI_KEY');
$ch = curl_init($url);
curl_setopt_array($ch, [CURLOPT_RETURNTRANSFER => true]);
$response = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($response['data']);const res = await fetch(`https://api.greyhoundapi.com/v1/results/breakdown?by=trap®ion=GB&key=$GAPI_KEY`.replace('$GAPI_KEY', process.env.GAPI_KEY));
if (!res.ok) throw new Error(`GreyhoundAPI ${res.status}`);
const { meta, data } = await res.json();
console.log(meta.data_as_of, data);import { useEffect, useState } from 'react';
export default function Example() {
const [data, setData] = useState(null);
useEffect(() => {
fetch(`https://api.greyhoundapi.com/v1/results/breakdown?by=trap®ion=GB&key=$GAPI_KEY`.replace('$GAPI_KEY', import.meta.env.VITE_GAPI_KEY))
.then((r) => r.json())
.then((body) => setData(body.data));
}, []);
if (!data) return <p>Loading…</p>;
return <pre>{JSON.stringify(data, null, 2)}</pre>;
}Browser code exposes whatever key it ships with — use a sandbox key for prototypes and proxy live keys through your own server in production.
import os
import requests
r = requests.get(
"https://api.greyhoundapi.com/v1/results/breakdown?by=trap®ion=GB",
params={"key": os.environ["GAPI_KEY"]},
timeout=10,
)
r.raise_for_status()
body = r.json()
print(body["meta"]["data_as_of"], body["data"])A key in the URL appears in server logs, browser history and anything the link is pasted into. Convenient for a spreadsheet or a quick look; the header is safer everywhere else.
Response
{
"meta": {
"request_id": "req_8f2ac1",
"data_as_of": "2026-07-08T13:05:12Z",
"count": 6,
"by": "trap",
"span": "all",
"region": "GB",
"track": "Romford",
"distance_m": 400,
"races": 11745,
"from": "2018-03-02",
"to": "2026-11-11",
"sample": {
"level": "strong",
"note": "Thousands of races: a steady pattern."
},
"built_at": "2026-11-12T02:41:09Z",
"counted": "Every completed race on record with a winner, summed each night. Void races and no-races are left out; a dead heat counts once."
},
"data": [
{
"group": "1",
"label": "Trap 1",
"races": 2326,
"share_pct": 19.8
},
{
"group": "2",
"label": "Trap 2",
"races": 2020,
"share_pct": 17.2
},
{
"group": "3",
"label": "Trap 3",
"races": 1867,
"share_pct": 15.9
},
{
"group": "4",
"label": "Trap 4",
"races": 1773,
"share_pct": 15.1
},
{
"group": "5",
"label": "Trap 5",
"races": 1809,
"share_pct": 15.4
},
{
"group": "6",
"label": "Trap 6",
"races": 1950,
"share_pct": 16.6
}
]
}Run it live
A real request from your browser straight to api.greyhoundapi.com
with your own key — nothing is proxied or logged by this page.
Held in this tab only, sent only to the API host. No key yet? Create a free sandbox key — it runs every endpoint against the sandbox data window.
Notes
by=track needs a region and no track_id; by=distance needs a track_id. span=30 and span=365 count the last 30 days or 12 months to the build; all (the default) is the whole archive. Australian tracks publish no going, so their races fall in the unknown going group. Every answer carries meta.grades, the grade families in the races counted, each with its races and the grades in it, and with a track_id meta.distances, the distances raced there. month_from and month_to count a custom range of whole months instead of span. Return at starting price. With by=trap and nothing to look for, each row carries stakes, returned, return_per_1 and roi_pct: what level 1 unit stakes on that trap in every race returned at SP. With winner_trap alone, or favourite=true alone, the rows carry the same for that bet and meta.returns totals it. A trap with no priced runner is no bet, so vacant traps never count as losers. Early pace. The early leader is the runner with the fastest first sectional. With by=trap each row carries led_early, led_early_pct and led_early_won_pct (how often that trap led early, and when it did, how often it won); grouped by going, grade, month, track or distance each row carries timed_races, leader_won and leader_won_pct, and meta.early_pace totals them. Races without sectional times are left out of these figures. Field size. meta.even_pct is the even chance across the races counted, each race counting 1 in its own runners, so a mix of five- and six-runner races is not read against 1 in 6. With by=trap each row carries ran (the races that trap had a runner in), won_when_ran_pct and even_when_ran_pct; with winner_trap alone the rows carry the same for that trap, totalled in meta.trap_ran. A vacant trap is no race for it. Races recording more runners than the region has traps are left out until checked.