# Hacker News Scraper: Search, Front Page, Comments, Who's Hiring (`wellbuilt_seahare/hacker-news-scraper`) Actor

Scrape Hacker News with the official APIs: keyword search of stories and comments (date range, min points), front page/new/best/Ask/Show/jobs lists, full comment threads, and the monthly "Who is hiring?" jobs with company, location and remote parsed. Monitor mode outputs only new items.

- **URL**: https://apify.com/wellbuilt_seahare/hacker-news-scraper.md
- **Developed by:** [Kossin Labs](https://apify.com/wellbuilt_seahare) (community)
- **Categories:** News, Developer tools, Jobs
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 items scraped

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Hacker News Scraper: Search, Front Page, Comments, Who's Hiring

Scrape Hacker News with the official APIs: keyword search of stories and comments (date range, min points), front page/new/best/Ask/Show/jobs lists, full comment threads, and the monthly "Who is hiring?" jobs with company, location and remote parsed. Monitor mode outputs only new items.

**Good for:** Hacker News scraper, HN scraper, Hacker News API to CSV, Hacker News search, Hacker News comments scraper, Who is hiring scraper, HN jobs, Show HN and Ask HN export, Hacker News keyword monitor.

### What you get

Real rows from a default run on November 30, 2026 (the front page, top 30 stories; a few columns shown, every row has more fields):

| Rank | Title | Domain | Points | Comments | HN user | Posted (UTC) |
|---|---|---|---|---|---|---|
| 1 | Ask HN: Apple suspended my dev account 69 days ago and no human will respond | (Ask HN text post) | 346 | 127 | spichakovda | 2026-11-30 09:28 |
| 2 | Sudoku's Hidden Rule | cyrusjavan.com | 318 | 142 | multifasciatus | 2026-11-30 03:49 |
| 3 | People report Claude sabotages any ML-related projects/tasks | reddit.com | 51 | 15 | nvmdbljstm | 2026-11-30 12:09 |
| 4 | The state of Rust allocators in 2026: stabilised | cetra3.github.io | 135 | 48 | fanf2 | 2026-11-28 09:42 |
| 5 | Post-quantum encryption adoption | radar.cloudflare.com | 326 | 174 | mfiguiere | 2026-11-29 23:31 |
| 6 | Claude and I found a dwarf planet candidate | joshuawolk.com | 416 | 156 | nhatcher | 2026-11-29 23:39 |
| 7 | If you want failover to work well, use it often | bencane.com | 454 | 119 | madflojo | 2026-11-29 17:02 |

That run returned 30 stories in about 6 seconds at 256 MB.

Real rows from the November 2026 "Ask HN: Who is hiring?" thread (same day, parsed fields):

| Company | Roles | Location | Remote | Salary |
|---|---|---|---|---|
| Simple Analytics | DevOps Engineer | REMOTE (worldwide, any timezone) | yes | €5,000/month (full-time) |
| Synteq | Growth Lead & Systems Administrator | Austin, TX / REMOTE (US) | yes |  |
| University of Cambridge, University of Manchester | PhD in AI / Earth Observation / Environmental Science | ONSITE / UK home fee status only | no | £30k tax-free annual stipend |
| Open Education Applications / Neon | Senior Frontend Engineer | Utrecht, The Netherlands / HYBRID | no |  |
| United Risk | Early-Career AI Engineers – Full-Stack, Data Science, Infrastructure/DevOps (10 openings) | New York, NY / HYBRID (2 days/week in office) | no | $100K–$120K |
| We The Flywheel | Brand Identity Designer (AI-agent team) | Remote | yes |  |

### Four ways to use it (plus monitor mode)

- **Lists.** The front page (top stories), new, best, Ask HN, Show HN or YC job ads, in list order with rank, points and comment counts.
- **Search.** Keyword search across stories and/or comments, with date range, minimum points and comments, item types (story, comment, Ask HN, Show HN, poll, front page) and author. Sort by relevance or newest first.
- **Comments.** Every comment of the stories you list, flattened in thread order with depth, parentId and storyId.
- **Who is hiring?** One row per job post in the monthly thread (latest or any month), with company, roles, location, remote / onsite / hybrid, employment type, salary and apply link parsed from the header line.
- **Monitor mode** works with all four: it remembers what it already returned and outputs only new items, so you can schedule keyword alerts or a monthly jobs feed.

### Use cases

- Brand and competitor monitoring: get every new story or comment that mentions your product, company or competitor
- Hiring and recruiting research: export the monthly "Who is hiring?" thread with company, location, remote flag, roles and salary in columns
- Job hunting: filter Who's Hiring posts for remote roles mentioning your stack (rust, python, golang...) and get new ones each month
- Lead generation: find startups that launch on Show HN or announce they are hiring, with their website domain
- Market and trend research: track how often a technology appears on the front page, and how many points and comments it gets
- Sentiment and AI datasets: export full comment threads with depth and parent IDs for analysis or LLM pipelines

### How to use it

1. Open the Hacker News Scraper on the Apify Store and click Try for free (Apify's free plan includes monthly credit).
2. Pick **What to scrape**: Lists (front page, new, best, Ask HN, Show HN, jobs), Search, Comments of specific stories, or "Who is hiring?" job posts.
3. For a search, type your keywords in **Search keywords**, choose stories and/or comments, and optionally set **Posted on or after** (e.g. `7 days` or `2026-11-01`) and **Min points**.
4. For comments, paste story links like `https://news.ycombinator.com/item?id=8863`. For jobs, leave **Month** as `latest` or enter `2026-10`, and turn on **Remote jobs only** if you want.
5. Set **Max items** to control cost, then click Start. The default run (the 30 front-page stories) finished in about 6 seconds.
6. Download CSV, Excel or JSON. For alerts, turn on **Monitor mode** and schedule the run daily: each run returns only items you haven't seen yet.

Step-by-step guide: [How to scrape Hacker News: search, front page, comments and Who's Hiring jobs](https://kossinlabs.com/tools/hacker-news-scraper/)

### Input

| Field | What it does |
|---|---|
| What to scrape | Lists, Search, Comments of stories, or "Who is hiring?" (default: Lists) |
| Max items | Stop after this many rows; your main cost control (default 30) |
| List | top (front page), new, best, ask, show or jobs |
| Search keywords / Item types | Words to find; stories, comments, Ask HN, Show HN, polls, front page |
| Sort by | Relevance or newest first |
| Posted on or after / before | YYYY-MM-DD or relative like 7 days |
| Min points / Min comments | Only popular stories |
| Story IDs or URLs | Stories whose comments you want, with max depth |
| Month / Remote jobs only | Which Who's Hiring thread (latest or 2026-11) and a remote filter |
| Keep only rows containing | Keyword filter on the output in any mode (filtered rows are free) |
| Monitor mode | Only items not returned by earlier runs of the same query |

Example (daily alert for new stories and comments that mention postgres):

```json
{
  "mode": "search",
  "searchQuery": "postgres",
  "searchTags": [
    "story",
    "comment"
  ],
  "sortBy": "date",
  "dateFrom": "7 days",
  "minPoints": 0,
  "maxItems": 200,
  "onlyNewItems": true,
  "monitorStateName": "hn-postgres-mentions"
}
```

### Output fields

Every mode uses the same schema, so you can mix stories, comments and job posts in one table.

| Field | Meaning |
|---|---|
| id | Hacker News item ID |
| type | story, comment, job, poll, or job_post (a Who's Hiring post) |
| title / url / domain | Story title, the linked URL and its domain (empty for comments and text posts) |
| text | Plain text of the story, comment or job post (HTML removed; emails and phone numbers replaced) |
| author | Poster's public HN username |
| points / numComments | Score and total comments (stories) |
| createdAt | Posting time, ISO 8601 UTC |
| hnUrl | Link to the item on news.ycombinator.com |
| storyId / parentId / depth | Thread position: story it belongs to, the item it replies to, and depth (0 = story, 1 = top-level comment) |
| storyTitle | Title of the story a comment belongs to |
| tags | story, comment, ask_hn, show_hn, front_page, who_is_hiring... |
| rank / listType | Position in the list (Lists mode) |
| company / roles / location | Parsed from a Who's Hiring header line |
| remote / onsite / hybrid | Work arrangement flags from the header |
| employmentType / salary / visaSponsorship / applyUrl | Also parsed when present |
| hiringMonth / header | Thread month and the original header line |
| isNew / fetchedAt | Monitor mode flag and scrape time |

A real story row from the default run:

```json
{
  "id": 50695539,
  "type": "story",
  "title": "Sudoku's Hidden Rule",
  "url": "https://cyrusjavan.com/posts/solving-with-uniqueness/",
  "domain": "cyrusjavan.com",
  "text": null,
  "author": "multifasciatus",
  "points": 318,
  "numComments": 142,
  "createdAt": "2026-11-30T03:49:48.000Z",
  "hnUrl": "https://news.ycombinator.com/item?id=50695539",
  "storyId": 50695539,
  "parentId": null,
  "depth": 0,
  "tags": [
    "story"
  ],
  "rank": 2,
  "listType": "top",
  "fetchedAt": "2026-11-30T12:44:43.757Z"
}
```

A real Who's Hiring row (text shortened here):

```json
{
  "id": 50338732,
  "type": "job_post",
  "title": null,
  "url": null,
  "domain": null,
  "text": "Simple Analytics | DevOps Engineer | REMOTE (worldwide, any timezone) | Full-time, 32h, 24h possible | €5,000/month (full-time) | https://www.simpleanalytics.com/jobs/devops\n\nHi HN, I'm Adriaan. Simple Analytics exists thanks to HN: it started with my Show HN in 2018 [1]. Today we're a self-funded, …",
  "author": "AdriaanvRossum",
  "points": null,
  "numComments": null,
  "createdAt": "2026-11-02T16:01:43.000Z",
  "hnUrl": "https://news.ycombinator.com/item?id=50338732",
  "storyId": 50338728,
  "parentId": 50338728,
  "depth": 1,
  "tags": [
    "comment",
    "who_is_hiring"
  ],
  "storyTitle": "Ask HN: Who is hiring? (November 2026)",
  "hiringMonth": "November 2026",
  "company": "Simple Analytics",
  "location": "REMOTE (worldwide, any timezone)",
  "remote": true,
  "onsite": false,
  "hybrid": false,
  "roles": [
    "DevOps Engineer"
  ],
  "employmentType": "Full-time, 32h, 24h possible",
  "salary": "€5,000/month (full-time)",
  "visaSponsorship": null,
  "applyUrl": "https://www.simpleanalytics.com/jobs/devops",
  "header": "Simple Analytics | DevOps Engineer | REMOTE (worldwide, any timezone) | Full-time, 32h, 24h possible | €5,000/month (full-time) | https://www.simpleanalytics.com/jobs/devops",
  "fetchedAt": "2026-11-30T12:45:31.062Z"
}
```

A real reply from a comments run (story 8863, depth 2):

```json
{
  "id": 9007,
  "type": "comment",
  "title": null,
  "url": null,
  "domain": null,
  "text": "Drew, this is awesome!  All of the features you mentioned are exactly what people need.",
  "author": "vlad",
  "points": null,
  "numComments": null,
  "createdAt": "2007-04-05T01:48:11.000Z",
  "hnUrl": "https://news.ycombinator.com/item?id=9007",
  "storyId": 8863,
  "parentId": 8865,
  "depth": 2,
  "tags": [
    "comment"
  ],
  "storyTitle": "My YC app: Dropbox - Throw away your USB drive",
  "fetchedAt": "2026-11-30T12:45:20.286Z"
}
```

Two dataset views are included: **Stories and comments** and **Who is hiring? jobs**. A run summary (items output, duplicates, already seen, filtered) is saved to the key-value store as `SUMMARY`.

### Pricing

One Actor covers keyword search, the front page and other lists, full comment threads and parsed "Who is hiring?" job posts, all in one output schema, plus monitor mode for new items only.

Pay per item: **$1.00 per 1,000 items**. You pay $1.00 per 1,000 rows in your results (stories, comments or job posts), so the front page (30 stories) costs about 3 cents and a full month of "Who is hiring?" posts (about 200–400 rows) about 20 to 40 cents. Duplicates, rows dropped by your filters and, in monitor mode, items you already got are free. Apify also adds its standard tiny per-run start fee. Set a maximum charge per run and the Actor stops cleanly when it's reached (checked on the platform: a run with a $0.01 cap stopped at 9 stories). Apify's free plan includes monthly platform credit, enough to try it on real data.

### Integrations and API

Every run's results can be downloaded as **JSON, CSV, Excel, XML or HTML**, or fetched through the **Apify API** (REST, plus official JavaScript and Python clients). You can also:

- **Schedule** runs hourly, daily or monthly in Apify Console (monitor mode makes each run return only new items).
- Send results to **Make, Zapier, n8n**, Google Sheets, Slack, webhooks and other Apify integrations.
- Let **AI agents** call it through the **Apify MCP server** (mcp.apify.com) from Claude, Cursor, VS Code and other MCP clients. Input fields have plain descriptions and examples so an agent can fill them in correctly.

### Sources and limits

- Official public APIs only: the Hacker News API (hacker-news.firebaseio.com/v0) and the HN Search API by Algolia (hn.algolia.com/api/v1). No login, no news.ycombinator.com page scraping.
- Lists hold up to 500 stories (top, new) or 200 (best, ask, show, jobs), as the official API returns them.
- Relevance search returns at most 1,000 results per query (Algolia limit). Newest-first search pages back in time for more.
- Points and comment counts are a snapshot at run time. Comments have no public points.
- Deleted and dead items are skipped. Who's Hiring parsing is based on the header-line convention; unusual posts keep their full text with some fields empty.

### FAQ

**Is this the official Hacker News API?**\
It uses only official public APIs: the Hacker News API (hacker-news.firebaseio.com, run by Y Combinator) for lists and items, and the HN Search API by Algolia (hn.algolia.com/api) for search, threads and Who's Hiring. It doesn't log in or load news.ycombinator.com pages, and requests are spread out politely (5 at a time by default).

**How do I get comments of a story?**\
Choose Comments of specific stories and paste the story IDs or links. Every comment is one row in thread order, with depth (1 = top-level), parentId and storyId, so you can rebuild the tree. Set Max comment depth 1 for top-level comments only.

**How does the Who is hiring parsing work?**\
Job posts usually start with a header like Company | Role | Location | REMOTE | Salary. The Actor splits that line into company, roles, location, remote / onsite / hybrid flags, employment type, salary, visa and an apply or careers link, and keeps the full plain-text post. Posts that don't follow the format keep their text with the fields it could not find left empty.

**Can I search by date or popularity?**\
Yes. Use Posted on or after / before (dates or relative values like 7 days) and Min points / Min comments. Relevance search returns up to 1,000 results per query (an Algolia limit); newest-first search pages further back in time.

**How does monitor mode work?**\
It saves the IDs of items it returned in a named key-value store in your Apify account. Later runs of the same query output, and charge for, only new items. Newest-first search stops as soon as it reaches items from the last run.

**Does it collect personal data?**\
It returns public Hacker News content: titles, links, text, points and the poster's public HN username. Email addresses and phone numbers inside text are replaced with \[email removed] and \[phone removed], and it doesn't fetch user profiles.

**What does it cost?**\
$1.00 per 1,000 rows, plus Apify's standard $0.00005 start fee. Set a maximum charge per run and the Actor stops cleanly when it's reached.

### Support

Found a bug, a wrong field or want a new option? Open an issue on the Issues tab. Issues are checked daily. If the Actor saves you time, a quick review helps other people find it.

Made by [Kossin Labs](https://kossinlabs.com/tools/). Not affiliated with Hacker News, Y Combinator or Algolia.

# Actor input Schema

## `mode` (type: `string`):

Lists = front page (top), new, best, Ask HN, Show HN or jobs. Search = keyword search of stories and/or comments with date and points filters. Comments = every comment of the stories you list, flattened with depth and parent ID. Who is hiring = one row per job post in the monthly "Ask HN: Who is hiring?" thread, with company, location, remote and roles parsed.

## `maxItems` (type: `integer`):

Stop after this many output rows (0 = no limit). This is your main cost control: you pay per row. Lists hold up to 500 stories (200 for best/ask/show/jobs); a "Who is hiring?" thread has about 200–400 job posts.

## `listType` (type: `string`):

Which Hacker News list to read. Top = the front page ranking. Rows keep the list order in the rank field.

## `searchQuery` (type: `string`):

Words to search for in titles, URLs, story text and comments, e.g. postgres, "open source" or your product name. Leave empty to get everything that matches the other filters (e.g. all Show HN posts with 100+ points this month).

## `searchTags` (type: `array`):

Which kinds of items to search. Pick several to combine them (any of). Default: stories.

## `sortBy` (type: `string`):

Relevance (Algolia's ranking: matches, then points and comments) or newest first. Monitor mode always uses newest first. Relevance search returns at most 1,000 results per query; newest-first search can go further by paging back in time.

## `dateFrom` (type: `string`):

Only items posted on or after this date. Use YYYY-MM-DD (UTC) like 2026-11-01, or a relative value like 7 days, 24 hours, 2 weeks or 3 months.

## `dateTo` (type: `string`):

Only items posted on or before this date (YYYY-MM-DD, whole day included, UTC). Leave empty for up to now.

## `minPoints` (type: `integer`):

Only stories with at least this many points (upvotes). Comments have no public points, so leave 0 when searching comments.

## `minComments` (type: `integer`):

Only stories with at least this many comments.

## `author` (type: `string`):

Optional: only items posted by this Hacker News username (exact handle, e.g. dang).

## `storyIds` (type: `array`):

Hacker News story IDs or links, one per line, e.g. 8863 or https://news.ycombinator.com/item?id=8863. Every comment is output in thread order with depth (1 = top-level), parentId and storyId.

## `includeStory` (type: `boolean`):

Also output the story itself as the first row (depth 0) before its comments.

## `maxDepth` (type: `integer`):

1 = top-level comments only, 2 = plus direct replies, and so on. 0 = the whole thread.

## `hiringMonth` (type: `string`):

Which monthly "Ask HN: Who is hiring?" thread to read: latest, or a month like 2026-11 or November 2026. Threads are posted by the whoishiring account on the first weekday of each month.

## `remoteOnly` (type: `boolean`):

Only output job posts whose header line mentions REMOTE (and not "no remote").

## `filterKeywords` (type: `array`):

Optional filter on the output: keep only rows whose title, text, link, company, location or roles contain at least one of these words or phrases. Case-insensitive; single words match whole words ("go" won't match "google"). Example for job posts: rust, golang, python. Filtered rows are free.

## `onlyNewItems` (type: `boolean`):

Remember which items this same query already returned (in a named key-value store in your account) and output only new ones on the next runs. Schedule it hourly or daily for keyword alerts, new front-page stories, new comments on a thread, or new job posts. The first run outputs the current items and saves them as seen. You pay only for new items.

## `monitorStateName` (type: `string`):

Name of the key-value store that keeps the seen-item list. Different queries are tracked separately inside it, but use a different name per schedule to be safe (e.g. hn-brand-mentions). Lowercase letters, numbers and dashes.

## `textMaxLength` (type: `integer`):

Cut story and comment text to this many characters (0 = no limit). Text is plain text with HTML removed; email addresses and phone numbers are replaced with \[email removed] / \[phone removed].

## `maxConcurrency` (type: `integer`):

How many item requests to send to the official HN API at once in Lists and Comments mode. Default 5 is polite and fast enough.

## Actor input object example

```json
{
  "mode": "list",
  "maxItems": 30,
  "listType": "top",
  "searchTags": [
    "story"
  ],
  "sortBy": "relevance",
  "minPoints": 0,
  "minComments": 0,
  "includeStory": true,
  "maxDepth": 0,
  "hiringMonth": "latest",
  "remoteOnly": false,
  "onlyNewItems": false,
  "monitorStateName": "hacker-news-monitor-state",
  "textMaxLength": 5000,
  "maxConcurrency": 5
}
```

# Actor output Schema

## `items` (type: `string`):

Dataset with one row per story, comment or "Who is hiring?" job post.

## `summary` (type: `string`):

Mode, items output, duplicates, already-seen (monitor mode), filtered and deleted counts, and the thread or search used.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("wellbuilt_seahare/hacker-news-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("wellbuilt_seahare/hacker-news-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call wellbuilt_seahare/hacker-news-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,wellbuilt_seahare/hacker-news-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/aqV600yOq7aYyf1O1/builds/YAC1TvRaAL9BVuESx/openapi.json
