Hacker News Scraper - Stories, Comments, Show HN & Ask HN avatar

Hacker News Scraper - Stories, Comments, Show HN & Ask HN

Pricing

from $0.16 / 1,000 items

Go to Apify Store
Hacker News Scraper - Stories, Comments, Show HN & Ask HN

Hacker News Scraper - Stories, Comments, Show HN & Ask HN

Hacker News scraper (HN scraper): Hacker News search for stories and comments by keyword, points and date; front page, Show HN, Ask HN, Hacker News jobs; full Hacker News comments threads; user karma. $0.20 per 1,000 items. Ycombinator news data.

Pricing

from $0.16 / 1,000 items

Rating

0.0

(0)

Developer

Leping Gong

Leping Gong

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Features

Limited permissions

Share

Hacker News Scraper — Stories, Comments, Front Page, Show HN & Users

Scrape Hacker News (news.ycombinator.com) fast and cheap. Search stories and comments by keyword, points, comment count, date and author, get the front page, New, Best, Ask HN, Show HN and Jobs lists with ranks, full comment threads, and user karma. Built on the official HN API and the Algolia HN Search API — no browser, no blocking, no login.

Why this scraper?

  • 🔎 Search all of HN history — stories, comments, Ask HN, Show HN, jobs, polls. Filter by min points, min comments, date range and author. Sort by relevance or date
  • ♾️ No 1,000-result cap — date-sorted searches walk back in time, so you get every match (e.g. all stories mentioning your product since 2015)
  • 📰 Live lists — front page (top), new, best, Ask HN, Show HN, jobs with rank, points and comment counts
  • 💬 Comment threads — every comment of a story with author, depth and parent, nested replies flattened
  • 👤 Users — karma, about, account creation date, number of submissions
  • 🧹 Clean plain text (HTML removed, links kept) or original HTML
  • ⚡ $0.20 per 1,000 items, thread comments $0.10 per 1,000, no start fee, no proxy needed
  • 💸 Deleted items and unknown users return a free error row

Input

{
"searchQueries": ["rust", "openai"],
"contentType": "story",
"sort": "date",
"maxItemsPerQuery": 2000,
"minPoints": 10,
"dateFrom": "2025-01-01",
"lists": ["top", "show"],
"maxCommentsPerStory": 20,
"itemUrls": ["https://news.ycombinator.com/item?id=8863"],
"users": ["pg"]
}

Output

Story:

{
"type": "story",
"id": 8863,
"title": "My YC app: Dropbox - Throw away your USB drive",
"url": "http://www.getdropbox.com/u/2/screencast.html",
"domain": "getdropbox.com",
"hnUrl": "https://news.ycombinator.com/item?id=8863",
"author": "dhouston",
"points": 104,
"numComments": 71,
"createdAt": "2007-04-04T19:16:40Z"
}

Comment:

{"type": "comment", "id": 9007, "author": "vlad", "text": "Drew, this is awesome! ...", "createdAt": "2007-04-05T01:48:11Z", "parentId": 8865, "storyId": 8863, "storyTitle": "My YC app: Dropbox - Throw away your USB drive", "depth": 2}

User: {"type": "user", "username": "pg", "karma": 157316, "about": "Bug fixer.", "createdAt": "2006-10-09T18:21:32Z", "submissionsCount": 15000}

Use cases

  • Brand & competitor monitoring — every HN mention of your product, domain or competitors (schedule daily runs with a date filter)
  • Developer sentiment & market research — what developers say about a tool, language or startup
  • Trend analysis — top stories by topic and points over time
  • Launch tracking — Show HN posts, their points and comments
  • Hiring & jobs data — HN job posts and "Who is hiring" comment threads
  • AI & NLP datasets — clean comment text with threads for LLM training and RAG
  • Lead research — users with karma and bios

Limits

Relevance-sorted search returns at most 1,000 items per query (Algolia limit) — use Date sort for more. Lists contain what HN currently shows (up to 500 for top/new/best).

Pricing

  • Item — per story, search comment or user row
  • Thread comment — per comment row from a story's comment thread

Discounts for Apify Silver, Gold and higher plans.

How to use Hacker News Scraper

  1. Click Try for free (the Apify free plan includes monthly credit).
  2. Fill in the input — the example input is already pre-filled, so you can just press Start.
  3. Download results as JSON, CSV, Excel or HTML, or open them in the dataset table view.

Integrations & API

  • API — run it from Python, Node.js or any language with the Apify API / apify-client and get results as JSON.
  • Schedules & monitoring — run it hourly, daily or weekly and get only fresh data.
  • Zapier, Make, n8n, Google Sheets, Slack, webhooks — send results to your tools automatically.
  • AI agents (MCP) — use it from Claude, ChatGPT, Cursor or any MCP client through the Apify MCP server.

FAQ

Do I need an API key, login or cookies? No. It reads publicly available data only.

How much does it cost? You pay only for results (see the Pricing tab), no start fee. Error rows are free. Higher Apify plans get automatic discounts.

Is it legal? It collects public data only. Make sure your use complies with the website's terms and data-protection laws (e.g. GDPR) — don't collect personal data without a legal basis.

Something doesn't work or you need a feature? Open an issue in the Issues tab — we usually reply within a day.

More from ScrolahData