Hacker News Scraper: Stories, Comments & Who is Hiring avatar

Hacker News Scraper: Stories, Comments & Who is Hiring

Pricing

from $0.40 / 1,000 story scraped

Go to Apify Store
Hacker News Scraper: Stories, Comments & Who is Hiring

Hacker News Scraper: Stories, Comments & Who is Hiring

Hacker News search, front page, Ask/Show HN and comment threads via the official HN Algolia API, plus parsed "Who is hiring?" job posts (company, role, remote, salary range, tech). Only-new mode for keyword alerts. No login, no browser.

Pricing

from $0.40 / 1,000 story scraped

Rating

0.0

(0)

Developer

rj

rj

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

a day ago

Last modified

Features

Limited permissions

Share

Hacker News Scraper: Stories, Comments, Search & Who is Hiring Jobs

Get Hacker News stories, comments and "Who is hiring?" job posts in one Actor, through the official public HN search API (Algolia). Search any keyword by date or relevance with points, comments, date and domain filters, read the current front page, Ask HN, Show HN and job lists, pull full comment threads with depth and parent, or turn the monthly "Ask HN: Who is hiring?" thread into clean job rows with company, roles, locations, remote flag, parsed salary range, visa sponsorship and tech keywords. Most HN Actors do just one of these. This one does all four and charges $0.0004 per story and $0.001 per parsed job post, against $0.00175+ per story and $0.002-0.003 per job elsewhere. Turn on only new items with a schedule for keyword alerts: each run outputs, and charges for, only what the last run didn't already return.

What data can you get

Row type (itemType)Fields
storyid, type (story / ask / show / job / poll), title, url, domain, hnUrl, author, points, numComments, createdAt, storyText (Ask/Show HN text), tags, searchQuery, list
commentid, storyId, storyTitle, parentId, author, text (plain text, full links), createdAt, depth (1 = reply to the story), hnUrl
hiring-postcompany, roles[], locations[], remote, onsite, visa, employmentType, salaryText, salaryMin, salaryMax, currency, salaryPeriod, techKeywords[], applyUrl, headerLine, text, author, postedAt, commentUrl, threadId, threadMonth

Every row also has url and scrapedAt. Dates are ISO 8601, numbers are numbers, missing values are null. Email addresses and phone numbers in any text are replaced with [removed].

Use cases

  • Brand and competitor monitoring: schedule a daily search for your product name over stories and comments with onlyNewItems on, and send new mentions to Slack.
  • Launch tracking: follow your Show HN or launch post's points and comments, or collect every story that links to your domain.
  • Tech job market data: every monthly Who is hiring thread as structured rows. Filter by keyword (rust, python, "machine learning") or remote-only, and compare salary ranges month to month.
  • Research and AI datasets: comment threads with depth and parent IDs for sentiment analysis, topic modelling or RAG.
  • Content curation: the top stories about a topic above a points threshold, for newsletters.

How to use

Pick a mode, fill in that section and run. Examples:

Newest stories about a keyword (the prefill)

{ "mode": "search", "queries": ["rust"], "sortBy": "date", "maxItems": 15 }

Popular GitHub projects on HN (100+ points, newest first)

{ "mode": "search", "domain": "github.com", "minPoints": 100, "sortBy": "date", "maxItems": 20 }

Every comment mentioning your brand in the last 30 days, only new ones on each run

{ "mode": "search", "queries": ["supabase"], "searchIn": "comments", "since": "30 days", "maxItems": 100, "onlyNewItems": true }

Front page with the first 20 comments of each story (thread order)

{ "mode": "front", "lists": ["front_page"], "includeComments": true, "maxCommentsPerStory": 20, "maxItems": 30 }

Remote Rust jobs from the latest Who is hiring thread

{ "mode": "whoIsHiring", "months": 1, "jobKeywords": ["rust"], "remoteOnly": true, "maxItems": 50 }

All job posts from the last 3 months

{ "mode": "whoIsHiring", "months": 3, "maxItems": 0 }

Inputs worth knowing:

  • searchIn: stories, comments or both. sortBy: date (newest first) or relevance.
  • since / until: an ISO date (2026-11-01) or a relative time (24 hours, 7 days, 3 months).
  • minPoints, minComments, domain apply to stories.
  • maxItems is per query, list or thread (0 = no limit). Story comments are capped separately by maxCommentsPerStory.
  • threadIds reads specific Who is hiring threads (IDs or news.ycombinator.com/item?id= URLs).

Output example

Real rows from a local run (comment text and some job fields shortened):

