Create a free account
Register, sign in and generate your key from My account. Copy the full key when it appears: it is only shown once. Regenerating a key revokes your previous keys.
Send your key in X-API-Key or Authorization: Bearer. Keep it on your server or in your own private client; never publish it in source code or a shared browser bundle.
curl "https://web.f1.kai-young.co.uk/api/v1/live/sessions" \
-H "X-API-Key: YOUR_KEY" \
-H "X-Device-Track-ID: YOUR_SECURE_RANDOM_TRACKING_ID"Choose your endpoint
| GET endpoint | Purpose |
|---|---|
/api/v1/live/sessions | Available sessions and their identifiers. |
/api/v1/live/stream?session=current | Live timing events through SSE. |
/api/v1/live/state?session=SESSION_ID | Current or stored session state. |
/api/v1/live/replay?session=SESSION_ID | Replay start, end, duration and qualifying boundaries. |
/api/v1/live/state?session=SESSION_ID&at=UTC_TIMESTAMP | Historical timing at the supplied replay timestamp. |
/api/v1/live/providers | Timing connection and configured source status. |
Use session identifiers returned by the catalogue. Replay timestamps must include a timezone, for example 2026-03-06T02:00:00Z, and fall within that recording’s coverage.
Register your device
Ordinary accounts have one registered browser or API installation. Each registered identifier belongs to one account. Before using your client, generate a secure random tracking ID (at least 32 characters), store it privately and reuse it across requests.
curl -X POST "https://web.f1.kai-young.co.uk/dev/register/current" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"track_id":"YOUR_SECURE_RANDOM_TRACKING_ID","name":"My timing client"}'Include X-Device-Track-ID: YOUR_SECURE_RANDOM_TRACKING_ID on subsequent API requests. A missing or unregistered device receives HTTP 428. A conflicting account/device registration receives HTTP 409.
POST /dev/deregister/all with your API key to remove only your account’s registration and release its stream. You can then register your replacement. Browser users can do this in account settings; replacing a browser requires your password. Administrator-assigned developer exemptions bypass registration, while the one-stream limit still applies.
Receive live timing
Server-sent events send a timing event every second. Each event contains a JSON session state. This cadence does not guarantee a new upstream observation every second.
curl -N "https://web.f1.kai-young.co.uk/api/v1/live/stream?session=current" \
-H "X-API-Key: YOUR_KEY" \
-H "X-Device-Track-ID: YOUR_SECURE_RANDOM_TRACKING_ID"Read the mode, stale and notice fields before presenting values as live. Reconnect with a delay after a dropped connection. Browser EventSource cannot directly set an API-key header; use a server-side client or a streaming fetch implementation.
One account. One stream.
The web player, API event stream and API polling share one slot. Close your web timing page before starting your own API stream. API keys for the same account do not create extra slots.
curl "https://web.f1.kai-young.co.uk/api/v1/live/state?session=current" \
-H "X-API-Key: YOUR_KEY" \
-H "X-Device-Track-ID: YOUR_SECURE_RANDOM_TRACKING_ID" \
-H "X-Stream-ID: YOUR_CLIENT_UUID"Generate a UUID once for each polling client and keep it stable between requests. Poll at one-second intervals when required. Stopped polling clients release their slot within 30 seconds. Session catalogue and replay metadata requests do not occupy a slot.
Understand the response
| Status | What to do |
|---|---|
| 401 | Supply an active API key or sign in again. |
| 404 | Check the session ID and replay coverage. |
| 409 | Close the other stream; allow up to 30 seconds for an abandoned slot to expire. |
| 422 | Check timestamps, required fields and your polling client UUID. |
| 428 | Register this device in settings or POST /dev/register/current. |
| 429 | Pause before retrying. Login has an attempt limit; API limits may apply to configured keys. |
| 503 | The service is temporarily unavailable. Retry with a delay. |
Unavailable optional radio, weather or map channels do not prevent usable core archive timing from loading.