Hacker News Scraper: Search Stories and Comments avatar

Hacker News Scraper: Search Stories and Comments

Pricing

from $0.43 / 1,000 results

Go to Apify Store
Hacker News Scraper: Search Stories and Comments

Hacker News Scraper: Search Stories and Comments

Search all of Hacker News by keyword and date. Returns stories, Show HN, Ask HN and comments with points, comment counts, links and text. Good for tracking mentions of a brand, product or topic.

Pricing

from $0.43 / 1,000 results

Rating

0.0

(0)

Developer

Grant Morris

Grant Morris

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

7 days ago

Last modified

Categories

Features

Limited permissions

Share

Search all of Hacker News by keyword and date. Returns stories, Show HN, Ask HN and comments with points, comment counts, links and text. Good for tracking mentions of a brand, product or topic.

Results come as JSON, CSV or Excel, or through the Apify API. Price: $0.50 per 1,000 items, with no monthly fee.

How to use it

  1. Create a free Apify account. No credit card is needed.
  2. Open this tool. The form is already filled with a working example.
  3. Change the input to what you need and press Start. Most runs finish in under a minute.
  4. Download the results as JSON, CSV or Excel, or read them through the API.

How much does it cost to scrape Hacker News?

You pay $0.50 per 1,000 items and nothing else. There is no monthly fee, and the computing cost is included in that price.

ItemsCost
100$0.05
1,000$0.50
10,000$5

Apify's free plan includes $5 of credit every month, which covers about 10,000 items.

Inputs

FieldWhat it does
Search termsOne per line. Leave empty to get the newest items of the chosen type.
TypeWhat to return.
Sort byOrder of results.
From dateYYYY-MM-DD. Only items created on or after this date.
Minimum pointsOnly stories with at least this many points.
Max items per search termHacker News search returns at most 1,000 per search.

Example input

{
"queries": [
"Apify",
"web scraping"
],
"type": "story",
"sortBy": "date",
"minPoints": 0,
"maxItemsPerQuery": 100
}

Example output

{
"query": "Apify",
"type": "story",
"id": "50350302",
"title": "AI agents hallucinate prices: LLM grounding with live data",
"url": "https://blog.apify.com/llm-grounding-with-live-data/",
"text": null,
"points": 15,
"comments": 0,
"author": "Dylan-Hayes",
"createdAt": "2026-11-03T10:41:28Z",
"hnUrl": "https://news.ycombinator.com/item?id=50350302",
"storyId": 50350302
}

Common uses

  • Tracking mentions of your product or a competitor
  • Finding Show HN launches in a niche
  • Research datasets by topic and date
  • Alerts when a story passes a points threshold

Good to know

  • Uses the official Hacker News search API, so results are complete and stable.
  • One search returns at most 1,000 items. Use the From date to page through longer histories.
  • This tool is not affiliated with Y Combinator.
  • If a run finds nothing, it fails with a clear message instead of reporting an empty success.

Use it from Python, Node.js or the API

from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("gbm11/hacker-news-scraper-search-stories-and-comments").call(run_input={
"queries": [
"Apify",
"web scraping"
],
"type": "story",
"sortBy": "date",
"minPoints": 0,
"maxItemsPerQuery": 100
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)

More Python and Node.js examples are in the examples repository.

Use it with AI agents

Claude, ChatGPT and other AI assistants can run this tool through the Apify MCP server. Add gbm11/hacker-news-scraper-search-stories-and-comments to the server's tool list and ask in plain words. The input form and the output fields are described for the model, so no extra setup is needed.

ToolWhat it does
Y Combinator Companies ScraperEvery YC startup by batch, industry and hiring status.
Google News ScraperNews articles by keyword, date range and country.
Substack ScraperPosts, likes and comment counts from any Substack newsletter.

See all tools at apify.com/gbm11.

FAQ

This tool reads only public information that anyone can see without logging in. It does not collect private data. You are responsible for how you use the results, so check the terms of the source and the laws that apply to you.

Can I run it on a schedule?

Yes. Save your input as a task, then add a schedule in Apify to run it every hour, day or week.

Can I send the results to Google Sheets, Zapier, Make or n8n?

Yes. Apify has ready integrations for all of them, plus webhooks and a REST API.

What happens if a run finds nothing?

The run fails with a clear message, so an empty result never looks like a success.

Something is not working. What should I do?

Open the Issues tab on this page and describe the input you used. Bugs are fixed there.