Skip to main content
Signal8

Integration

Use the Signal8 API in Pipedream

To use Signal8 in Pipedream, add a Node.js code step that calls https://api.signal8.ai/api/v1/public with fetch and your API key in an X-Api-Key header, read from a Pipedream environment variable. For new SEC filings, run that step on a Schedule trigger against /stream/events and keep the cursor in a Pipedream data store, so each filing is handled once.

Included with Signal8 Pro, $29.50/mo or $294/yr. One API key covers the REST API, the MCP server and the streams.

Last checked on .
On this page

Before you start

  • A Signal8 account on Signal8 Pro and an API key from the API keys page. Keys start with sk_live_ (or sk_test_ for a test key). Signal8 Pro ($29.50/mo or $294/yr, no free trial) includes the REST API, the MCP server and the streams, at 120 requests a minute and 10,000 a day, with up to 3 API keys.
  • In Pipedream, add an environment variable named SIGNAL8_API_KEY holding the key. Code steps read it as process.env.SIGNAL8_API_KEY, so the key is not written into the workflow.
  • Signal8 does not publish a Pipedream component. A code step is all you need.

Step 1: a first request from a Node.js code step

  1. Create a workflow with any trigger (HTTP, Schedule or another app).
  2. Add a step, choose Node.js code, and paste the code below.
  3. Test the step. Its return value, the quote object, is available to the steps after it.
Node.jsPipedream Node.js: get a quote
// Pipedream Node.js code step. SIGNAL8_API_KEY is a Pipedream environment variable.
export default defineComponent({
async run({ steps, $ }) {
const res = await fetch("https://api.signal8.ai/api/v1/public/companies/AAPL/quote", {
headers: { "X-Api-Key": process.env.SIGNAL8_API_KEY },
});
const body = await res.json();
if (!res.ok) throw new Error(`${res.status} ${body.error?.code}: ${body.error?.message}`);
return body.data; // available to later steps as steps.<step_name>.$return_value
},
});

Swap the URL for any endpoint in the API reference, for example https://api.signal8.ai/api/v1/public/intelligence/AAPL/insider-transactions?transactionCode=P&limit=20 for Form 4 open-market purchases.

Step 2: new SEC filings on a schedule

https://api.signal8.ai/api/v1/public/stream/events is the polling twin of the real-time stream: same events, same filters, same cursors. Each call returns a next_cursor; save it in a data store and send it as since next time to get only what is new.

  1. Create a workflow with a Schedule trigger, for example every 5 minutes.
  2. Add a Node.js code step with the code below. When you test it, Pipedream asks you to pick or create a data store for the db prop.
  3. Add steps after it (Slack, Discord, email, a database). The code step returns the new events, or ends the run early when there are none.
Node.jsPipedream Node.js: poll new filings with a cursor
// Pipedream Node.js code step after a Schedule trigger (for example every 5 minutes).
// The data store keeps the cursor, so each filing is handled once.
export default defineComponent({
props: {
db: "$.service.db",
},
async run({ steps, $ }) {
const params = new URLSearchParams({
channels: "filings,filings.ai",
forms: "8-K,S-1,424B*",
limit: "200",
});
const cursor = await this.db.get("signal8_cursor");
if (cursor) params.set("since", cursor);

const res = await fetch(`https://api.signal8.ai/api/v1/public/stream/events?${params}`, {
headers: { "X-Api-Key": process.env.SIGNAL8_API_KEY },
});
if (res.status === 429) {
// Per-minute limit: Retry-After says how many seconds to wait. Try again next run.
return $.flow.exit(`rate limited, retry after ${res.headers.get("retry-after")} s`);
}
const body = await res.json();
if (!res.ok) throw new Error(`${res.status} ${body.error?.code}: ${body.error?.message}`);

const page = body.data;
if (page.next_cursor) await this.db.set("signal8_cursor", page.next_cursor);
if (page.events.length === 0) return $.flow.exit("no new filings");
return page.events; // raw filings, and the AI analysis with the same id
},
});
JSONResponse shape (abridged)
{
"success": true,
"data": {
"events": [
{
"channel": "filings",
"id": "0001234567-26-000123",
"cursor": "c1-1764340200000-0",
"data": {
"accession_number": "0001234567-26-000123",
"company": "Example Therapeutics Inc.",
"tickers": ["EXMP"],
"form": "8-K",
"items": ["3.02"],
"accepted_at": "2026-11-28T14:30:00Z",
"filing_url": "https://www.sec.gov/Archives/edgar/data/1234567/000123456726000123/"
}
}
],
"next_cursor": "c1-1764340200000-0",
"has_more": false,
"cursor_expired": false
}
}

The raw filings event arrives as soon as we see the filing; the filings.ai event follows with the same id when the analysis is ready. Filter on channel in a later step if you want only one of them. Events are kept for 24 hours.

What about the real-time WebSocket?

The WebSocket at wss://api.signal8.ai/api/v1/stream pushes each filing the moment we see it, but it needs a process that stays connected and watches for the heartbeat we send every 15 seconds. A Pipedream workflow run is short-lived, so polling /stream/events every few minutes is the better fit there. For a long-running client, see the stream protocol and the Python streaming tutorial.

Questions

Is there a Signal8 component for Pipedream?

No. Signal8 does not publish a Pipedream component. A Node.js code step with fetch and an X-Api-Key header calls any Signal8 endpoint.

Where should I keep the API key in Pipedream?

In a Pipedream environment variable such as SIGNAL8_API_KEY, read as process.env.SIGNAL8_API_KEY in the code step. Never put the key in the URL.

Can a Pipedream workflow hold the Signal8 WebSocket open?

Not well: a workflow run is short-lived and the stream is meant for a process that stays connected. Poll https://api.signal8.ai/api/v1/public/stream/events on a schedule instead. It returns the same events with the same cursors.

Get an API key and connect your workflow

Signal8 Pro ($29.50/mo or $294/yr, no free trial) includes the REST API, the MCP server and the streams, at 120 requests a minute and 10,000 a day, with up to 3 API keys.

Included with Signal8 Pro, $29.50/mo or $294/yr. One API key covers the REST API, the MCP server and the streams.