Documentation / Dogs

Performance trend

GET/v1/dogs/{dog_id}/trend

Available on Live Plus only

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

Whether a greyhound is running quicker or slower over its recent races, each run measured against par for that track and distance, and the change reported beside the dog's own run-to-run variation so you can tell a trend from noise.

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
dog_id path integer yes The dog identifier.
track_id query integer no Only runs at this track.
distance_m query integer no Only runs over this distance.
window query integer no How many recent runs to read, 4 to 40. Defaults to 12.

Request

curl "https://api.greyhoundapi.com/v1/dogs/3514967427/trend" \
  -H "X-API-Key: $GAPI_KEY"
<?php
$ch = curl_init('https://api.greyhoundapi.com/v1/dogs/3514967427/trend');
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/dogs/3514967427/trend', {
  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/dogs/3514967427/trend', {
      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/dogs/3514967427/trend",
    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": {
        "dog_id": 1655044329,
        "name": "Full Monty",
        "filter": {
            "track_id": null,
            "distance_m": null,
            "window": 12
        },
        "runs": [
            {
                "date": "2026-08-28",
                "track": "Romford",
                "distance_m": 400,
                "grade": "A3",
                "trap": 1,
                "position": 1,
                "time_s": 24.11,
                "par_s": 24.61,
                "vs_par_s": -0.5,
                "sectional_s": 3.68
            },
            {
                "date": "2026-08-21",
                "track": "Romford",
                "distance_m": 400,
                "grade": "A4",
                "trap": 3,
                "position": 2,
                "time_s": 24.29,
                "par_s": 24.61,
                "vs_par_s": -0.32,
                "sectional_s": 3.74
            }
        ],
        "trend": {
            "runs": 12,
            "runs_with_par": 12,
            "window": "first 6 vs last 6",
            "vs_par_change_s": -0.31,
            "run_to_run_stdev_s": 0.213,
            "note": "Change is larger than the run-to-run variation."
        },
        "note": "Each run is shown against par \u2014 the average winning time for that track and distance \u2014 so a fast night does not read as improvement. Grade is included because a drop in class means weaker opposition. Nothing here rates this greyhound or forecasts a future run."
    }
}

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/dogs/{dog_id}/trend

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.