Hacker News Search & Comment Threads Export avatar

Hacker News Search & Comment Threads Export

Pricing

from $0.40 / 1,000 results

Go to Apify Store
Hacker News Search & Comment Threads Export

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

Zac Vincent

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Categories

Features

Limited permissions

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, parentId and storyId, ready for sentiment analysis or an LLM
  • ✅ Domain monitoring: match only the linked URL (e.g. github.com/yourorg or yourcompany.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?

FieldMeaning
id, typeHN item ID; story, comment, job or poll
title, url, domainStory title and the linked page
author, points, numComments, createdAtEngagement and timing
textStory or comment body as plain text
storyId, storyTitle, parentId, depthThread structure (depth 1 = top-level reply)
isShowHN, isAskHN, hnUrl, queryFlags, permalink and the query that matched

How to search Hacker News and export results

  1. Add Search queries: product names, competitors, technologies or domains (apify, vector database, stripe.com).
  2. Pick a Content type (stories, comments, Show HN…) and where to match the query (everywhere, title only or linked URL only).
  3. Set Posted since (30 days, 2026-01-01), Minimum points and Max results per query.
  4. Turn on Include full comment threads to also get every comment on the stories found.
  5. 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 ActorFront-page scrapersHN website search
Full history, no 1,000 cap✅ (newest-first paging)❌ front page onlyCapped
Full comment threads with depth✅Rarely❌
Linked-domain monitoring✅❌Manual
OutputJSON, CSV, Excel, APIVariesWeb 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

Found a bug or need a field? Open an issue on the Issues tab. Fixes usually ship within days.