Hacker News Stories Scraper avatar

Hacker News Stories Scraper

Pricing

from $19.00 / 1,000 results

Go to Apify Store
Hacker News Stories Scraper

Hacker News Stories Scraper

Scrapes Hacker News stories by category and returns each story as a flat row with title, URL, score, author, and comment count.

Pricing

from $19.00 / 1,000 results

Rating

0.0

(0)

Developer

ParseForge

ParseForge

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

3 days ago

Last modified

Share

ParseForge

Hacker News Stories Scraper

Scrape Hacker News stories from any category, up to a million per run. Each story comes with its title, URL, score, author, and comment count. No login or API key. Export to CSV, JSON, Excel, or XML.

Hacker News has no official API for its story lists, and scraping it yourself means handling rate limits and HTML parsing. This reads the public story feeds directly, filtered by category, and returns each match in one fixed schema.

Who uses itWhat they scrape Hacker News for
Market researchersWhich topics the tech community is discussing this week
Product managersWhat features or pain points developers mention most
Content marketersWhich headlines and domains get the most traction
Data analystsA clean dataset of stories for trend analysis
Job seekersThe latest job postings from Y Combinator startups

What it does

This Actor collects Hacker News stories by category and returns each one as a flat row.

  • ๐Ÿ“Š Computed signals: story score, comment count, and rank position.
  • ๐Ÿ” Category filters: top, new, best, ask, show, and job stories.
  • โšก Fast collection: up to a million stories per run, no API key needed.
  • ๐Ÿ“ Multiple exports: CSV, JSON, Excel, and XML.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

What you can do with Hacker News data

๐Ÿ“ˆ Track topics and trends.

A market researcher runs the Actor daily on the top stories category to see which technologies and companies are gaining attention.

๐Ÿง  Understand developer pain points.

A product manager scrapes Ask HN stories to identify common problems developers face and prioritize feature development.

๐Ÿ“ฐ Curate content for a newsletter.

A content marketer collects the best stories each morning and selects the most relevant ones for a daily tech newsletter.

๐Ÿ’ผ Find startup jobs.

A job seeker scrapes job stories to get a list of current openings at Y Combinator startups.

Why choose this scraper

What you get
No API keyScrape public story feeds without registration or OAuth.
Fixed schemaEvery story returns the same fields, ready for analysis.
High volumeCollect up to a million stories in a single run.
Flexible categoriesTop, new, best, ask, show, and job stories.

How it compares

This Actor focuses on story lists with a simple category selector and high volume, while the competitors below offer additional features like comments or multi-source aggregation.

FeatureParseForgeHacker News DataTrends Aggregator
Story categories (top, new, best, ask, show, job)YesYesNot listed
Comments scrapingNot listedYesNot listed
Date range scanningNot listedYesNot listed
Multi-source aggregation (Reddit, GitHub, etc.)Not listedNot listedYes
No API key requiredYesNot listedYes
Up to 1,000,000 stories per runYesNot listedNot listed

Configure the run

Drive the Actor from story categories, and set a maximum number of stories to collect per run. The Input tab lists every parameter.

A first run with the defaults:

{
"maxItems": 10
}

A larger pull:

{
"maxItems": 200
}

Pricing

Pay-per-result: $0.021 per result collected. You pay only for the results written to your dataset.

Results collectedApproximate cost
100 results$2.10
1,000 results$21.00
10,000 results$210.00

New Apify accounts start with $5 in free credit.

Free users

Free-plan runs return up to 10 results as a preview. Upgrade your Apify plan to collect up to 1,000,000 results per run.

Run it

  1. Create a free Apify account with $5 in credit.
  2. Open the Hacker News Stories Scraper.
  3. Set your inputs and any filters, then click Start.
  4. Export the results as CSV, Excel, JSON, or XML from the Dataset tab.

Run it programmatically through the Apify API (run-sync-get-dataset-items) or the ApifyClient for JavaScript and Python.

Use with AI agents (MCP)

Give an AI agent live access to Hacker News through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

$claude mcp add --transport http apify "https://mcp.apify.com?tools=parseforge/hackernews-stories-scraper"

Then prompt it in plain language to run the scraper and read back the results.

Troubleshooting

Why am I getting no results?

Check that the story category you selected has stories. For example, job stories may have fewer items than top stories. Also ensure your maximum stories is set to at least 1.

Why is the run taking so long?

Collecting a very large number of stories, such as 1,000,000, will take time. Try reducing the maximum stories or running more frequently with smaller batches.

Why are some stories missing fields?

Occasionally Hacker News may not provide all fields for a story. The Actor returns whatever is available, so some fields may be empty.

Can I get stories from a specific date range?

This Actor does not support date filtering. It returns the current stories in the selected category. For historical data, consider the Hacker News API or another Actor.

FAQ

QuestionAnswer
Do I need an API key to use this Actor?No. It reads the public Hacker News story feeds directly, so no registration or API key is required.
What story categories can I scrape?You can choose from top, new, best, ask, show, and job stories.
How many stories can I collect in one run?You can set the maximum number of stories, up to 1,000,000 per run.
What data does each story include?Each story includes its title, URL, score, author, comment count, and rank position.
Can I export the data to Excel?Yes. You can export to CSV, JSON, Excel, or XML.
Is this Actor legal to use?Yes. It only accesses publicly available data from Hacker News. You should still review Hacker News' terms of service for your use case.
How often should I run this Actor?It depends on your needs. Many users run it daily or hourly to track changes in story rankings.
Can I scrape comments as well?This Actor focuses on stories only. For comments, consider a different Actor or the official Hacker News API.
What is the difference between top, new, and best stories?Top stories are the current front page, new stories are the most recent submissions, and best stories are the highest voted in recent days.
Does this Actor handle pagination automatically?Yes. It will keep fetching stories until it reaches your maximum number or the category is exhausted.

Browse the full ParseForge collection for more scrapers.

๐Ÿ†˜ Need help? Email parseforge@protonmail.com with your run ID, your input, and what you expected.

โš ๏ธ Disclaimer. This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by Y Combinator. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.