Hacker News Scraper avatar

Hacker News Scraper

Pricing

from $0.09 / 1,000 results

Go to Apify Store
Hacker News Scraper

Hacker News Scraper

Scrape Hacker News stories, comments, Ask HN, Show HN, and polls. Search by keyword, filter by points or comments, sort by relevance or date. Get title, url, author, points, comment count, and timestamps as clean JSON. No login, no API key.

Pricing

from $0.09 / 1,000 results

Rating

0.0

(0)

Developer

Mangudäi

Mangudäi

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Share

Pull stories, comments, Ask HN, Show HN, and polls from Hacker News. Search by keyword, filter by points or comment count, and sort by relevance or date. No login, no API key.

What it does

The scraper reads the public Hacker News search API and returns one clean row per item. Point it at the front page for the current top stories, or run a keyword search across the full HN archive going back to 2007. It pages through results for you and can pull large date-ordered histories.

What you can pull

  • Front page stories, or a keyword search across all of Hacker News.
  • Filter to stories, comments, Ask HN, Show HN, or polls.
  • Minimum points and minimum comment count filters.
  • One or more authors.
  • Sort by relevance or newest first.

Input

  • query: search term. Leave empty to pull the front page or a whole content type.
  • contentType: front_page, story, comment, ask_hn, show_hn, poll, or all.
  • sortBy: relevance or date. Date sort can page past the 1,000-result search cap using time windows.
  • minPoints, minComments: numeric filters.
  • authors: usernames to restrict to.
  • maxItems: cap on total items collected.
  • proxyConfiguration: optional Apify Proxy settings.

Output

Each row includes the item id, type, title, url, author, points, comment count, creation time (ISO and Unix), story text or comment text, the parent and story ids for comments, the raw tags, and a direct link to the item on news.ycombinator.com.

Example row:

{
"id": "48865019",
"type": "story",
"title": "Apple sues OpenAI, accuses ex-employees of stealing trade secrets",
"url": "https://9to5mac.com/2026/07/10/apple-sues-openai-trade-secret-theft/",
"author": "stock_toaster",
"points": 895,
"numComments": 449,
"createdAt": "2026-07-10T20:47:09Z",
"hnUrl": "https://news.ycombinator.com/item?id=48865019"
}

Notes

Data comes from the public HN search API, which serves the same content you see on the site. Relevance search returns up to 1,000 results per query, a limit of the underlying API. For larger pulls, use date sort, which walks backward through time in windows.