Hacker News Stories Scraper
Pricing
from $5.00 / 1,000 results
Go to Apify Store
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
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Security
Limited permissionsShare
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 IDtitle— Story titleauthor— Posted by (HN username)points— Upvote countcomments— Number of commentstype— Post type (story, ask_hn, show_hn, job)createdAt— ISO timestamp when postedurl— External URL linked in the storyhnUrl— Direct link to the HN discussion threadscrapedAt— ISO timestamp of when the record was collected
Input
| Field | Type | Default | Description |
|---|---|---|---|
| type | String | story | Post type: story, ask_hn, show_hn, job |
| query | String | (empty) | Optional keyword filter |
| maxItems | Integer | 100 | Max records to return |
Quick Start
- Find the actor in Apify Store
- Click Try for free and set your inputs
- Click Start and wait for the run to finish
- 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