Hacker News Scraper
Pricing
$1.00 / 1,000 item scrapeds
Hacker News Scraper
Search and scrape Hacker News stories, comments, Show HN and Ask HN via the public API. No proxy, no browser.
Pricing
$1.00 / 1,000 item scrapeds
Rating
0.0
(0)
Developer
brandon nadeau
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Share
Search and extract Hacker News content at scale — stories, comments, Show HN, Ask HN, and polls. Filter by keyword, points, and comment count. Perfect for tech trend monitoring, competitor and brand tracking, lead generation, and content research.
This scraper reads the public Algolia search API that powers Hacker News search (hn.algolia.com/api/v1). That means:
- No proxies needed — the API is happy to serve datacenter requests, so runs are cheap and reliable.
- No browser — fast and lightweight.
- No auth, no broken selectors — it reads a stable, documented JSON API.
What it does
Give it a search query (or just a tag like front_page) and it returns matching HN items as clean, structured rows — with points, comment counts, authors, timestamps, and direct links to both the external URL and the HN thread.
Input
| Field | Type | Description |
|---|---|---|
query | string | Keyword(s) to search. Leave blank to fetch latest/front-page items by tag. |
tags | string | Item type: story, comment, poll, show_hn, ask_hn, or front_page. Default story. |
sortByDate | boolean | On = newest first. Off = relevance/popularity. Default false. |
minPoints | integer | Only items with at least this many points. 0 = no minimum. |
minComments | integer | Only items with at least this many comments. 0 = no minimum. |
maxResults | integer | Max items to return. 0 = as many as the API returns. Default 100. |
Example input
{"query": "open source AI","tags": "story","sortByDate": false,"minPoints": 50,"maxResults": 200}
Output
{"id": "39842011","type": "story","title": "Show HN: I built an open-source AI tool","url": "https://example.com/my-tool","hnUrl": "https://news.ycombinator.com/item?id=39842011","author": "janedoe","points": 412,"numComments": 137,"createdAt": "2026-04-02T14:21:00.000Z","text": null,"storyTitle": null}
Export to CSV, JSON, Excel, or HTML, or pull via the Apify API.
Pricing
This Actor uses pay-per-event pricing — a small charge per item scraped, platform usage included. A run returning 1,000 items costs roughly the per-item price × 1,000.
Use cases
- Brand & competitor monitoring — track every HN mention of a product or company.
- Lead generation — find people discussing a problem your product solves.
- Trend research — surface the top stories on a topic by points over time.
- Show HN tracking — monitor new product launches in your space.
Notes & limitations
- Relevance search returns up to roughly 1,000 results per query. To go deeper, narrow with
query,minPoints, or run separate date-windowed searches withsortByDateon. - Timestamps are in UTC.