[
{
"itemType": "story",
"id": 50648365,
"type": "story",
"title": "Bare Metal Qwen",
"url": "https://github.com/alesha-pro/llm.asm/tree/main/02-baremetal-os",
"domain": "github.com",
"hnUrl": "https://news.ycombinator.com/item?id=50648365",
"author": "miohtama",
"points": 174,
"numComments": 39,
"createdAt": "2026-11-25T22:15:34.000Z",
"storyText": null,
"tags": [
"story",
"front_page"
],
"searchQuery": null,
"list": null,
"scrapedAt": "2026-11-26T12:34:51.870Z"
},
{
"itemType": "comment",
"id": 50644863,
"storyId": 50644817,
"storyTitle": "1Password Security Incident",
"parentId": 50644817,
"author": "tom1337",
"text": "> 1Password began investigating indications that an attacker gained access to an employee’s corporate GitHub account. Th...",
"createdAt": "2026-11-25T17:23:09.000Z",
"depth": 1,
"hnUrl": "https://news.ycombinator.com/item?id=50644863",
"url": "https://news.ycombinator.com/item?id=50644863",
"searchQuery": null,
"scrapedAt": "2026-11-26T12:34:59.288Z"
},
{
"itemType": "hiring-post",
"company": "Postscript (YC W19)",
"roles": [
"Senior Software Engineer",
"Full Stack"
],
"locations": [
"US, Canada"
],
"remote": true,
"onsite": false,
"visa": null,
"employmentType": "Full-time",
"salaryText": "$180K to $220K base + equity",
"salaryMin": 180000,
"salaryMax": 220000,
"currency": "USD",
"salaryPeriod": "year",
"techKeywords": [
"Rust"
],
"applyUrl": "https://www.ycombinator.com/companies/postscript/jobs/ktOBqUe-senior-software-engineer-full-stack",
"commentUrl": "https://news.ycombinator.com/item?id=50340820",
"threadMonth": "2026-11"
}
]

See samples/sample-output.json for complete rows. The dataset has three views: Stories, Comments and Who is hiring jobs.

Pricing

Pay per event, no subscription:

EventPriceCharged when
story$0.0004One story, Ask HN, Show HN, job or poll row is saved
comment$0.0001One comment row is saved
hiring-post$0.001One parsed Who is hiring job post is saved

A tiny Actor start fee also applies. Worked examples, before that fee:

  • 1,000 stories: 1,000 × $0.0004 = $0.40
  • The 30 front-page stories with 50 comments each: $0.012 + 1,500 × $0.0001 = $0.16
  • One month of Who is hiring (~230 job posts): about $0.23

Items skipped by onlyNewItems are never charged, and the same item is never charged twice in a run. The Actor stops cleanly at your Maximum cost per run.

Tips and limits

  • 1,000 results per query. The HN search API returns at most 1,000 hits per query. To go further back, split the search with since / until date ranges (the run summary warns when a query has more).
  • Exact words. Typo tolerance is off, so "rust" doesn't also match "gust". Search matches titles, URLs, story text and author names.
  • Front page order comes from the search API and can differ slightly from the live HN ranking.
  • Who is hiring parsing is best effort. It reads the "Company | Role | Location | REMOTE | Salary" header line. Posts are free-form, so some fields will be wrong or empty. headerLine and text are always included so you can check. Posts with no header line are kept, with null header fields. Salaries stay in the stated period (salaryPeriod: year, month, day or hour) and are not converted. Replies to job posts are not output.
  • Only "Who is hiring?". "Who wants to be hired?" and "Freelancer?" threads list individuals, so they are not supported, and their comments are skipped in search and comment results too.
  • onlyNewItems remembers items for 120 days per input (the same queries and filters; changing maxItems keeps the state). It outputs anything not returned before, so a first run with a small maxItems is followed by older items on the next run. Use since for alerts on new posts only.
  • Comments of stories skipped as already seen are not fetched again in only-new mode.
  • No user profiles, karma or "about" text (on purpose).

FAQ

Is it legal? The Actor reads public Hacker News data through HN's public, documented search API, with no login. HN usernames are public handles. Email addresses and phone numbers are removed from all text, and user profiles are not scraped. You are responsible for using the data lawfully, including under the GDPR.

Do I need a proxy? No. The API answers Apify datacenter IPs. Residential proxies are not supported: if you select them, the Actor logs a warning and uses Apify datacenter proxy instead.

Why did I get more rows than maxItems? The limit is per query, list or thread, and comments from includeComments are counted separately (maxCommentsPerStory).

Can I get the full history of a keyword? Yes, in date ranges of up to 1,000 results each. Use since and until, for example a month at a time.

How fresh is the data? The search API usually indexes new stories and comments within minutes. Points and comment counts are as of the run.

Integrations

Use the results through the Apify API, or connect the Actor to Make, Zapier, n8n, Google Sheets, Slack and webhooks. AI agents can call it through the Apify MCP server.

Changelog

  • 0.1: First release. Search, front lists, comment threads, parsed Who is hiring job posts and an only-new-items mode.

More scrapers by the same developer

Browse all my Actors on my Apify Store profile.

Support

Found a problem or need a field? Open an issue on the Issues tab with your input and run ID.