Hacker News Scraper avatar

Hacker News Scraper

Pricing

Pay per usage

Go to Apify Store
Hacker News Scraper

Hacker News Scraper

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Rajat Sharda

Rajat Sharda

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

0

Monthly active users

12 hours ago

Last modified

Categories

Share

A robust, ultra-fast, and reliable scraper designed to retrieve top stories, tech articles, scores, authors, and link destinations from Hacker News (news.ycombinator.com). Excellent for tech market research, news aggregators, and automated AI newsletters.

Features

  • Top Stories Fetching: Extracts the top-ranked articles directly from HN's active front page.
  • Full Story Metadata: Captures titles, authors, scores, creation timestamps, discussion comment counts, and direct external destinations.
  • Fast & Lightweight: Leverages clean, official API structures for lightning-fast scraping times and 100% uptime.
  • Pay-Per-Event (PPE) Pricing: Charged strictly per article scraped, offering perfect scale-to-zero pricing.

Input Parameters

The Actor accepts the following input in JSON format:

FieldTypeRequiredDefaultDescription
max_itemsIntegerNo10The maximum number of HN articles to scrape in a single run.

Example Input

{
"max_items": 5
}

Output Schema

The scraped data is pushed directly to your default Apify dataset in JSON format with the following fields:

FieldTypeDescription
idIntegerThe unique ID of the story item on Hacker News.
titleStringThe headline/title of the article.
byStringThe Hacker News username of the submitter.
scoreIntegerThe current upvote score of the article.
timeIntegerUnix epoch timestamp of when the article was submitted.
urlStringDirect URL link of the story (or discussions page if text-only).
descendantsIntegerTotal number of comments currently under the story.
typeStringType of item (e.g. story).

Example Output

{
"id": 48920192,
"title": "Why I still use Vim in 2026",
"by": "techguy23",
"score": 452,
"time": 1783185000,
"url": "https://example.com/vim-2026",
"descendants": 142,
"type": "story"
}

Pricing Configuration

This Actor utilizes Apify's Pay-Per-Event (PPE) monetization model.

  • Primary Event: article-scraped
  • Cost: $0.003 per successfully scraped Hacker News article.
  • You only pay for what is successfully extracted and delivered to your dataset!