Hacker News Scraper - Stories, Comments, Search & Users avatar

Hacker News Scraper - Stories, Comments, Search & Users

Pricing

from $0.15 / 1,000 result scrapeds

Go to Apify Store
Hacker News Scraper - Stories, Comments, Search & Users

Hacker News Scraper - Stories, Comments, Search & Users

Scrape Hacker News: full-text search since 2006, front page, Ask HN, Show HN, jobs, stories with all comments, user profiles. Points, comments, dates, URLs. No login. $0.15 per 1,000 results.

Pricing

from $0.15 / 1,000 result scrapeds

Rating

0.0

(0)

Developer

Gosoul Data

Gosoul Data

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

an hour ago

Last modified

Features

Limited permissions

Share

What does Hacker News Scraper do?

Hacker News Scraper extracts data from Hacker News (news.ycombinator.com) and exports it to Excel, CSV, JSON or your own tools. It works in four ways, alone or together:

  • 🔎 Search all of Hacker News since 2006 by keyword: stories, and comments too if you want them.
  • 📰 Live feeds with the current rank: front page (Top), New, Best, Ask HN, Show HN, Jobs.
  • 💬 Any story with its full comment thread, in reading order with the reply depth.
  • 👤 User profiles (karma, about, account date) plus their latest stories or comments.

It uses the official public Hacker News APIs. You don't need an account, cookies or proxies, so runs are fast, cheap and don't get blocked.

Hacker News Scraper example output: front page stories with rank, points, comments, date and site

What data can you get from Hacker News?

📰 Story title🔗 Article URL and site⬆️ Points (upvotes)
💬 Comment count👤 Author📅 Date (ISO)
🏆 Front-page rank📝 Text of Ask HN / Show HN posts🧵 Full comment threads
↪️ Reply depth and parent⭐ User karma🏷️ Type: story, Ask HN, Show HN, job, poll, comment

How to scrape Hacker News in 4 steps

  1. Fill in at least one field: keywords, feeds, story URLs or usernames.
  2. Set Max results and optional filters: Minimum points, Only items published after, Search in (stories, comments or both).
  3. Tick Also get comments of each story if you want the discussions too.
  4. Click Start, then download your data in Excel, CSV, JSON or HTML, or send it to Google Sheets, Slack or your app.

⬇️ Input example

{
"searchQueries": ["postgres", "your-brand"],
"feeds": ["top", "show"],
"storyUrls": ["https://news.ycombinator.com/item?id=8863"],
"usernames": ["pg"],
"maxItems": 100,
"searchType": "story",
"sort": "date",
"minPoints": 10,
"publishedAfter": "30 days",
"includeComments": false
}

⬆️ Output example

A story:

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

A comment:

{
"type": "comment",
"id": 8865,
"author": "dhouston",
"text": "oh, and a mac port is coming :)",
"createdAt": "2007-04-04T19:22:55Z",
"storyId": 8863,
"storyTitle": "My YC app: Dropbox - Throw away your USB drive",
"parentId": 8863,
"depth": 1,
"hnUrl": "https://news.ycombinator.com/item?id=8865"
}

Each result also has a source field (search: postgres, feed: top, user: pg...) so you always know why it was collected. Feed results have a rank, and profiles have karma, about and submissions.

What can you do with Hacker News data?

  • Brand and competitor monitoring: search your product or competitors with Date sort and published after: 24 hours, run it every day and get alerts in Slack or by email.
  • Launch tracking: follow your Show HN post, its rank, points and every comment.
  • Market and product research: read what developers say about a tool, a language or a category in thousands of comments.
  • Lead generation and hiring: collect "Who is hiring" threads and job posts, or find active people in a niche.
  • Content ideas and trends: see which topics and sites reach the front page with the most points.
  • AI and data science: build datasets of discussions for sentiment analysis, RAG or LLM training.

How much does it cost to scrape Hacker News?

$0.15 per 1,000 results (a story, a comment or a profile = 1 result). Examples:

  • The front page (30 stories) every day for a month: about $0.14.
  • 10,000 comments about a topic: $1.50.
  • Errors (unknown user, wrong URL) are free.

The Apify Free plan includes monthly credits, enough for tens of thousands of results.

Integrations

  • Google Sheets, Slack, email, Make, Zapier, n8n: send new results where your team works.
  • Schedules: run every hour or every day for monitoring.
  • API, Python and JavaScript SDKs, webhooks.
  • AI agents: use it from Claude, ChatGPT or Cursor through the Apify MCP server.

❓ FAQ

Do I need a Hacker News account or API key?

No. The Actor uses the official public Hacker News APIs (Firebase and Algolia search). No login and no proxy are needed.

All the way back to the first Hacker News posts in 2006. Use Only items published after to limit the period.

Can I get more than 1,000 search results?

Yes. With Sort: Date, the Actor moves through time automatically, so you can collect tens of thousands of stories or comments for a keyword.

How do I monitor my brand or my competitors?

Add your keywords, choose Sort: Date, Search in: Stories and comments, Only items published after: 24 hours, then create an Apify schedule that runs every day. Connect Slack or email to get the new mentions.

How do I get all the comments of a story?

Paste the story URL (https://news.ycombinator.com/item?id=...) into Stories to scrape with all comments. You get the story and up to Max comments per story comments with their depth and parent, in reading order.

Can I scrape "Who is hiring?" threads?

Yes. Paste the URL of the monthly "Ask HN: Who is hiring?" thread into Stories to scrape with all comments: each job post is one comment with its full text.

Why are points empty for comments?

Hacker News does not publish the score of comments, only of stories.

Are the front-page ranks live?

Yes. Feeds are read at the moment of the run, so rank is the position at that time. Run it on a schedule to track a story's rank over time.

Can I scrape deleted or flagged items?

No. Deleted and dead items are skipped, and they are not charged.

The Actor only collects public data through official public APIs. You are responsible for how you use it: respect privacy laws such as GDPR when you handle usernames and comments.

Other Actors you may like

Support

A field is missing or something does not work? Open an issue in the Issues tab and it will be fixed quickly.