Hacker News Scraper: Stories, Comments, Show HN & Jobs avatar

Hacker News Scraper: Stories, Comments, Show HN & Jobs

Pricing

$0.20 / 1,000 item scrapeds

Go to Apify Store
Hacker News Scraper: Stories, Comments, Show HN & Jobs

Hacker News Scraper: Stories, Comments, Show HN & Jobs

Search Hacker News stories, comments, Ask HN, Show HN and job posts by keyword, date, points or author. Uses the official HN search API: fast, reliable, no proxy or login.

Pricing

$0.20 / 1,000 item scrapeds

Rating

0.0

(0)

Developer

Pandapi

Pandapi

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

21 hours ago

Last modified

Features

Limited permissions

Share

Search and export Hacker News data: stories, comments, Ask HN, Show HN, job posts, polls and the current front page. Filter by keyword, date range, minimum points, minimum comments or author.

It uses the official public Hacker News search API (by Algolia), so it is fast, cheap and reliable: no browser, no proxy, no login, no blocking.

What you can do with it

  • Track mentions of your product, company or competitors on Hacker News
  • Find launches: every Show HN post about a topic, with points and comment counts
  • Research trends: all stories about "LLM", "Rust" or "remote work" over a date range
  • Collect job posts from HN (YC company job ads)
  • Build datasets of comments for sentiment analysis or AI training
  • Monitor daily: schedule it with "Newest first" and a "From date" to get only new items

Input

FieldWhat it doesDefault
Search queryKeywords. Leave empty for the latest items.empty
Content typeStories, Comments, Ask HN, Show HN, Job posts, Polls, Front page, EverythingStories
Sort byNewest first (no limit) or Most relevant (max 1,000)Newest first
Minimum points / commentsQuality filternone
From / To dateDate range (YYYY-MM-DD)none
Author usernameOnly items by this HN usernone
Max itemsHow many items to return100

Example input:

{ "searchQuery": "postgres", "contentType": "show_hn", "minPoints": 20, "dateFrom": "2026-01-01", "maxItems": 500 }

Unlike many HN scrapers, "Newest first" mode is not capped at 1,000 results: it walks back through time until it reaches your max items or date range.

Output

One row per item:

{
"id": "50454951",
"type": "story",
"title": "Show HN: ...",
"url": "https://github.com/...",
"text": "Plain text body (Ask HN, Show HN and comments)",
"textHtml": "<p>Original HTML body</p>",
"author": "username",
"points": 61,
"numComments": 26,
"createdAt": "2026-11-11T16:00:50Z",
"storyId": 50454951,
"parentId": null,
"isShowHN": true,
"isAskHN": false,
"hnUrl": "https://news.ycombinator.com/item?id=50454951"
}

Export as JSON, CSV, Excel or HTML, or use the API.

Pricing

Pay only for results: $0.30 per 1,000 items. No start fee. 100 items cost $0.03. You can set a maximum spend per run, and the scraper stops cleanly when it is reached.

Notes

  • Data comes from Hacker News's public search API. Points and comment counts are refreshed by the API every few minutes.
  • Comment title and url hold the parent story's title and link.
  • Questions or a missing feature? Open an issue on the Issues tab and I'll answer quickly.

Responsible use

This tool reads Hacker News through the public, official HN search API (Algolia). Usernames and comments are public posts: use them for research, analysis and monitoring, not to contact or profile individual people, and respect the authors' copyright when republishing text. Want something removed from a dataset you got from us? Open an issue on the Issues tab.

More from Pandapi 🐼

Pandapi makes friendly, no-nonsense data tools: simple input, clean output, and fair pay-per-result prices. Found a bug or need a feature? Open an issue on the Issues tab and we answer fast.