Hacker News Scraper — Search Stories & Comments avatar

Hacker News Scraper — Search Stories & Comments

Pricing

from $3.00 / 1,000 results

Go to Apify Store
Hacker News Scraper — Search Stories & Comments

Hacker News Scraper — Search Stories & Comments

Search and retrieve Hacker News stories, comments, and user info via the free Algolia Search API. No API key required — filter by points, date, tags, and more.

Pricing

from $3.00 / 1,000 results

Rating

0.0

(0)

Developer

Giovanni Bucci

Giovanni Bucci

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Share

HN Scraper

Search and retrieve Hacker News stories, comments, and user data via the free Algolia Search API — no API key required.

Features

  • Search Stories — Full-text search across all HN stories. Filter by tags (story, show_hn, ask_hn, front_page), minimum points, and date range
  • Get Story — Fetch a single story with its full comment tree (nested threads preserved)
  • Get User — List all stories submitted by a specific HN user

Input

FieldTypeDefaultDescription
modeselectsearchStoriessearchStories, getStory, getUser
querystringKeyword for story search
storyIdintStory ID for getStory mode
usernamestringHN username for getUser mode
sortselectbyDatebyDate (newest) or byRelevance
tagsstringstoryComma-separated tags: story, comment, ask_hn, show_hn, poll, front_page
minPointsint0Minimum points filter
limitint20Max results (1–100)

Output

Each result is pushed as a JSON record to the Apify dataset.

searchStories / getUser — objectID, title, url, author, points, num_comments, created_at, story_text

getStory — type ("story" or "comment"), id, title/author, text, points, created_at, depth (for nested comments), parent_id, story_id

Use Cases

  • Track mentions of your product, brand, or technology
  • Find popular Show HN launches in your space
  • Monitor competitor discussions and sentiment
  • Build datasets for NLP or trend analysis
  • Research what's trending in tech

Automation & Integration

  • Schedule daily searches via Apify's built-in scheduler — track keywords over time
  • Connect to Make.com, Zapier, or n8n via Apify integrations
  • Export to Google Sheets, Slack, or Discord from the Apify dataset
  • Alert on mentions by combining scheduled runs with webhook outputs

Technical

  • Built with Python + httpx
  • Uses Algolia Search API at hn.algolia.com/api/v1
  • Comment trees are flattened with depth markers for easy analysis
  • The Algolia API is free, no authentication required