Hacker News Intelligence Scraper
Pricing
from $0.75 / 1,000 hacker news item scrapeds
Hacker News Intelligence Scraper
Collect Hacker News feeds, keyword search results, exact items, and optional comment threads through the official Firebase API and public HN Algolia API.
Pricing
from $0.75 / 1,000 hacker news item scrapeds
Rating
0.0
(0)
Developer
Md Jakaria Mirza
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
6 days ago
Last modified
Categories
Share
Collect Hacker News feeds, keyword search results, specific item IDs, and optional nested comment threads into clean Apify dataset rows. The Actor uses the official Hacker News Firebase API for item data and the public HN Algolia API for keyword search. No login, browser, API key, or proxy is required.
Use it for developer trend monitoring, startup research, Show HN discovery, Ask HN analysis, and lightweight technical-news dashboards.
Quick Start
{"mode": "feed","feed": "top","query": "artificial intelligence","searchType": "story","maxResults": 1,"includeComments": false}
This collects one top-feed item without nested comments, keeping the first run fast and low-cost. Increase maxResults after checking the sample row.
Modes
| Mode | What it does |
|---|---|
feed | Collects top, new, best, ask, show, or jobs feeds. |
search | Searches stories or comments through the public HN Algolia API. |
items | Fetches exact Hacker News item IDs. |
Input
| Field | Type | Default | Notes |
|---|---|---|---|
mode | string | feed | feed, search, or items. |
feed | string | top | Used when mode is feed. |
query | string | artificial intelligence | Used when mode is search. |
searchType | string | story | Search story or comment. |
itemIds | string array | [] | Numeric HN item IDs for items mode. |
maxResults | integer | 1 | Maximum dataset rows, from 1 to 1,000. |
minScore | integer | 0 | Keep only items with at least this score. |
minComments | integer | 0 | Keep only stories with at least this many comments. |
includeKeywords | string array | [] | Require at least one keyword in title or text. |
excludeKeywords | string array | [] | Exclude matching title or text. |
authors | string array | [] | Exact Hacker News usernames. |
domain | string | empty | Keep links whose hostname contains this value. |
fromDate, toDate | string | empty | Optional ISO date or date-time filters. |
includeComments | boolean | false | Fetch nested comments into each result. |
maxCommentsPerItem | integer | 20 | Comment cap per item; nested-comment requests are capped at 5,000 per run. |
commentDepth | integer | 3 | Nested reply depth. |
includeDeadOrDeleted | boolean | false | Include moderation/deleted records only when explicitly enabled. |
Output
Each dataset row is one Hacker News item:
| Field | Description |
|---|---|
id, type | Hacker News item ID and item type. |
title, text, textHtml | Story or comment content when available. |
url, hnUrl, domain | External URL, HN discussion URL, and hostname. |
author, score, commentCount | Public HN metadata. |
createdAt, createdAtUnix | Publication time. |
feed, query, rank | Source context for feed/search runs. |
dead, deleted | Moderation flags. |
comments | Optional nested comments when enabled. |
collectedAt | Actor scrape timestamp. |
The default key-value store also contains RUN_STATUS. It reports the final outcome, discovered and requested item counts, saved rows, filters, missing items, comment counts, retries, upstream failures, spending-limit state, and up to 20 concise diagnostics.
Possible outcomes are:
| Status | Meaning |
|---|---|
succeeded | Requested records were saved without detected upstream loss. |
partial | Records were saved, but one or more item/comment requests or search hits could not be used. |
empty | The source responded correctly, but no records matched or available IDs were missing/deleted. |
stopped_spending_limit | Collection stopped at the caller's maximum cost per run. |
failed | Discovery, all usable item requests, input validation, or dataset storage failed. |
Verified Sample
A one-result top-feed proof on July 15, 2026 returned this row:
{"id": 48915709,"type": "story","title": "Jurassic Park computers in excruciating detail","url": "https://fabiensanglard.net/jurrasic_park_computers/index.html","hnUrl": "https://news.ycombinator.com/item?id=48915709","domain": "fabiensanglard.net","author": "vinhnx","score": 362,"commentCount": 86,"createdAt": "2026-07-15T02:57:47.000Z","rank": 1,"feed": "top"}
Pricing
Active pay-per-event pricing:
| Event | Price |
|---|---|
item-scraped | $0.00075 per item ($0.75 per 1,000) |
apify-actor-start | $0.00005 per GB at run start |
Records are saved and charged atomically. Empty, filtered, dead/deleted excluded, or failed records are not charged, and later API batches are skipped after the user's spending limit is reached. The Actor uses a 256 MB default and requires no browser, API key, or proxy, keeping platform usage small for normal feed and search runs.
Common Workflows
- Monitor
top,new, orbestfor developer and startup trends. - Track product or competitor mentions with
mode: "search"and a query. - Find launch examples with the
showfeed and filters such asminScore. - Analyze discussion quality by enabling comments on a small result set.
- Export to CSV, Excel, JSON, HTML, or connect through the Apify API.
Notes and Limits
- Inputs are validated at runtime and unsupported fields are rejected instead of silently ignored.
- Firebase and Algolia responses are shape-checked before use. Retryable
408,429, and5xxresponses use bounded retries; other HTTP and malformed-data errors fail immediately. - Search pagination, response size, item scans, comment traversal, and diagnostic output are bounded.
- Search results depend on HN Algolia indexing and ranking.
- Nested comments increase runtime; keep
maxResults,maxCommentsPerItem, andcommentDepthsmall at first. - Dead or deleted root items and nested comments are excluded unless
includeDeadOrDeletedis enabled. Eligible replies below an excluded comment are still traversed. - The Actor collects public HN metadata; it is not a private user-profile or contact scraper.
Responsible Use
Use this Actor for lawful collection of publicly available Hacker News data. Respect Hacker News, Algolia, and downstream platform terms, privacy laws, and any restrictions that apply to how you store or process exported data.
This independent Actor is not affiliated with, endorsed by, or sponsored by Hacker News, Y Combinator, or Algolia.
License
Apache-2.0