Hacker News Scraper avatar

Hacker News Scraper

Pricing

$0.50 / 1,000 results

Go to Apify Store
Hacker News Scraper

Hacker News Scraper

Scrape Hacker News stories, comments, and jobs from front page lists, keyword search, user profiles, or item links: title, link, points, comments, author, and time. No login needed.

Pricing

$0.50 / 1,000 results

Rating

0.0

(0)

Developer

Donjuan

Donjuan

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Categories

Features

Limited permissions

Share

Hacker News Scraper: stories, comments, and jobs from lists, search, and profiles

Hacker News Scraper collects stories, comments, Ask HN and Show HN posts, and job ads from Hacker News. Scrape the front page and the other lists, search all of Hacker News by keyword and date, take everything a user has posted, or open a single story. For every item you get the title, external link and its domain, text, points, comment count, author, and post time. Turn on comments to get each story's full discussion, one item per comment, with its parent and depth.

You don't need a Hacker News account, an API key, or any code. Pick lists, add search terms or links, press Start, and download the results as JSON, CSV, Excel, XML, or HTML. Or pull them into your app through the Apify API.

What can you do with Hacker News data?

  • Track what tech people talk about. Save the front page every hour and see which stories climb, how fast, and how much discussion they draw.
  • Monitor your product or company. Search for your name, domain, or competitors and catch every story and comment that mentions them.
  • Analyze discussions. Pull the full comment tree of a launch or a Show HN post and study the feedback.
  • Collect job ads. Scrape the jobs list or search "Who is hiring" threads to see which companies hire and for what.
  • Build datasets for research. Clean text, timestamps, and scores make good input for topic, trend, or sentiment analysis.

What data does Hacker News Scraper extract?

GroupFields
Itemtype (story, comment, job, poll), ID, Hacker News URL, title, text
Linkexternal URL, domain
Engagementpoints, number of comments
Authorusername, profile URL
Timepost time (ISO 8601, UTC)
Threadsfor comments: parent ID, story ID, and depth in the thread

How to scrape Hacker News

  1. Open the actor and go to the Input tab.
  2. Pick lists, add search queries, or paste Hacker News links. You can mix all three.
  3. Set Items per source, and turn on Include comments if you want the discussions.
  4. Press Start. When the run finishes, open the Output tab to preview the table, or press Export to download the data.

Input

FieldTypeDescription
listsarray of stringstop (front page), new, best, ask, show, job.
searchQueriesarray of stringsSearch terms. Each query returns up to 1000 results.
searchTypestringWhat search and profiles return: story, comment, ask_hn, show_hn, job, poll, or all.
searchSortstringrelevance or date (newest first).
since, untilstringLimit search and profile results to this window. Use 2026-10-01 or 2026-10-01T00:00:00Z.
startUrlsarrayLinks to items (item?id=8863), user profiles (user?id=pg), or list pages (/newest, /ask, /show, /jobs).
maxItemsintegerThe maximum number of stories or results from each source. Comments come on top.
includeCommentsbooleanAlso collect the full comment thread of every story.
maxCommentsPerItemintegerThe maximum number of comments from each story.

Example input:

{
"lists": ["top"],
"searchQueries": ["golang"],
"searchSort": "date",
"since": "2026-01-01",
"maxItems": 50,
"includeComments": true,
"maxCommentsPerItem": 100
}

Output

One dataset item per story, comment, or job:

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

Comments carry text, parentId, storyId, and depth instead of a title and link.

Tips and limits

  • Search stops at 1000 results per query. To go further back, run the same query with consecutive since and until windows.
  • Comment scores are private. Hacker News shows points only for stories, so comments always have points: 0.
  • Lists hold up to 500 stories (job up to 200), as Hacker News serves them.
  • Deleted and flagged items are skipped.

The scraper reads only public data through Hacker News's official API and the Algolia HN Search API, the same sources many open source tools use. Personal data such as usernames is protected by laws like the GDPR, so collect it only when you have a legitimate reason, and consult a lawyer if you are unsure.