Integrations: n8n

Download the workflow JSON

n8n template: Send filing-backed earnings updates for a ticker watchlist

Download: n8n-earnings-watchlist.json (import with Workflows > Import from File, or paste the JSON onto the canvas).

Prepared November 27, 2026. Disclosure: I built the API this template calls. I also sell access to it (the YieldTerminal Pro Earnings Data API).

What it does

Every 30 minutes on weekdays (6:00 to 21:30, New York time), the workflow:

  1. Schedule Trigger: starts the run.
  2. Config: holds your watchlist (comma-separated tickers) and test_mode (true/false).
  3. Test mode? sends the run down one of two branches:
    • Test mode (no key): calls the public sample endpoint data-sample?ticker=... for the watchlist tickers that are in the sample (NVDA, WMT, TJX, HD, TGT). Anyone can run it without signing up.
    • Live (key): one call to data-api?endpoint=results with your key in the x-api-key header. That returns every result published for the latest filing day.
  4. One item per release: turns the response into one item per results filing. Withheld figures stay null, never 0.
  5. On my watchlist: keeps only your tickers.
  6. New filings only (accession): drops any filing already handled in an earlier run. Each SEC filing has one accession number.
  7. Needs source sentences? Rows from the results-by-day call carry no release sentences, so for each new filing on your list the workflow makes one call to data-api?endpoint=company&ticker=.... It copies revenue_proof, net_income_proof and eps_proof (the sentences from the release that state each figure), matched by accession. Test-mode rows already have them.
  8. Format update: builds the Slack message and the sheet row.
  9. Post to Slack and Append to Google Sheet: use either or both. Delete the node you don't need.

Each update carries the ticker, the form (8-K, or 6-K for foreign filers), the filing date and the quarter. Then, for revenue, net income and diluted EPS, it gives the displayed figure, the release's own line name and the release sentence. It ends with the SEC filing URL, the accession number and the line Data: YieldTerminal Pro.

Example Slack message, produced by the workflow's own code from today's no-key NVDA sample:

*NVDA* (NVIDIA CORP): Form 8-K filed 2026-11-17, quarter labeled 2027 in the release
Revenue: $115.80 billion (+103% vs $57.00 billion a year earlier) [Revenue]
> "Document NVIDIA Announces Financial Results for Third Quarter Fiscal 2027 •Revenue of $115.8 billion, up 103% from a year ago •Data Center"
Net income: withheld (could not be confirmed from the filing; not zero)
Diluted EPS: $2.70 (vs $1.30 a year earlier) [Diluted earnings per share]
> "margins were 74.8% and 74.9%, respectively. GAAP and non-GAAP earnings per diluted share were $2.70 and $2.68, respectively. “Our momentum is real."
Filing: https://www.sec.gov/Archives/edgar/data/1045810/000104581026000088/q3fy27pr.htm
Accession: 0001045810-26-000088
_Test mode: no-key sample response_
Data: YieldTerminal Pro

The quoted text is a window of release text around the figure, exactly as the API returns it in *_proof. It is not always a clean sentence.

Withheld figures are null, never zero

A figure is published only when the release's financial table agrees with a second source: the release's own text, or the company's SEC data for this quarter and the year-ago quarter. Otherwise the API sets *_text to null (or leaves it out) and leaves the number fields out. The workflow keeps such a figure as null. Slack shows "withheld" and the sheet cell stays blank. Nothing is ever filled with 0. If you add your own nodes, don't use || 0 or Number(x) on these fields.

Setup

1. Try it with no key (2 minutes)

  1. Import the JSON.
  2. Leave Config > test_mode on (true).
  3. Open Post to Slack and Append to Google Sheet and either connect them (steps 3 and 4 below) or disable them (right-click > Deactivate) so you only see the formatted output.
  4. Click Test workflow. Format update shows one item per sample ticker on your watchlist.

