Hacker News Search & Comment Threads Export
Pricing
from $0.40 / 1,000 results
Hacker News Search & Comment Threads Export
Search all of Hacker News - stories, comments, Show HN, Ask HN, jobs - by keyword, author, domain, date range and points via the official Algolia HN API. No 1,000-result cap, full comment threads with depth.
Pricing
from $0.40 / 1,000 results
Rating
0.0
(0)
Developer
Zac Vincent
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Features
Share
Hacker News Scraper: Search Stories, Comments, Show HN & Ask HN
Search all of Hacker News (stories, comments, Show HN, Ask HN, jobs and polls) by keyword, author, linked domain, date range, points and comment count. Export clean JSON, CSV or Excel, with full comment threads. It's built on the official Algolia HN Search API, so it's fast and stable and needs no proxies. $0.60 per 1,000 results.
- ✅ Every content type: stories, comments, Show HN, Ask HN, jobs, polls, the current front page, or everything
- ✅ No 1,000-result cap: Newest first pages through time windows, so you can export every mention of a keyword since 2007
- ✅ Full comment threads for each story, with
depth,parentIdandstoryId, ready for sentiment analysis or an LLM - ✅ Domain monitoring: match only the linked URL (e.g.
github.com/yourorgoryourcompany.com) - ✅ Filters: since/until ("7 days", "2026-01-01"), minimum points, minimum comments, author
- ✅ Multiple queries per run, deduplicated, with clean plain text (HTML and entities decoded)
- 💲 $0.60 per 1,000 results
What data does the Hacker News scraper return?
| Field | Meaning |
|---|---|
id, type | HN item ID; story, comment, job or poll |
title, url, domain | Story title and the linked page |
author, points, numComments, createdAt | Engagement and timing |
text | Story or comment body as plain text |
storyId, storyTitle, parentId, depth | Thread structure (depth 1 = top-level reply) |
isShowHN, isAskHN, hnUrl, query | Flags, permalink and the query that matched |
How to search Hacker News and export results
- Add Search queries: product names, competitors, technologies or domains (
apify,vector database,stripe.com). - Pick a Content type (stories, comments, Show HN…) and where to match the query (everywhere, title only or linked URL only).
- Set Posted since (
30 days,2026-01-01), Minimum points and Max results per query. - Turn on Include full comment threads to also get every comment on the stories found.
- Click Start, or schedule a daily run for brand monitoring.
Input example
{"queries": ["apify", "web scraping", "playwright"],"type": "story","since": "30 days","minPoints": 10,"maxResults": 500,"includeComments": true,"maxCommentsPerStory": 100}
To monitor launches that link to your site: {"queries": ["yourcompany.com"], "searchIn": "url", "type": "all", "since": "7 days"}
Output example (real run)
{"id": 50441350,"type": "story","title": "Show HN: Aircad – Professional drafting and 3D modeling in the browser","url": "https://aircad.com","domain": "aircad.com","author": "peetle","points": 96,"numComments": 48,"createdAt": "2026-11-10T15:01:19Z","text": "Aircad is a professional CAD system running in the browser with deep AI integration. It includes professional grade drafting and documentati…","storyId": 50441350,"storyTitle": "Show HN: Aircad – Professional drafting and 3D modeling in the browser","parentId": null,"depth": 0,"isShowHN": true,"isAskHN": false,"hnUrl": "https://news.ycombinator.com/item?id=50441350","query": "web scraping"}
Comment rows have the same fields, with type: "comment", the comment text, storyId/storyTitle, parentId and depth.
Use cases
- Brand and competitor monitoring: daily runs that send new mentions to Slack, email or Google Sheets
- Launch analytics: see how your Show HN did and export every comment for analysis
- Market and trend research: track how often a technology is discussed over months or years
- Sentiment analysis and AI datasets: threaded developer discussions as clean text
- Hiring and lead research: Ask HN threads and job posts filtered by keyword
Why use this Actor?
| This Actor | Front-page scrapers | HN website search | |
|---|---|---|---|
| Full history, no 1,000 cap | ✅ (newest-first paging) | ❌ front page only | Capped |
| Full comment threads with depth | ✅ | Rarely | ❌ |
| Linked-domain monitoring | ✅ | ❌ | Manual |
| Output | JSON, CSV, Excel, API | Varies | Web page |
Use it from AI agents (MCP) and code
MCP (Claude, Cursor, VS Code, ChatGPT and other MCP clients). Add this Actor as a single tool through Apify's hosted MCP server. You sign in with your Apify account on first use:
{"mcpServers": {"apify-hacker-news-search": {"url": "https://mcp.apify.com?tools=ponderable_ironwork/hacker-news-search"}}}
The tool appears as ponderable_ironwork--hacker-news-search. Try a prompt like: "Find every Hacker News story and comment that mentioned our product in the last 30 days and summarize the sentiment."
API (one call, results back as JSON). Replace <APIFY_TOKEN> with your token from Apify Console → Settings → API & Integrations:
curl -X POST "https://api.apify.com/v2/acts/ponderable_ironwork~hacker-news-search/run-sync-get-dataset-items?token=<APIFY_TOKEN>" \-H "Content-Type: application/json" \-d '{"queries": ["apify"], "type": "all", "since": "30 days", "maxResults": 200}'
The Apify JavaScript and Python clients, schedules, webhooks and the Make, n8n and Zapier integrations work too. Every run's dataset downloads as JSON, CSV, Excel or XML.
Pricing
$0.60 per 1,000 results (stories and comments each count as one result; lower on higher Apify plans). A per-query SUMMARY (matches, saved, comments) is saved in the key-value store.
FAQ
Where does the data come from? From the public HN Search API by Algolia, which indexes every public Hacker News item. No login is needed and nothing private is collected.
Why is the relevance sort capped? Algolia returns at most 1,000 hits per query when sorting by relevance. Use Newest first for complete exports.
More data tools from this developer
- Career Page Jobs API: every open job from Greenhouse, Lever, Ashby, Workable, Recruitee & Workday boards, $1.50 per 1,000 jobs
- Bulk PageSpeed Insights & Core Web Vitals: Lighthouse scores and real-user LCP/INP/CLS for hundreds of URLs, $3.00 per 1,000 audits
- Sitemap URL Extractor: every URL from a site's XML sitemaps with lastmod and hreflang, $0.50 per 1,000 URLs
- Wayback Machine Snapshots & Archived URLs: capture history and every archived URL of a domain, $1.00 per 1,000 results
- Bulk Domain Availability, RDAP WHOIS & DNS: availability, registrar, expiry, MX/SPF/DMARC, $1.00 per 1,000 domains
- OpenAlex Academic Papers Search: 250M+ papers with citations, abstracts and BibTeX, $1.00 per 1,000 papers
- RSS, Atom & Podcast Feed Reader: any feed to clean JSON with auto-discovery, $0.80 per 1,000 items
Found a bug or need a field? Open an issue on the Issues tab. Fixes usually ship within days.