Documentation / Race commentary

Runner comments

GET/v1/races/{race_id}/comments

Available on Live Plus only

A Live key reaches the other 42 endpoints and receives 403 upgrade_required here. Compare plans

How each runner ran, as structured events and a one-line summary, or for Australian racing the view before the off.

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

NameInTypeRequiredDescription
race_id path integer yes The race identifier.

Request

curl "https://api.greyhoundapi.com/v1/races/3959843903/comments" \
  -H "X-API-Key: $GAPI_KEY"
<?php
$ch = curl_init('https://api.greyhoundapi.com/v1/races/3959843903/comments');
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/races/3959843903/comments', {
  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/races/3959843903/comments', {
      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/races/3959843903/comments",
    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"])

Response

200 OKapplication/json
{
    "meta": {
        "request_id": "req_8f2ac1",
        "data_as_of": "2026-07-08T13:05:12Z"
    },
    "data": {
        "race_id": 1088930,
        "region": "GB",
        "track": {
            "track_id": 1400000031,
            "name": "Towcester"
        },
        "race_number": 7,
        "scheduled_start": "2026-09-19T14:48:00Z",
        "status": "complete",
        "kind": "in_running",
        "runners": [
            {
                "trap": 3,
                "dog_id": 646716,
                "dog_name": "Moyvane Image",
                "position": 1,
                "comments": {
                    "in_running": {
                        "summary": "Quick out of the traps, raced between the middle and the rail, led on the run to the first bend.",
                        "events": [
                            {
                                "event": "fast_start",
                                "place": null,
                                "text": "Quick out of the traps"
                            },
                            {
                                "event": "line_middle_to_rails",
                                "place": null,
                                "text": "Raced between the middle and the rail"
                            },
                            {
                                "event": "led",
                                "place": "run_up",
                                "text": "Led on the run to the first bend"
                            }
                        ]
                    }
                }
            },
            {
                "trap": 2,
                "dog_id": 655316,
                "dog_name": "Union Allstar",
                "position": 4,
                "comments": {
                    "in_running": {
                        "summary": "Raced between the rail and the middle, led from the first to the third bend.",
                        "events": [
                            {
                                "event": "line_rails_to_middle",
                                "place": null,
                                "text": "Raced between the rail and the middle"
                            },
                            {
                                "event": "led_from",
                                "place": "bend_1",
                                "text": "Led from the first bend"
                            },
                            {
                                "event": "led_until",
                                "place": "bend_3",
                                "text": "Led until the third bend"
                            }
                        ]
                    }
                }
            }
        ]
    }
}

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.

GET/v1/races/{race_id}/comments

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.