Hacker News Scraper
Pricing
$0.50 / 1,000 results
Hacker News Scraper
Scrape Hacker News stories, comments, and jobs from front page lists, keyword search, user profiles, or item links: title, link, points, comments, author, and time. No login needed.
Pricing
$0.50 / 1,000 results
Rating
0.0
(0)
Developer
Donjuan
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Features
Share
Hacker News Scraper: stories, comments, and jobs from lists, search, and profiles
Hacker News Scraper collects stories, comments, Ask HN and Show HN posts, and job ads from Hacker News. Scrape the front page and the other lists, search all of Hacker News by keyword and date, take everything a user has posted, or open a single story. For every item you get the title, external link and its domain, text, points, comment count, author, and post time. Turn on comments to get each story's full discussion, one item per comment, with its parent and depth.
You don't need a Hacker News account, an API key, or any code. Pick lists, add search terms or links, press Start, and download the results as JSON, CSV, Excel, XML, or HTML. Or pull them into your app through the Apify API.
What can you do with Hacker News data?
- Track what tech people talk about. Save the front page every hour and see which stories climb, how fast, and how much discussion they draw.
- Monitor your product or company. Search for your name, domain, or competitors and catch every story and comment that mentions them.
- Analyze discussions. Pull the full comment tree of a launch or a Show HN post and study the feedback.
- Collect job ads. Scrape the jobs list or search "Who is hiring" threads to see which companies hire and for what.
- Build datasets for research. Clean text, timestamps, and scores make good input for topic, trend, or sentiment analysis.
What data does Hacker News Scraper extract?
| Group | Fields |
|---|---|
| Item | type (story, comment, job, poll), ID, Hacker News URL, title, text |
| Link | external URL, domain |
| Engagement | points, number of comments |
| Author | username, profile URL |
| Time | post time (ISO 8601, UTC) |
| Threads | for comments: parent ID, story ID, and depth in the thread |
How to scrape Hacker News
- Open the actor and go to the Input tab.
- Pick lists, add search queries, or paste Hacker News links. You can mix all three.
- Set Items per source, and turn on Include comments if you want the discussions.
- Press Start. When the run finishes, open the Output tab to preview the table, or press Export to download the data.
Input
| Field | Type | Description |
|---|---|---|
lists | array of strings | top (front page), new, best, ask, show, job. |
searchQueries | array of strings | Search terms. Each query returns up to 1000 results. |
searchType | string | What search and profiles return: story, comment, ask_hn, show_hn, job, poll, or all. |
searchSort | string | relevance or date (newest first). |
since, until | string | Limit search and profile results to this window. Use 2026-10-01 or 2026-10-01T00:00:00Z. |
startUrls | array | Links to items (item?id=8863), user profiles (user?id=pg), or list pages (/newest, /ask, /show, /jobs). |
maxItems | integer | The maximum number of stories or results from each source. Comments come on top. |
includeComments | boolean | Also collect the full comment thread of every story. |
maxCommentsPerItem | integer | The maximum number of comments from each story. |
Example input:
{"lists": ["top"],"searchQueries": ["golang"],"searchSort": "date","since": "2026-01-01","maxItems": 50,"includeComments": true,"maxCommentsPerItem": 100}
Output
One dataset item per story, comment, or job:
{"type": "story","id": 8863,"url": "https://news.ycombinator.com/item?id=8863","title": "My YC app: Dropbox - Throw away your USB drive","link": "http://www.getdropbox.com/u/2/screencast.html","domain": "getdropbox.com","author": "dhouston","authorUrl": "https://news.ycombinator.com/user?id=dhouston","points": 104,"commentsCount": 71,"createdAtISO": "2007-04-04T19:16:40Z","input": "https://news.ycombinator.com/item?id=8863"}
Comments carry text, parentId, storyId, and depth instead of a title and link.
Tips and limits
- Search stops at 1000 results per query. To go further back, run the same query with consecutive
sinceanduntilwindows. - Comment scores are private. Hacker News shows points only for stories, so comments always have
points: 0. - Lists hold up to 500 stories (
jobup to 200), as Hacker News serves them. - Deleted and flagged items are skipped.
Is it legal to scrape Hacker News?
The scraper reads only public data through Hacker News's official API and the Algolia HN Search API, the same sources many open source tools use. Personal data such as usernames is protected by laws like the GDPR, so collect it only when you have a legitimate reason, and consult a lawyer if you are unsure.