Go to example tasks

HN Stories + Comment Trees for LLM Datasets

Export Hacker News stories with full nested comment trees — clean structured discussions for RAG, training, and AI data pipelines.

Try for free
Hacker News Scraper
Hacker News Scraperconstructive_calm/hacker-news-scraper
ID
Title
Author
Points
+3 fields
Text
Number
Boolean
List
Object

Input

Scraping mode(required):topstories
Max items:5
Include comments:true
Max comment depth:3

Output fields

ID
Title
Author
Points
Comment count
HN thread
Comments

How it works

Sign up on Apify or log in

The Hacker News Scraper Actor is ready to run with the inputs already set for "HN Stories + Comment Trees for LLM Datasets". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "HN Stories + Comment Trees for LLM Datasets" task

The Hacker News Scraper Actor will start running based on the input automatically. You can also change all the input fields, like scraping mode, max items, and more, to match your specific use case.

Receive the "HN Stories + Comment Trees for LLM Datasets" 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 ID, title, author, 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 "HN Stories + Comment Trees for LLM Datasets" task via API.

Image

Integrate "HN Stories + Comment Trees for LLM Datasets" into your workflow

Connect "HN Stories + Comment Trees for LLM Datasets" 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