Hacker News Scraper
Pricing
Pay per usage
Go to Apify Store
Hacker News Scraper
Pricing
Pay per usage
Rating
0.0
(0)
Developer
Rajat Sharda
Maintained by CommunityActor 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:
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
max_items | Integer | No | 10 | The 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:
| Field | Type | Description |
|---|---|---|
id | Integer | The unique ID of the story item on Hacker News. |
title | String | The headline/title of the article. |
by | String | The Hacker News username of the submitter. |
score | Integer | The current upvote score of the article. |
time | Integer | Unix epoch timestamp of when the article was submitted. |
url | String | Direct URL link of the story (or discussions page if text-only). |
descendants | Integer | Total number of comments currently under the story. |
type | String | Type 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!