Hacker News Scraper avatar

Hacker News Scraper

Pricing

from $0.30 / 1,000 items

Go to Apify Store
Hacker News Scraper

Hacker News Scraper

Search and export Hacker News stories, comments, Ask HN, Show HN and job posts: title, URL, points, comment count, author, date and text. Filter by front page, author, points and date range.

Pricing

from $0.30 / 1,000 items

Rating

0.0

(0)

Developer

Danial Maqbool

Danial Maqbool

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

13 days ago

Last modified

Features

Limited permissions

Share

Search and export Hacker News (news.ycombinator.com) stories, comments, Ask HN, Show HN, job posts and polls to JSON, CSV or Excel. Filter by keyword, front page, author, minimum points, minimum comments and date range, and get the title, linked URL and domain, points, comment count, author, date and full text.

No login, API key or proxy needed.

What you can use it for

  • Brand and product monitoring: see every time your company, product or competitor is discussed on HN.
  • Launch tracking: follow Show HN posts and their points and comments over time.
  • Tech trend research: measure how often a technology is discussed by year or month.
  • Hiring and job research: export job posts and "Who is hiring" comments.
  • Datasets for AI: collect comment threads as clean text for analysis or model training.

What data you get

FieldDescription
id, type, hnUrlHN item ID, item type and discussion link
titleStory title (for comments, the parent story's title)
url, domainThe linked article and its domain
authorHN username
points, numCommentsScore and number of comments
createdAtPost time (ISO 8601)
textStory text or comment as plain text
storyId, parentIdThread context for comments
isFrontPage, query, scrapedAtFront-page flag, matching query, scrape time

How to use it

  1. Add Search queries, or leave them empty to list everything that matches your filters.
  2. Pick the Content type (stories, comments, Ask HN, Show HN, jobs, polls or everything).
  3. Choose the Sort and any filters: front page only, author, minimum points or comments, date range.
  4. Click Start and export from the Output tab.

Example input

{
"queries": ["rust", "postgres"],
"contentType": "story",
"sortBy": "date",
"minPoints": 50,
"dateFrom": "2026-01-01",
"maxItemsPerQuery": 500
}

Front page right now: leave queries empty, set Front page only and sort by date.

Example output

One record from a real run:

{
"query": "web scraping",
"id": "22180559",
"type": "story",
"title": "Congrats! Web scraping is legal! (US precedent)",
"url": "https://parsers.me/us-court-fully-legalized-website-scraping-and-technically-prohibited-it/",
"domain": "parsers.me",
"author": "ehurynovich",
"points": 1057,
"numComments": 388,
"createdAt": "2020-01-29T14:06:37.000Z",
"text": null,
"storyId": "22180559",
"parentId": null,
"hnUrl": "https://news.ycombinator.com/item?id=22180559",
"isFrontPage": false,
"scrapedAt": "2026-11-12T17:07:43.468Z"
}

Pricing

Pay per event: $0.30 per 1,000 items saved, plus a tiny standard start fee and Apify platform usage (usually a fraction of a cent per run). Set Max cost per run to cap spending.

Tips and limits

  • Each query returns up to 1,000 items. To go further, split by date range (for example one run per month) or use more specific queries.
  • Points and comment counts are refreshed by the search index regularly, so very recent posts may lag a little.
  • A RUN_SUMMARY record shows total matches and items saved per query.

FAQ

Is this the official Hacker News API? It uses the public HN Search API by Algolia, which indexes all Hacker News items and supports full-text search and filters.

Can I monitor new posts that mention my product? Yes. Schedule it daily with Newest first and a recent Posted on or after date.

This Actor reads public Hacker News data through the public HN Search API. Use the data in line with Hacker News' guidelines, privacy laws and your own legitimate purpose.