API Reference
Stream Listing Updates
Server-Sent Events stream that delivers cached data immediately from D1,
then attempts a live fetch via Decodo Scraping API. Events: cached, live,
error, done. Error payloads include a machine-readable code, such as
fetch_failed.
Tier: Pro+
GET
Stream listing updates (SSE)
Overview
Opens a Server-Sent Events (SSE) stream for a single listing. The stream delivers cached data immediately, then attempts a live fetch for the freshest data available. Tier requirement: Pro, Business, or Internal.SSE Events
| Event | Description |
|---|---|
cached | Immediate response from D1 cache (arrives within milliseconds) |
live | Fresh data fetched live from the source (arrives in 2-5 seconds) |
error | Live fetch or parse could not complete; the payload includes an error code such as fetch_failed |
done | Stream complete, connection will close |
Example
Behavior
- The
cachedevent is always sent first (from D1 database) - The
liveevent is sent if the live fetch succeeds (typically 2-5 seconds) - If the live fetch fails or times out, an
errorevent is sent instead oflive - The stream always ends with a
doneevent - Total stream duration is typically under 10 seconds
When to use
This endpoint is designed for one-time fresh data retrieval. For ongoing monitoring, use persistent watchers instead. Note: Business and Internal tier users get live data automatically on the regularGET /v1/property/{id} endpoint (returned with "source": "live"), so the SSE stream is primarily useful for Pro tier users who want live data.Stream listing updates (SSE)