Hacker News Scraper [$1.9💰] | Trends | Show HN | Data
Pricing
from $1.87 / 1,000 results
Hacker News Scraper [$1.9💰] | Trends | Show HN | Data
Extract Y Combinator's Hacker News based on any search criteria. Crawl the front page, Show HN, Ask HN, news, job listings, and historical data. Get links, titles, comments, ratings, and more!
Pricing
from $1.87 / 1,000 results
Rating
0.0
(0)
Developer
Ahmed Jasarevic
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
a month ago
Last modified
Categories
Features
Share
Hacker News Scraper - Stories, Jobs and User Profiles
The Hacker News Scraper collects structured story, job and user records from the official Hacker News Firebase API. Get titles, URLs, authors, points, comment counts, timestamps, text and Hacker News links from the front page, Ask HN, Show HN, jobs or specific item IDs - one dataset row per item.
Use it to monitor startup and technology discussions, build a research corpus, track hiring posts or enrich a dataset with Hacker News user profiles. The Actor talks to the public API directly, so results are fast and predictable. A flat output schema keeps the data easy to load into a warehouse, spreadsheet or LLM pipeline.
Main Use Cases for Hacker News Data
- Technology trend monitoring - snapshot the front page and track which topics, companies and links gain attention.
- Startup and founder research - collect Ask HN, Show HN and launch threads for market discovery and competitor tracking.
- Hiring intelligence - capture Who Is Hiring job posts, authors and timestamps for recruiting or labor-market analysis.
- User-profile enrichment - resolve usernames to karma, account creation date, about text and submission history.
- Content research - gather titles, canonical URLs and self-post text for newsletters, briefings or editorial planning.
- Dataset building - create a reproducible Hacker News corpus keyed by item ID for NLP, search or recommendation experiments.
- AI agent context - give an LLM compact, typed records with stable IDs and source links for current technology discussions.
How It Works

