Stream

Stream feeds over SSE

Subscribe to real-time F1 timing feeds over Server-Sent Events (SSE) — no public webhook server required. Open this URL with the browser EventSource API or any SSE client.

Auth: Authorization: Bearer <token> header, or ?token=<token> query param (for EventSource, which cannot set headers).

Feeds: ?feeds=events.race,timing.data for specific feeds, or ?feeds=* for every feed your tier allows. Ids are the canonical catalog ids listed by GET /v1/feeds.

Wire format: each event is an SSE frame event: <feedType>\ndata: <json>\n\n. Use source.addEventListener('<feedType>', ...) to handle individual feeds. A ping event is sent every 30s to keep the connection alive through proxies.

Tier gating: requesting a feed above your plan returns 403 before the stream opens.

get/v1/stream

Request

  • Base URL: https://api.racehooks.io
  • URL: https://api.racehooks.io/v1/stream
  • Auth: none declared

Query parameters

feedsstring

Comma-separated feed ids, or '' for all tier-allowed feeds. Defaults to ''.

tokenstring

Bearer token, for clients (e.g. browser EventSource) that cannot set the Authorization header.

Response

Default Response

Changes

No recorded changes to this operation across all 1 revision of this API.