Hacker News Scraper β€” Stories & Comments Search avatar

Hacker News Scraper β€” Stories & Comments Search

Pricing

from $0.72 / 1,000 hits

Go to Apify Store
Hacker News Scraper β€” Stories & Comments Search

Hacker News Scraper β€” Stories & Comments Search

Search Hacker News stories, comments, Show HN and Ask HN by keyword into clean JSON: title, URL, author, points, comment count and dates. Powered by the official HN Algolia API. No anti-bot.

Pricing

from $0.72 / 1,000 hits

Rating

0.0

(0)

Developer

Marouane Oulabass

Marouane Oulabass

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 months ago

Last modified

Share

Search Hacker News and get clean JSON. Query stories, comments, Show HN, Ask HN or the front page by keyword and get back a tidy row per hit: title, URL, author, points, comment count and dates. Powered by the official HN Algolia API β€” no anti-bot, no key.

AI-agent ready: this Actor is callable and payable by AI agents via x402 (USDC on Base), no Apify account required.

Turn Hacker News into a structured dataset for research, monitoring, sentiment analysis and trend-tracking.

Who uses this

  • πŸ“ˆ Founders & marketers β€” monitor mentions of your product, competitors or topics.
  • πŸ”Ž Researchers & analysts β€” build datasets of tech discussions and sentiment.
  • πŸ€– AI / LLM pipelines β€” feed HN stories and comments to your models.
  • πŸ“° Trend watchers β€” track what's rising on the front page and in Show/Ask HN.
  • πŸ§‘β€πŸ’» Developers β€” a clean HN search endpoint without touching the raw API.

What you get β€” one clean row per hit

FieldDescription
titleStory / item title
urlLinked article URL
authorHN username
pointsScore
numCommentsComment count
createdAtPost date
storyText / commentTextText body (Ask HN, comments)
tagsHN item tags
hnUrlLink to the HN discussion
id, query, scrapedAtIdentifiers & provenance

Example

Input

{ "queries": ["ai agents", "rust"], "tag": "story", "minPoints": 50, "sortByDate": false, "maxResultsPerQuery": 100 }

Output (one item)

{
"id": "38765432",
"title": "Show HN: I built an open-source AI agent framework",
"url": "https://github.com/example/agent",
"author": "pg",
"points": 412, "numComments": 137,
"createdAt": "2026-07-13T14:05:00Z",
"hnUrl": "https://news.ycombinator.com/item?id=38765432"
}

Why this scraper

  • βœ… Official source β€” the Hacker News Algolia API, always current.
  • πŸ”Ž Search everything β€” stories, comments, Show HN, Ask HN, polls, front page.
  • 🎯 Filter that matters β€” by minimum points, and sort by date or relevance.
  • ⚑ Fast & affordable β€” pay only per hit returned. No anti-bot, no key.
  • 🧹 Clean output β€” normalized JSON, ready for Sheets/Excel/your database.

Input options

  • queries (required) β€” keywords (one search per query).
  • tag β€” story, comment, poll, show_hn, ask_hn or front_page.
  • sortByDate β€” newest first (true) vs by relevance (false).
  • minPoints β€” only items with at least this many points.
  • maxResultsPerQuery β€” cap hits per query (default 100).

FAQ

Stories or comments? Both β€” set tag to story, comment, show_hn, ask_hn, poll or front_page.

Can I filter by popularity? Yes β€” set minPoints to only get items above a score.

Newest or most relevant? Your choice β€” toggle sortByDate.

How fresh is the data? Live from the HN Algolia API on every run.

Can I export to CSV/Excel/Google Sheets? Yes β€” the dataset exports to JSON, CSV, Excel and HTML, or pull it via the API.

What does it cost? Pay-per-hit β€” you're only charged for items actually returned.


Tip: schedule a keyword search daily to monitor when your product or topic hits the HN front page.