Server-Sent Events
GET /v1/stream keeps an HTTP connection open and writes matching filings as they arrive. Authenticate with your API key.
curl -N -H "Authorization: Bearer $FS_KEY" \
"https://api.filingstream.dev/v1/stream?tickers=AAPL,TSLA&forms=8-K&keywords=merger%20agreement"
Choosing the filter
Either subscription_id=sub_… (uses that subscription's filter) or ad-hoc parameters: ciks, tickers, forms (comma-separated), keywords (comma-separated, each phrase URL-encoded, so a comma inside a phrase is %2C) and include_amendments=true|false. An invalid filter is HTTP 422.
Events
Each message has id: (the event's sequence number), event: filing.created and data: (the same JSON as a webhook body, with matched_keywords). Comment lines (: ping) are heartbeats.
Resuming
Reconnect with the Last-Event-ID header (browsers' EventSource does this automatically) or ?since_seq=N and the stream first replays matching events after that sequence, then continues live. The replay window is limited by plan (a number of days and a maximum number of events). We keep the searchable text of a filing for at least as long as any plan's replay window; if the text of an event is no longer held, a replay with keywords matches that event on company names, form type and items only, so a keyword that appears only in the filing text will not find it. If your client is too slow the server closes the stream with an event: error message (slow_consumer); reconnect with Last-Event-ID.
The number of concurrent streams per account is limited by plan (HTTP 429 when exceeded).
Public demo stream
GET https://api.filingstream.dev/public/v1/demo/stream needs no key. It is for trying the format:
- events are delayed (60 seconds by default) and reduced: form type, company, tickers, filed date, accession number and links only; no items, no keyword matches, no searched documents;
- it never replays (
Last-Event-IDis ignored); - connections are capped per client address and globally, and each connection ends after about 10 minutes with an
event: byemessage;EventSourcereconnects on its own.
Browsers may use it from the FilingStream website origin. It is not for production use.
Public status
GET /public/v1/status returns {"status":"operational|degraded|down","edgar":{…},"webhooks":{…},"api":"ok","updated_at":…}, cached for 15 seconds. The numbers are recent observations reported by our own service, not a service level and not a guarantee. edgar.detect_lag_p50_s and detect_lag_p95_s are the median and 95th percentile of the time from SEC acceptance of a filing (as stamped in the Latest Filings feed) to our detection of it, over the most recent filings (detect_lag_samples); null until a filing has been seen. They therefore include the delay before EDGAR's feed lists a filing, and exclude our processing and delivery to you. detect_lag_source says whether the numbers come from the live feed (atom) or from replayed test data (replay, fictional). They make no promise about the future. webhooks.oldest_pending_age_s is how long the oldest deliverable webhook has been waiting (0 when none), and webhooks.success_rate_1h the share of delivery attempts in the last hour that your endpoints answered with a 2xx.