Go to example tasks

Hacker News front page with top comments

Get the current Hacker News front page (30 stories) with points, comment counts and links, plus up to 20 top comments per story in thread order.

Try for free
Hacker News Scraper: Stories, Comments & Search
Hacker News Scraper: Stories, Comments & Searchfjordlabs/hacker-news
Type
Rank
Title
Points
+8 fields
Text
Number
Boolean
List
Object

Input

What to scrape:top
Max stories (or search results):30
Include comments:true
Max comments per story:20
Max comment depth:2

Output fields

Type
Rank
Title
Points
Comments count
Author
Created at
Depth
Text
Url
Hn url
Error

How it works

Sign up on Apify or log in

The Hacker News Scraper: Stories, Comments & Search Actor is ready to run with the inputs already set for "Hacker News front page with top comments". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Hacker News front page with top comments" task

The Hacker News Scraper: Stories, Comments & Search Actor will start running based on the input automatically. You can also change all the input fields, like what to scrape, max stories (or search results), and more, to match your specific use case.

Receive the "Hacker News front page with top comments" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as type, rank, title, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Hacker News front page with top comments" task via API.

Image

Integrate "Hacker News front page with top comments" into your workflow

Connect "Hacker News front page with top comments" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay

Frequently asked questions

The Hacker News Scraper task returns the type, rank, title, points, comments count, author, created date, comments' depth, text, and URLs for stories and comments.

The Hacker News Scraper task fetches up to 30 stories from the current Hacker News front page.

Only public HN usernames as authors. The Actor doesn't scrape user profiles, karma or about texts, and it reads HN's public APIs rather than news.ycombinator.com pages.

Up to 20 per story, two levels deep in this example. Comments are fetched level by level, so you get the top-level discussion first, in HN's ranking order within each thread.

The Hacker News Scraper task does not require an API key; it utilizes Hacker News' official APIs directly.

$0.0002 per story and $0.0001 per comment plus Apify's $0.00005 run start: about $0.07 for this front page with comments. Error rows are free. Schedule it daily in Apify Console.

Yes, the Hacker News Scraper task converts HTML into clean plain text for more readable output.