Hacker News Intelligence Scraper avatar

Hacker News Intelligence Scraper

Pricing

from $0.75 / 1,000 hacker news item scrapeds

Go to Apify Store
Hacker News Intelligence Scraper

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

Md Jakaria Mirza

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 days ago

Last modified

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

ModeWhat it does
feedCollects top, new, best, ask, show, or jobs feeds.
searchSearches stories or comments through the public HN Algolia API.
itemsFetches exact Hacker News item IDs.

Input

FieldTypeDefaultNotes
modestringfeedfeed, search, or items.
feedstringtopUsed when mode is feed.
querystringartificial intelligenceUsed when mode is search.
searchTypestringstorySearch story or comment.
itemIdsstring array[]Numeric HN item IDs for items mode.
maxResultsinteger1Maximum dataset rows, from 1 to 1,000.
minScoreinteger0Keep only items with at least this score.
minCommentsinteger0Keep only stories with at least this many comments.
includeKeywordsstring array[]Require at least one keyword in title or text.
excludeKeywordsstring array[]Exclude matching title or text.
authorsstring array[]Exact Hacker News usernames.
domainstringemptyKeep links whose hostname contains this value.
fromDate, toDatestringemptyOptional ISO date or date-time filters.
includeCommentsbooleanfalseFetch nested comments into each result.
maxCommentsPerIteminteger20Comment cap per item; nested-comment requests are capped at 5,000 per run.
commentDepthinteger3Nested reply depth.
includeDeadOrDeletedbooleanfalseInclude moderation/deleted records only when explicitly enabled.

Output

Each dataset row is one Hacker News item:

FieldDescription
id, typeHacker News item ID and item type.
title, text, textHtmlStory or comment content when available.
url, hnUrl, domainExternal URL, HN discussion URL, and hostname.
author, score, commentCountPublic HN metadata.
createdAt, createdAtUnixPublication time.
feed, query, rankSource context for feed/search runs.
dead, deletedModeration flags.
commentsOptional nested comments when enabled.
collectedAtActor 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:

StatusMeaning
succeededRequested records were saved without detected upstream loss.
partialRecords were saved, but one or more item/comment requests or search hits could not be used.
emptyThe source responded correctly, but no records matched or available IDs were missing/deleted.
stopped_spending_limitCollection stopped at the caller's maximum cost per run.
failedDiscovery, 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:

EventPrice
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

  1. Monitor top, new, or best for developer and startup trends.
  2. Track product or competitor mentions with mode: "search" and a query.
  3. Find launch examples with the show feed and filters such as minScore.
  4. Analyze discussion quality by enabling comments on a small result set.
  5. 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, and 5xx responses 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, and commentDepth small at first.
  • Dead or deleted root items and nested comments are excluded unless includeDeadOrDeleted is 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