To extract valuable insights from Hacker News using n8n, follow this structured workflow. This approach automates fetching, filtering, and analyzing Hacker News data to identify trending topics, technologies, or discussions.
Step-by-Step Workflow in n8n
1. Fetch Top Stories from Hacker News API
Use the Hacker News JSON API to retrieve the latest top stories:
Keywords: Filter titles/URLs for terms like "AI", "blockchain", "startups".
Domain: Exclude/Include specific domains (e.g., medium.com, github.com).
Code Example:
javascript
// Filter stories with score > 200 and title containing "AI"
if (item.json.score > 200 && item.json.title.includes("AI")) {
return [item];
}
return [];
4. Enrich Data (Optional)
Enhance filtered stories with additional insights:
Node Type: HTTP Request or AI/ML Integration
Fetch article content from the story URL (if public) using an HTTP Request.
Use an NLP API (e.g., OpenAI, Google NLP) to summarize or categorize content.
Extract tags or sentiment analysis.
5. Output and Store Results
Send the curated insights to your preferred destination:
Options:
Email Digest: Use Email node to send daily summaries.
Google Sheets: Append rows to a spreadsheet using Google Sheets node.
Database: Store in Airtable, PostgreSQL, or MongoDB.
Slack: Post updates to a Slack channel via Slack node.
Example Workflow Diagram
plaintext
[Hacker News API (Top Stories)]
↓
[Loop Through Story IDs]
↓
[Fetch Story Details]
↓
[Filter by Score/Keywords]
↓
[Enrich with NLP (Optional)]
↓
[Send to Email/Spreadsheet]
Advanced Tips
Schedule the Workflow: Add a Cron node to run the workflow daily/weekly.
Rate Limiting: Use Delay nodes to avoid overwhelming the Hacker News API.
Error Handling: Add Catch nodes to handle failed requests gracefully.
Example Use Cases
Trending Tech Topics: Filter stories with keywords like "AI", "LLM", or "Quantum Computing".
Startup Radar: Track stories with "YC", "funding", or "startup".
Competitor Monitoring: Filter URLs from competitor domains (e.g., techcrunch.com).
By automating this workflow in n8n, you can systematically surface actionable insights from Hacker News without manual effort.
User
so you dont advise to use the specific N8N node for hacker news?
Assistant
You're absolutely right to question this! While n8n does not have an official built-in node specifically for Hacker News, you can still achieve the same results using the HTTP Request node (as outlined in my previous answer) or by creating a custom node if you prefer tighter integration. Here's the breakdown:
Why No Dedicated Hacker News Node?
As of now, n8n's core nodes do not include a specialized Hacker News node. Most community integrations rely on:
HTTP Request nodes for APIs like Hacker News.
Custom nodes built by users (e.g., via n8n's Node.js SDK).
Your Options for Integration
1. Use HTTP Request Nodes (Recommended for Simplicity)
This is the easiest and most flexible approach:
Pros:
No setup beyond n8n's built-in nodes.
Full control over API endpoints and filters.
Cons:
Requires manual configuration of URLs and data parsing.
Steps Recap:
Fetch top story IDs via https://hacker-news.firebaseio.com/v0/topstories.json.
Loop through IDs to get story details: https://hacker-news.firebaseio.com/v0/items/{id}.json.
Zapier/Make.com: These platforms have Hacker News integrations (but not n8n-native).
Custom Webhooks: Trigger n8n workflows via external services that poll Hacker News.
When to Use Each Approach
Use Case
Best Option
Quick insights (no coding)
HTTP Request nodes
Reusable, team-friendly workflow
Custom Hacker News node
Advanced analysis (NLP, etc.)
Combine HTTP + AI nodes
Final Note
If you’re comfortable with code and want to contribute, building a community Hacker News node for n8n would be a great addition! You can share it on n8n’s forum or GitHub. For most users, though, the HTTP Request method is the simplest path to valuable insights. 😊
Let me know if you'd like help building a custom node or refining filters!