18+ Only  |  Gambling can be addictive — please gamble responsibly  |  Gambling Help: 1800 858 858  |  GambleAware

Developers / Stream replay

Replay a race day

A recorded racing day over the same server-sent events as the live stream, at its own pace or faster. Build and test your stream client at any hour, including when no races are running.

The short answer

GET https://api.puntersedge.online/v1/stream/replay with your key in X-API-Key. You get the same race.prices, race.move, race.odds_open, race.result and arb.opportunity events, with the same JSON bodies, that the live stream sent on that day, so code written for one runs on the other unchanged.

The demo days cost nothing on any plan, at up to 10x. Any other recorded day is Business and above, at 1 credit per connected minute and any speed.

Only the stream is replayed. Every other endpoint still answers with today's data.

Try it

curl -N -H "X-API-Key: $PE_KEY" \
  "https://api.puntersedge.online/v1/stream/replay?speed=10&country=AU&events=race.prices,race.result"

With no day, you get the newest demo day. To see which days there are, and which your key can open:

curl -H "X-API-Key: $PE_KEY" https://api.puntersedge.online/v1/stream/replay/days

Choosing what plays

ParameterWhat it does
dayThe racing day, as an Australian date such as 2026-11-21. A day starts at 18:00 UTC the evening before, so a whole card is always one day. Leave it out for the newest demo day.
fromStart part-way through the day: HH:MM in UTC (from=05:30), or a full ISO time.
speed1, 2, 5, 10, 30, 60 or max. 1 is the day's own pace, max as fast as your client reads.
skip_quietOn by default: any gap longer than 2 minutes plays as 2 seconds, so you are not waiting through the hours between meetings.
retimeretime=true (speed 1 only) moves every timestamp in every event by the same amount, so the day's races jump from now on and code that counts down to the jump behaves as it would live. It plays the day's real gaps; pair it with from to start near the races.
events, category, country, venueThe same filters as the live stream.

What arrives

Every recorded event keeps its live name and body. Four more frame the replay:

Message ids look like rp:2026-11-21:1042. Reconnect with the last one in Last-Event-ID (or ?last_event_id=) and the replay carries on after it. A server restart sends event: reset, as the live stream does: reconnect with your last id.

Python

import json
import httpx

URL = "https://api.puntersedge.online/v1/stream/replay"
PARAMS = {"speed": "10", "country": "AU", "events": "race.prices,race.result"}

def handle(event, data):
    print(event, data.get("venue"), data.get("race_number"))

with httpx.stream("GET", URL, headers={"X-API-Key": "YOUR_KEY"}, params=PARAMS, timeout=None) as r:
    r.raise_for_status()
    event, data = None, []
    for line in r.iter_lines():
        if line.startswith("event:"):
            event = line[6:].strip()
        elif line.startswith("data:"):
            data.append(line[5:].strip())
        elif line == "" and event:
            body = json.loads("\n".join(data))
            if event == "replay.end":
                print("done:", body["events_sent"], "events")
                break
            if not event.startswith("replay."):
                handle(event, body)
            event, data = None, []

The handle function is the same one your live client calls. Point the same code at /v1/stream when the races are on.

JavaScript (Node 18 or later, no dependencies)

const URL = "https://api.puntersedge.online/v1/stream/replay?speed=10&country=AU&events=race.prices,race.result";

function handle(event, data) { console.log(event, data.venue, data.race_number); }

const res = await fetch(URL, { headers: { "X-API-Key": process.env.PE_KEY } });
if (!res.ok) throw new Error("HTTP " + res.status);
const decoder = new TextDecoder();
let buf = "";
for await (const chunk of res.body) {
  buf += decoder.decode(chunk, { stream: true });
  let i;
  while ((i = buf.indexOf("\n\n")) >= 0) {
    const block = buf.slice(0, i);
    buf = buf.slice(i + 2);
    let event = null;
    const data = [];
    for (const line of block.split("\n")) {
      if (line.startsWith("event:")) event = line.slice(6).trim();
      else if (line.startsWith("data:")) data.push(line.slice(5).trim());
    }
    if (!event) continue;
    const body = JSON.parse(data.join("\n"));
    if (event === "replay.end") { console.log("done:", body.events_sent, "events"); process.exit(0); }
    if (!event.startsWith("replay.")) handle(event, body);
  }
}

Save it as replay.mjs so the top-level await works. As with the live stream, a browser's EventSource cannot send the X-API-Key header: run it on your server.

Credits, plans and limits

This site contains wagering-related analysis and is intended for Australian users aged 18+. Gambling involves risk. Please gamble responsibly.