Hacker News Scraper & Brand Mention Monitor avatar

Hacker News Scraper & Brand Mention Monitor

Pricing

$0.50 / 1,000 item scrapeds

Go to Apify Store
Hacker News Scraper & Brand Mention Monitor

Hacker News Scraper & Brand Mention Monitor

For founders, marketers & researchers: search all Hacker News stories and comments (past the 1,000-result API limit), scrape the front page, Ask/Show HN, jobs and full comment threads, and monitor keywords or your brand – each scheduled run returns only new mentions.

Pricing

$0.50 / 1,000 item scrapeds

Rating

0.0

(0)

Developer

maraa k

maraa k

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Features

Limited permissions

Share

Hacker News Scraper & Monitor: stories, comments, search and alerts

Get anything from Hacker News into a clean dataset: full-text search across stories and comments, the live front page and other lists, complete comment threads, and a monitor mode that returns only new mentions since the last run.

Used for brand and competitor monitoring, launch tracking ("how did our Show HN do?"), developer sentiment research, trend analysis and feeding LLM/RAG pipelines.

Modes

ModeWhat you get
searchStories and/or comments matching keywords, filtered by date, author, linked domain, points and comment count
listFront page (top), new, best, Ask HN, Show HN, jobs, in HN's live order with rank
commentsA story plus every comment, flattened with depth and parentId, so the thread can be rebuilt

No 1,000-result limit

Hacker News' search API (Algolia) returns at most 1,000 results per query, and most scrapers stop there. In newest-first mode, this actor splits the time range into smaller windows automatically and merges them. On this build, a 120-day search for "rust" returned 2,500+ items, with no duplicates and correct order.

Monitor mode

Turn on monitor, schedule the actor (for example hourly), and connect Slack or email. Each run returns only items that are new since the last run, so you can track every HN mention of your product, your competitors or a keyword without seeing anything twice.

Output

{
"id": 8863, "type": "story", "title": "My YC app: Dropbox - Throw away your USB drive",
"url": "http://www.getdropbox.com/u/2/screencast.html", "domain": "getdropbox.com",
"author": "dhouston", "points": 104, "numComments": 71,
"createdAt": "2007-04-04T19:16:40.000Z", "hnUrl": "https://news.ycombinator.com/item?id=8863"
}

Comments include text (HTML converted to plain text with paragraph breaks), storyId, storyTitle, parentId and depth.

Examples

  • Every comment mentioning your product in the last 30 days: { "mode": "search", "query": "yourproduct", "types": ["comment"], "lastDays": 30 }
  • Show HN launches with 100+ points: { "mode": "search", "query": "", "types": ["show"], "minPoints": 100 }
  • Everything linking to your site: { "mode": "search", "query": "yoursite.com", "domain": "yoursite.com" }
  • Today's front page: { "mode": "list", "list": "top", "maxItems": 30 }

How to use it

  1. Choose a mode: search (keywords), list (front page, Show HN, Ask HN, jobs) or comments (full threads).
  2. For search, set the query, item types and date range.
  3. Turn on monitor and schedule the actor if you want only new mentions each run.
  4. Click Start and export results, or connect Slack or email for alerts.

How much does it cost?

You pay $0.50 per 1,000 items returned, with no subscription and no separate compute charges. Filters that drop rows mean you don't pay for those rows.

You processTypical useCost
1,000 itemsa month of mentions for a brand$0.50
10,000 itemsa research dataset$5
100,000 itemsa large LLM/RAG corpus$50

Apify's free plan includes monthly credit, which is enough to try this actor on a real list before you pay anything.

Use it from code or your tools

Run it from Make, Zapier, n8n, Google Sheets, Slack, webhooks or any language through the Apify API.

Python

from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("lokieee0/hacker-news-scraper").call(run_input={
"mode": "search",
"query": "yourproduct",
"types": [
"story",
"comment"
],
"lastDays": 30
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)

Node.js

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('lokieee0/hacker-news-scraper').call({"mode": "search", "query": "yourproduct", "types": ["story", "comment"], "lastDays": 30});
const { items } = await client.dataset(run.defaultDatasetId).listItems();

cURL (run and get results in one request)

curl -X POST "https://api.apify.com/v2/acts/lokieee0~hacker-news-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"mode": "search", "query": "yourproduct", "types": ["story", "comment"], "lastDays": 30}'

FAQ

How do I get alerts when my brand is mentioned on HN? Use search mode with your brand as the query, turn on monitor, schedule it hourly and add a Slack or email integration. Each run returns only new items.

How does it get past the 1,000-result limit? In newest-first mode, it splits the date range into smaller windows and merges them without duplicates.

Is there an official HN API? Yes, and this actor uses the public HN and Algolia APIs, so there's no scraping of HTML and no blocking.

Can I schedule it or connect it to other apps? Yes. Use Apify Schedules for recurring runs, and Integrations to send results to Google Sheets, Slack, email, Zapier, Make, n8n or a webhook.

Something didn't work or a field is missing? Open an issue on the Issues tab. Reports are usually fixed within a few days, and feature requests are welcome.

More tools from the same developer