Hacker News Stories Scraper avatar

Hacker News Stories Scraper

Pricing

from $5.00 / 1,000 results

Go to Apify Store
Hacker News Stories Scraper

Hacker News Stories Scraper

Fetches Hacker News stories, Ask HN, Show HN, and job posts via the Algolia HN Search API. Returns title, author, points, comments, URL, and timestamp.

Pricing

from $5.00 / 1,000 results

Rating

0.0

(0)

Developer

Ganesh B

Ganesh B

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Categories

Security

Limited permissions

Share

Fetches stories from Hacker News via the official Algolia HN Search API. Supports top stories, Ask HN, Show HN, and job posts with optional keyword filtering.

What you get

  • id — HN story ID
  • title — Story title
  • author — Posted by (HN username)
  • points — Upvote count
  • comments — Number of comments
  • type — Post type (story, ask_hn, show_hn, job)
  • createdAt — ISO timestamp when posted
  • url — External URL linked in the story
  • hnUrl — Direct link to the HN discussion thread
  • scrapedAt — ISO timestamp of when the record was collected

Input

FieldTypeDefaultDescription
typeStringstoryPost type: story, ask_hn, show_hn, job
queryString(empty)Optional keyword filter
maxItemsInteger100Max records to return

Quick Start

  1. Find the actor in Apify Store
  2. Click Try for free and set your inputs
  3. Click Start and wait for the run to finish
  4. Download results as JSON, CSV, or via the API

Sample Output

Each item in the dataset looks like this:

{
"id": "38521043",
"title": "Show HN: We built an open-source alternative to Datadog",
"author": "prakhar1989",
"points": 847,
"comments": 213,
"type": "story",
"createdAt": "2024-11-01T07:42:00.000Z",
"url": "https://github.com/highlight-run/highlight",
"hnUrl": "https://news.ycombinator.com/item?id=38521043",
"scrapedAt": "2024-11-01T10:00:00.000Z"
}

Use cases

  • Monitor trending tech topics and sentiment on HN
  • Track Ask HN threads for market research
  • Build HN digest newsletters or Slack bots
  • Analyse tech community interest over time by keyword

Notes

  • Uses the official Algolia HN Search API — no HTML scraping, very stable
  • Data is fully public
  • Set maxItems to 0 for up to 1000 results per run
  • Rate limit: Algolia allows ~10,000 requests/hour