2. Get a key and add the header credential

  1. Get a free key (100 calls a day) or a plan at https://yieldterminalpro.com/developers.
  2. In n8n: Credentials > Add credential > Header Auth.
    • Name: x-api-key (this exact header name comes from the API's OpenAPI spec, components.securitySchemes.apiKeyHeader)
    • Value: your key (ytp_ followed by 48 hex characters)
    • Save it as e.g. "YieldTerminal Pro API key (x-api-key)".
  3. Select this credential on both HTTP nodes marked (key): Results, latest filing day (key) and Company release sentences (key).
  4. Set Config > test_mode to false and edit Config > watchlist (for example AAPL, MSFT, COST, NKE).

Don't put the key in a URL. The ?key= query parameter is deprecated, because addresses end up in logs.

3. Slack (optional)

Create a Slack credential with a bot token that has chat:write, invite the bot to your channel, and set the channel on Post to Slack. The template uses #earnings.

4. Google Sheets (optional)

Create a Google Sheets OAuth2 credential, paste your sheet URL into Append to Google Sheet > Document, and pick the tab. Put this header row in row 1:

ticker	company	form	filed	quarter_ended	accession	revenue_value	revenue_currency	revenue_text	revenue_label	revenue_source_sentence	net_income_value	net_income_currency	net_income_text	net_income_label	net_income_source_sentence	eps_value	eps_text	eps_label	eps_source_sentence	filing_url	sample	credit

*_value columns are plain numbers in whole currency units (for example 188835000000), and the currency is in the matching *_currency column. Not every row is USD: foreign filers report in their own currency, and nothing is converted. Blank means withheld.

5. Activate

Toggle the workflow to Active. The schedule runs in the workflow's time zone (set to America/New_York under Settings).

Call budget

  • Live mode uses 1 call per run, plus 1 call for each new filing on your watchlist.
  • At the default schedule (every 30 minutes from 6:00 to 21:30, weekdays) that is 32 calls a day plus one per new filing. That fits a free key's 100 calls a day. Limits reset at 00:00 UTC.
  • Test mode calls only the no-key sample endpoint, which counts against no key.
  • Successful data-api responses carry X-RateLimit-Limit and X-RateLimit-Remaining headers. To see them, turn on Options > Response > Include Response Headers and Status on the HTTP node, then change One item per release to read item.json.body.

Which plan covers which use

These are the API's terms as stated in its OpenAPI description on 2026-11-27. Check https://yieldterminalpro.com/developers for the current wording.

  • Free key: 100 calls a day, personal non-commercial use, with attribution.
  • Developer ($29 a month or $290 a year, 1,000 calls a day): personal and internal use (for example a team Slack channel at a business), plus display of the filing-derived data in your own app or site with a visible "Data: YieldTerminal Pro" credit. The credit can be plain text, or a link that may be nofollow or sponsored.
  • Pro ($99 a month or $990 a year, 20,000 calls a day): display without a credit, plus the updates endpoint (results first published, corrected or withdrawn since a time you choose) and the archive endpoint.
  • 14-day trial: write to [email protected] with what you're building, and I'll send a 14-day key with the Pro plan switched on.

Customising

  • Schedule: edit the cron expression */30 6-21 * * 1-5 on the trigger.
  • A missed day: the results call returns the latest published filing day. If n8n was down across a whole filing day, add a query parameter date=YYYY-MM-DD to Results, latest filing day (key) for that day and run it once.
  • Corrections: dedupe is on the accession number, so a correction to a filing already posted is not posted again. Pro keys can switch the live call to endpoint=updates&since=<UTC time>, which returns rows first published, corrected or withdrawn after that time, and dedupe on accession + pushed_at instead.
  • Replaying test mode: the second test run posts nothing, because the accessions were already seen. Run Clear Deduplication History on the New filings only node to replay.
  • Outlook changes: endpoint=outlook&ticker=... returns guidance changes with sentence and prev_sentence quoted from both releases. That would be a second branch.

What was checked on 2026-11-27, and what wasn't

Checked:

  • Structure: a script checked the JSON against n8n's workflow export format. It looked at top-level fields, node id/name/type/typeVersion/position/parameters, unique names and UUID ids, valid connections and IF output counts, a credential entry for each genericAuthType, balanced {{ }} expressions, and no key or token in the file. Result: PASS.
  • HTTP calls and code: a Node 18 script ran the workflow's own Code-node JavaScript, with n8n's $input and $() emulated, against the live no-key endpoints. All five data-sample?ticker= calls returned 200. One item per ticker came out, accession numbers were valid, and filing URLs were on sec.gov. Withheld net income for NVDA, WMT and TGT came out as null, never 0. Release sentences were attached. A results-by-day row (data-sample?endpoint=results, the same format as data-api results) split correctly, with a withheld EPS staying null. The attach step matched by accession and passed the row through when the company call failed. data-api without the header returned 401 "Missing or malformed API key". All checks passed.

Not checked:

  • The JSON was not imported into a running n8n instance; n8n is not installed on this machine. The node versions used (Schedule Trigger 1.2, Set 3.4, IF 2.2, Filter 2.2, Code 2, HTTP Request 4.2, Remove Duplicates 2, Slack 2.2, Google Sheets 4.5) need a recent n8n. Remove Duplicates' "Remove Items Processed in Previous Executions" operation only exists in recent versions, and I haven't confirmed which release added it.
  • The keyed calls (endpoint=results and endpoint=company with a real key) were not run, because no key was used. The response shapes come from the OpenAPI spec and the no-key samples, which use the same format.
  • The Slack and Google Sheets nodes were not run.