Endpoint
- URL:
GET https://sse.kicks.dev/v1/stream - Protocol:
text/event-stream - Authentication:
Authorization: Bearer YOUR_API_KEY - Plan requirement: Pro membership
Selecting Topics
SSE currently supports price updates for:- StockX (all markets)
- GOAT (all markets)
Topics header.
Header format
Rules
- Format:
[event_type]:[source]:[country_code] - Lowercase only
- Comma-separated
Example request
Event Format
Each event follows the standard SSE format:Fields
id— unique incremental event IDevent— topic name (source:market)data— JSON payload
Example Payload
Node.js Example
Node 18+ has nativefetch support.
This example uses the eventsource package for automatic reconnection handling.
Install
Example Listener
Reconnection & Resume (Recommended)
SSE supports automatic reconnection. For production systems:- Persist the last processed
id - Reconnect with
Last-Event-IDheader - Use exponential backoff if connection fails repeatedly
- Run listener in a dedicated worker process
Only the 5,000 last events are retryable.
