GET /stream
Connect to a Server-Sent Events strömma for realtids push uppdateringar. Subscribe to broad topics or filter to specifik objekt med hjälp av the topic:filter syntax. Events inkludera unik IDs for reconnection (pass Last-Event-ID header to resume). Heartbeat keeps the connection alive. Använd curl -N or JavaScript EventSource. 14 topics available: växelkurss, crypto, electricity, commodities, economics, holidays, weather, jordbävningar, rymdväder, NASA, sports, news, VAT, and valutor.
ämnen
obligatorisk
Comma-separated subscriptions with optional filters (e.g. crypto:bitcoin,electricity:NO1)
heartbeat
valfri
standard: 30
Heartbeat interval in seconds (5-300)
| Namn | Obligatorisk | Standard | Beskrivning |
|---|---|---|---|
ämnen |
Ja | - | Comma-separated subscriptions with optional filters (e.g. crypto:bitcoin,electricity:NO1) |
heartbeat |
Nej | 30 | Heartbeat interval in seconds (5-300) |
curl -N "https://nordapi.ee/api/v1/stream?topics=crypto:bitcoin,electricity:NO1"
curl -N "https://nordapi.ee/api/v1/stream?topics=crypto:bitcoin"
curl -N "https://nordapi.ee/api/v1/stream?topics=electricity:NO1"
curl -N "https://nordapi.ee/api/v1/stream?topics=exchange_rates:EUR/USD,commodities:gold"
curl -N "https://nordapi.ee/api/v1/stream?topics=electricity&heartbeat=15"
curl -N "https://nordapi.ee/api/v1/stream?topics=crypto,commodities"
curl -N "https://nordapi.ee/api/v1/stream?topics=exchange_rates:NOK"
Detta är en Server-Sent Events (SSE) strömnings-endpoint. Den håller anslutningen öppen och skickar händelser i realtid. Prova med: curl -N "https://nordapi.ee/stream?topics=crypto:bitcoin"