Hacker News Scraper — Search Stories & Comments
Pricing
from $3.00 / 1,000 results
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
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
3 days ago
Last modified
Categories
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
| Field | Type | Default | Description |
|---|---|---|---|
| mode | select | searchStories | searchStories, getStory, getUser |
| query | string | — | Keyword for story search |
| storyId | int | — | Story ID for getStory mode |
| username | string | — | HN username for getUser mode |
| sort | select | byDate | byDate (newest) or byRelevance |
| tags | string | story | Comma-separated tags: story, comment, ask_hn, show_hn, poll, front_page |
| minPoints | int | 0 | Minimum points filter |
| limit | int | 20 | Max 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