The Actor uses the public Hacker News Firebase API at hacker-news.firebaseio.com. For each section in sections, it fetches the current ID list - front, ask, show or jobs - and then resolves each item to its public record. maxItemsPerSection caps each section, and maxItemsTotal applies an overall cap. A run with several sections combines their items but de-duplicates by item ID.
The default outputFormat is flat, and this build always writes flat rows. Story, job and user records are distinguished by the type field. includeCommentCount adds the published commentCount; includeTopLevelComments adds the number of direct child IDs as topLevelComments. The Actor does not fetch comment text or nested discussion threads.
You can bypass section discovery by supplying itemIds for specific stories or jobs, or usernames for Hacker News profiles. convertTimestamps converts Unix seconds into ISO 8601 strings; leave it false when a downstream system expects raw epoch values. User records use a different field set, including karma, created, about, submittedCount and submittedIds.
The API is public and does not require authentication. The Actor makes lightweight HTTP requests with retries, so no browser or proxy is normally needed. Because Hacker News rankings and comment counts change continuously, treat each run as a point-in-time snapshot rather than a permanent archive of the front page.
Input
Choose sections, explicit item IDs, usernames or a combination. Per-section and total limits prevent a broad run from collecting more records than you need.
| Field | Type | Required | Default | What it does |
|---|---|---|---|---|
sections | string[] | No | ["front","ask","show","jobs"] | Hacker News feeds to scan: front, ask, show or jobs. |
maxItemsPerSection | integer | No | 50 | Maximum items resolved from each selected section. Range 1-500. |
maxItemsTotal | integer | No | 0 | Overall item cap across all sections. 0 means no total cap. |
itemIds | string[] | No | [] | Specific Hacker News story or job IDs to fetch directly. |
usernames | string[] | No | [] | Hacker News usernames whose public profiles should be collected. |
includeCommentCount | boolean | No | true | Include the published commentCount field on stories and jobs. |
includeTopLevelComments | boolean | No | false | Add the number of direct child IDs as topLevelComments. |
convertTimestamps | boolean | No | true | Convert Unix timestamps to ISO 8601 strings. |
outputFormat | string | No | flat | Accepted for compatibility. This build always returns flat rows. |
Section discovery and explicit IDs can be combined. maxItemsPerSection applies to each selected section, not to each page, and maxItemsTotal is the safer control for a mixed run. Duplicate IDs are written once.
Output
The dataset contains story, job and user records in one flat schema. Different type values use different subsets of fields.
| Field group | Fields | What you get |
|---|---|---|
| Item identity | id, type, title, url, hnUrl, parentId | Hacker News item ID, record type, title, external URL and discussion link. |
| Discussion | author, points, commentCount, topLevelComments, kids, text | Author, score, comment counts, child IDs and self-post or comment text. |
| Time | timestamp, created | Publication or account-creation time, converted or raw depending on settings. |
| Status | dead, deleted, isSelfPost | Moderation flags and whether the item points to a Hacker News text post. |
| User profile | karma, about, submittedCount, submittedIds | Public profile fields for rows collected through usernames. |
| Source | hnUrl | Canonical Hacker News item or user URL for attribution. |
type tells you whether a row is a story, job, comment or user. Story and job rows normally include title, author, points, commentCount and hnUrl; user rows replace those with profile fields such as karma and about. Fields that do not apply are absent or null.
Pricing
The Actor uses pay-per-event pricing. A start event is charged per run and each written Hacker News item is charged as a result.
| Event | FREE | BRONZE | SILVER | GOLD+ |
|---|---|---|---|---|
| Actor start, per run | $0.00005 | $0.00005 | $0.00005 | $0.00005 |
| Item result | $0.0019 | $0.00189 | $0.00188 | $0.00187 |
That is approximately $1.90 per 1,000 items on FREE and slightly less on higher plans. A typical four-section run with 50 items per section writes up to 200 rows. The free preview is limited to 10 items, so use a single section or a few explicit IDs when testing.
Example Input
{"sections": ["front", "show"],"maxItemsPerSection": 30,"maxItemsTotal": 50,"includeCommentCount": true,"includeTopLevelComments": true,"convertTimestamps": true,"outputFormat": "flat"}
This collects up to 50 items from the front page and Show HN, with comment counts and ISO timestamps. It does not collect comment text.
Example Output
{"id": 42424242,"type": "story","title": "A small database for local-first apps","url": "https://example.com/local-first-database","author": "example_user","points": 184,"commentCount": 63,"topLevelComments": 21,"timestamp": "2026-10-15T09:30:00.000Z","hnUrl": "https://news.ycombinator.com/item?id=42424242","isSelfPost": false,"text": null,"parentId": null,"kids": [42424243, 42424244],"dead": false,"deleted": false}
The row is a flat story record. kids contains direct child IDs rather than comment bodies, and topLevelComments is simply the number of those direct children.
Integrations and Automation
Use Apify schedules for a morning technology briefing, or call the Actor from the API, Apify MCP, Zapier, Make or n8n. Send rows to Google Sheets, Airtable, a data warehouse, a search index or a Slack and email alerting workflow.
A practical trend monitor stores id, title, url, points, commentCount and timestamp per snapshot, then compares point and comment growth across runs. For hiring research, filter type to jobs and group by author or month. For user research, resolve a batch of usernames and join the profiles back to story authors.
Because the output is flat and uses stable item IDs, it loads cleanly into SQL, BigQuery or a vector pipeline. Keep hnUrl with any excerpt so downstream readers can verify the source and see the current discussion.
Related Actors
- Reddit Scraper Pro - posts, comments and community data from Reddit.
- Product Hunt Scraper - new products, launches and maker profiles.
- Wellfound Startup Jobs Scraper - startup job listings and company data.
FAQ
Does this Actor scrape comments?
No. It collects item metadata and can count direct children, but it does not download comment text or recurse into nested threads. kids contains IDs only.
Why is outputFormat ignored?
The current build always emits flat rows. The nested option is accepted by the input schema for compatibility, but stories and users are not returned as a nested tree.
Can I fetch one specific story?
Yes. Put its numeric ID in itemIds. The Actor resolves that item directly and does not need to scan a section. This is also the cheapest way to test the output.
What does topLevelComments mean?
It is the number of direct child IDs in the item's kids array. It is not a full comment count and does not include replies to those comments; use commentCount for Hacker News's published total.
How current is the data?
Each run reads the live public API. Points, ranking and comment counts can change within minutes. For historical analysis, store snapshots with their scrape time rather than assuming the current values describe the past.
Is authentication required?
No Hacker News account, cookie or API key is needed. The Firebase API is public, and the Actor applies ordinary request limits and retries.
For AI Agents and LLM Apps
The Actor gives agents a compact stream of technology news, job posts and user profiles with stable Hacker News IDs. It is callable through the Apify API and Apify MCP.
- Check
typebefore reading fields: story, job, comment and user rows do not share the same schema. - Use
idfor items and usernames for user records;hnUrlis the human-readable source link. commentCountis the published total, whiletopLevelCommentscounts direct children only. Neither field contains comment text.timestampis ISO 8601 whenconvertTimestampsis true; otherwise it can remain a Unix value.- The free preview is limited to 10 items, and every written item is billed, so cap sections and total items for agent calls.
Legal and Compliance
This Actor is an independent tool and is not affiliated with, endorsed by or sponsored by Y Combinator or Hacker News. It reads the public Firebase API for research, monitoring and dataset construction. Hacker News guidelines, Y Combinator terms and applicable law still apply.
User profiles can contain personal data, and story text can include copyrighted or sensitive material. Attribute content to its Hacker News source, avoid republishing large verbatim excerpts without permission, and honor moderation or deletion signals. Do not use the data for harassment, automated profiling or decisions that affect individuals.
SEO Keywords
Hacker News scraper, Hacker News API, Hacker News data, HN scraper, Hacker News stories, Hacker News jobs, Hacker News users, Y Combinator news scraper, tech news dataset, startup news data, Hacker News front page, Hacker News export, Ask HN scraper, Show HN scraper, developer trends, technology discussions, startup research data, Hacker News item IDs, HN API alternative, Hacker News monitoring