Pricing
from $1.50 / 1,000 results
Go to Apify Store
Hacker News Scraper
Scrape stories, jobs, comments, and polls from Hacker News using the official HN Firebase API. Get top/new/best/ask/show stories with comments, search by keyword via Algolia HN Search API. Reliable and no rate limiting.
Pricing
from $1.50 / 1,000 results
Rating
0.0
(0)
Developer
Actor stats
0
Bookmarked
2
Total users
1
Monthly active users
17 days ago
Last modified
Share
Extract stories, comments, and job postings from Hacker News. Scrape the front page, new stories, Ask HN, Show HN, or search by keyword. Priced at $0.50 per 1,000 results.
What it scrapes
- Story title, URL, score (points), author, and post date
- Comment count and direct HN link
- Top-level comments per story (optional)
- Job postings from the HN jobs section
- Ask HN and Show HN posts
Sample output
{"story_id":40987654,"title":"Show HN: I built a scraper that actually works","url":"https://example.com/my-project","hn_url":"https://news.ycombinator.com/item?id=40987654","score":342,"author":"pg","author_url":"https://news.ycombinator.com/user?id=pg","comment_count":128,"posted_at":"2024-01-15T14:32:00Z","type":"show","comments":[{"comment_id":40987700,"author":"tptacek","text":"This is impressive work...","posted_at":"2024-01-15T14:45:00Z"}]}
Input
{"scrapeType":"top","resultsWanted":30,"includeComments":true,"maxCommentsPerStory":10,"minScore":100}
Keyword search
{"scrapeType":"search","searchQuery":"machine learning startup","resultsWanted":50}
Input fields
| Field | Type | Default | Description |
|---|---|---|---|
scrapeType | string | top | top, new, best, ask, show, jobs, search |
searchQuery | string | โ | Keyword to search (search mode only) |
resultsWanted | integer | 30 | Number of stories to return (up to 500) |
includeComments | boolean | false | Fetch top-level comments for each story |
maxCommentsPerStory | integer | 10 | Max comments per story (up to 50) |
minScore | integer | 0 | Minimum story score filter |
Scrape types
scrapeType | What it returns |
|---|---|
top | Current front page stories |
new | Newest submissions |
best | All-time highest scored |
ask | Ask HN posts |
show | Show HN posts |
jobs | HN job postings |
search | Stories matching a keyword |
Use cases
- Tech trend monitoring: track emerging topics on HN
- Startup research: find Show HN launches in a category
- Job hunting: monitor HN monthly "Who is hiring?" threads
- AI/LLM training data: collect high-quality discussions with scores as quality signal
Pricing
$0.50 per 1,000 results โ HN is public, no API key needed.
