Below is a pragmatic, opinionated way to turn Hacker News (HN) into an “insight feed” with n8n.
The idea: pull fresh HN data → filter for relevance → enrich / summarise → ship the distilled output to wherever you’ll actually read it (Slack / Notion / e-mail / …).
1. Decide what “valuable insight” means for you
Dimension
Practical filter you can implement in n8n
Freshness
Story is < 24 h old (created_at_i > now-86400)
Popularity
points ≥ 100 OR num_comments ≥ 50
Topic
Title or URL contains keywords you care about (e.g. AI, Rust, YC)
Sentiment / tone
Optional: run sentiment analysis and skip negative/irrelevant posts
Long-term trend
Aggregate daily counts per tag / domain and visualise
2. Data source options
Algolia’s HN Search API (recommended – no paging gymnastics): https://hn.algolia.com/api/v1/search_by_date?tags=story&numericFilters=points>100
Official Firebase API (more control but means loops):
• GET /v0/topstories.json → list of IDs
• GET /v0/item/<id>.json for each ID
The workflow below uses Algolia because it’s one HTTP call that returns rich JSON (title, url, points, comments, created_at_i…).
Cron Node
• Schedule: every hour (or once a day at 9:00).
4.2 Pull stories
HTTP Request Node
code
GET https://hn.algolia.com/api/v1/search_by_date
?tags=story
&numericFilters=created_at_i>{{$now-3600}}
&hitsPerPage=100
Response JSON path to the array: hits
4.3 Filter the raw feed
IF Node – keep only stories that pass your thresholds:
code
points >= 100
OR num_comments >= 50
OR (title CONTAINS 'AI' OR 'Rust' OR 'ML')
☞ Stories that fail go to the “else” output → do nothing.
4.4 Enrich & summarise (optional but powerful)
SplitInBatches Node (size 1–3) – so you don’t hit rate limits.
HTTP Request → Extract article text
• Use the URL from the story ({{$json["url"]}}).
• Combine with Mercury Parser API or [Heptabase Extractor] or simply skip if no URL.
OpenAI Node (Chat Model) – prompt example:
code
System: "You are an analyst. Provide a 3-sentence summary and one takeaway."
User: "{{ $json["text"] || $node["HTTP Request 2"].json["content"] }}"
Return: summary, takeaway.
4.5 Add trend statistics (optional)
Function Node – adds or updates a record in a lightweight DB (SQLite, Postgres, Supabase, etc.):
Import this JSON in n8n → Workflow → Import from Clipboard, then wire up the remaining nodes.
6. Tips & gotchas
• Rate limits: Algolia’s API is generous (10k req/day unauth) but keep ‑- especially if you add article scraping.
• Deduplication: store processed objectIDs in a simple DB or hash-set in Redis so you don’t alert twice.
• Costs: OpenAI usage can escalate; use prompt_tokens * stories as a guardrail.
• Experiment: your “valuable” threshold will change – make the filter values credentials or environment variables for quick tuning.
7. Where to go next?
Feed the summarised stories into a vector DB (Pinecone, Weaviate) → build a personal “Ask HN” bot.
Combine HN with other sources (Reddit r/programming, Lobsters) in the same workflow for wider coverage.
Use n8n’s Webhook trigger to let friends subscribe / unsubscribe by keyword.
Happy hacking, and may your feed be ever signal-to-noise optimised! 🚀
User
so you dont advise to use the specific N8N node for hacker news?
Assistant
You absolutely can use the built-in Hacker News node—there’s nothing “wrong” with it at all.
Whether I reach for it or for a plain HTTP Request usually comes down to what I need that day.
Below is a quick decision chart, then a mini-how-to if you do want to stay inside the dedicated node.
1. Built-in HN Node vs. DIY HTTP request
Hacker News node
Plain HTTP Request
Zero-config / quick start
✅ Just pick an operation (“Top Stories”)
❌ Need to paste URL
Access to every Algolia parameter (numericFilters, tags, etc.)
🔶 Partial (most common ones exposed)
✅ Anything the API supports
Paging control, custom headers, retry, auth
🔶 Limited
✅ Full control
Future n8n upgrades might break raw endpoints
✅ Node gets updated
🔶 You’ll have to adjust yourself
Needs an extra loop to fetch full items when you start with IDs
❌ Handles for you
🔶 You build the loop
You enjoy seeing “Hacker News” icon in the graph 😉
✅
❌
TL;DR
• Simple “gimme today’s top 30” → use the node, it’s fast and readable.
• Fancy filters (≥100 points and keyword x, created_after, etc.) or adding auth headers → raw HTTP is more flexible.
2. If you do want the Hacker News node
Below is a minimal workflow that replicates the earlier “insight feed” idea but uses only the HN node until the filtering step.
${epoch} is an expression you put in an Expression field like ={{ Math.floor(Date.now() / 1000) }}.
It gives you Unix seconds to build time filters.
The node already returns every story field (title, url, points, …), so no extra “Item Lists” step.
The IF combines numeric or regex keyword filters—tweak to taste.
3. Hybrid pattern (best of both worlds)
Many n8n users run:
• Hacker News node ➜ “topstories” IDs (lightweight)
• SplitInBatches ➜ HTTP Request for each ID (flexibility)
• Continue with the rest of the pipeline
That keeps the workflow visually clear (you did use “the HN node”) but still unlocks the full Firebase/Algolia endpoints when you want exotic filters.
4. Gotchas either way
Deduplication – store processed objectIDs (Redis, SQLite, …)
Rate limits – Algolia = 10k/day unauth; Firebase is lower but uncapped bursts per IP.
n8n node version – If you’re on an older self-host, the Hacker News node might not exist yet; then HTTP is your only option.
Bottom line
Use the dedicated node for speed & clarity, switch to raw HTTP (or mix both) when you need more control. The rest of the insight pipeline—summaries, Slack/Notion, trend DB—stays the same. 🚀