Hacker News Scraper avatar

Hacker News Scraper

Pricing

from $0.10 / 1,000 item saveds

Go to Apify Store
Hacker News Scraper

Hacker News Scraper

Search Hacker News stories and comments by keyword, type, date, points and author. Uses the official Hacker News Search API, so it is fast and returns structured results.

Pricing

from $0.10 / 1,000 item saveds

Rating

0.0

(0)

Developer

jake mcclure

jake mcclure

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 days ago

Last modified

Features

Limited permissions

Share

Search Hacker News and export the results. Give it keywords and it returns matching stories and comments with their points, comment counts, authors, dates and links.

It uses the official Hacker News Search API, so results are structured, fast, and not limited to what is on the front page today.

Use it to:

  • monitor mentions of your product, company or competitors
  • find the most discussed stories on a topic over any period
  • collect Ask HN and Show HN posts, or job posts, for research
  • gather comments on a subject for analysis

Input

FieldWhat it does
KeywordsOne search per line. Leave empty to get everything of the chosen type, newest first.
What to searchStories, comments, both, Ask HN posts, Show HN posts or job posts.
Maximum items per searchStop after this many results for each line of keywords. Default 100.
OrderNewest first, or most relevant first.
Posted from / Posted untilOnly items posted within this date range.
Minimum pointsOnly items with at least this many points.
Minimum commentsOnly stories with at least this many comments.
AuthorOnly items posted by this username.
{
"queries": ["apify", "web scraping"],
"type": "story",
"minPoints": 50,
"dateFrom": "2026-01-01",
"maxItemsPerQuery": 500
}

Output

One record per story or comment:

{
"query": "web scraping",
"id": "50350302",
"type": "story",
"storyType": null,
"title": "AI agents hallucinate prices: LLM grounding with live data",
"url": "https://blog.apify.com/llm-grounding-with-live-data/",
"text": null,
"author": "username",
"points": 15,
"commentCount": 0,
"createdAt": "2026-11-03T10:41:28.000Z",
"storyId": null,
"storyTitle": null,
"storyUrl": null,
"parentId": null,
"hnUrl": "https://news.ycombinator.com/item?id=50350302",
"scrapedAt": "2026-11-11T20:30:00.000Z"
}
  • type is story, comment, job or poll. storyType is ask or show for Ask HN and Show HN posts.
  • text is the body of a comment or a text post, as plain text.
  • For comments, storyId, storyTitle and storyUrl identify the story, and parentId the item replied to.
  • hnUrl opens the item on Hacker News.

A SUMMARY record in the run's key-value store lists, for each search, how many items matched in total and how many were saved.

Pricing

Pay per result. You are charged once for each story or comment saved to the dataset, at the per-result price shown on this page.

Searches that match nothing cost nothing. The run stops as soon as it reaches the maximum charge you set for it.

Limits

  • Newest-first searches can return any number of results. Most-relevant-first searches are limited to 1,000 results each by the API.
  • Keyword search matches the title, text and link of an item. It is a text search, not an exact-phrase search.
  • Points and comment counts are as of the time of the run.
  • Searches run one after another with a short pause, to stay well within the API's limits.

Is this allowed?

The Actor uses the official Hacker News Search API, which is provided for searching Hacker News programmatically, without logging in. Items are returned with the public username that posted them. You are responsible for how you use the data.