Hacker News Scraper - Stories, Comments & Search avatar

Hacker News Scraper - Stories, Comments & Search

Pricing

from $1.00 / 1,000 results

Go to Apify Store
Hacker News Scraper - Stories, Comments & Search

Hacker News Scraper - Stories, Comments & Search

Search and export Hacker News stories, comments and users. No API key.

Pricing

from $1.00 / 1,000 results

Rating

0.0

(0)

Developer

zsdy

zsdy

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Categories

Features

Limited permissions

Share

Try it first

In Input → JSON, run this small example, then open Dataset → Export for CSV or JSON. Before running, check the Store Pricing tab: the maximum event charge is maxItems × current per-item price + any start event. Current Store pricing is authoritative.

{
"query": "",
"tags": ["story"],
"searchType": "date",
"maxItems": 10,
"fetchComments": false
}

Search and export Hacker News data. No API key, no login, no proxy. Clean structured JSON straight into a dataset.

What you can do

  • Search every Hacker News story and comment by keyword
  • Browse newest stories with an empty query, or search keywords and sort by relevance/newest
  • Filter by points, number of comments, or date
  • Fetch the full comment thread for any story

Typical uses

  • Tech and startup trend research
  • Content and topic discovery
  • AI / ML training data
  • Competitive and market monitoring

Input

FieldTypeDescription
querystringOptional phrase, e.g. AI agents. Leave empty to browse latest stories.
tagsarraystory, comment, ask_hn, show_hn, poll, front_page.
searchTypestringrelevance or date (newest first). Empty queries default to date; keyword queries default to relevance.
numericFiltersarrayEach filter entry is ANDed with the others, e.g. points>100 and num_comments>20.
maxItemsintegerMax items to return.
fetchCommentsbooleanInclude the full comment tree.

Example input

{
"query": "AI agents",
"tags": ["story"],
"searchType": "relevance",
"numericFilters": ["points>50"],
"maxItems": 200,
"fetchComments": true
}

For latest stories, clear query, keep tags as story, and set searchType to date. For keyword searches, use relevance unless you specifically want newest-first ordering. Each numericFilters list entry is an AND condition.

Results are written to the default dataset. In the run page open Dataset, then Export to download JSON or CSV. The Actor returns structured records; it does not create a separate spreadsheet file.

Output

One record per item.

{
"id": "42312345",
"title": "Show HN: I built a local-first AI agent",
"url": "https://example.com",
"author": "someone",
"points": 312,
"numComments": 145,
"createdAt": "2026-11-10T12:00:00Z",
"createdUtc": "2026-11-10T12:00:00+00:00",
"type": "story",
"storyText": "Today we are launching...",
"hnUrl": "https://news.ycombinator.com/item?id=42312345",
"comments": [
{
"id": 42312400,
"author": "reply_guy",
"text": "Nice work ...",
"depth": 0
}
]
}

Pricing

Pay per result: $1 per 1,000 items. Comments inside a thread are part of the item. You only pay for what the run returns.