# Hacker News Scraper: Stories, Comments & Who Is Hiring (`techliondev/hacker-news-scraper`) Actor

Scrape Hacker News front page, Show/Ask HN, search, full comment threads and monthly Who is hiring jobs (company, role, location, salary). Fast, no login.

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

## Pricing

from $0.06 / 1,000 item saveds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-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

### 🟧 What is Hacker News Scraper?

**Hacker News Scraper** collects **stories, comments and job posts from Hacker News** (news.ycombinator.com) into one clean table: titles, links, points, comment counts, authors, dates and full comment text. Grab the live front page, search all of Hacker News for any word, export a full comment thread, or turn the monthly **"Ask HN: Who is hiring?"** thread into a job list with company, role, location, remote, salary and visa columns.

It is for founders, marketers, developer-relations teams, recruiters, job seekers, researchers and AI (artificial intelligence) agents.

It reads the official Hacker News API (application programming interface) and the public Hacker News search API. There is no browser, no login and no proxy, so runs are **fast, cheap and reliable**: thousands of items in a few seconds.

- **Watch for mentions** of your product, company or competitors, and get only new ones on a schedule.
- **Track the front page, Show HN and Ask HN** with rank, points and comment counts.
- **Export full discussions** with every comment and its reply depth.
- **Build a tech job list** from "Who is hiring?" with parsed company, role, location, remote, salary, visa, emails and links.
- **Feed AI tools and research** with clean, plain-text stories and comments.

#### What data does it extract?

| | |
| --- | --- |
| 📰 Title, link, website and Hacker News link | ⬆️ Points and comment count |
| 👤 Author and author profile link | 📅 Date (ISO 8601), weekday and age in hours |
| 💬 Story and comment text as plain text (links kept) | 🧵 Story ID and title for comments, parent ID and reply depth |
| 🏆 Rank on the list (front page, newest, best, Ask, Show, Jobs) | 🏷️ Tags (story, comment, show_hn, ask_hn, front_page) |
| 💼 Who is hiring: company, roles, location, remote, salary | 🛂 Who is hiring: visa sponsorship, emails and links |

#### Why this scraper?

- **Half the price of the most-used Hacker News scraper:** $0.10 per 1,000 items instead of $0.20, no extra start fee, and all filters are free.
- **Everything in one Actor:** live lists, search, full threads and hiring threads. Other tools usually do one of these.
- **Search with no 1,000-result cap.** "Newest first" walks back in time, so brand monitoring never misses older mentions.
- **Parsed "Who is hiring?" posts** at a fraction of the price of dedicated job-thread scrapers ($3.50 per 1,000).
- **Built-in new-item tracking.** Turn on **Only new items**, schedule the Actor, and later runs save only items you have not collected yet.

### ⬇️ Input

Use any mix of these sources. Each one is collected separately, up to **Maximum items per source**.

- **Hacker News lists:** `top` (front page), `new`, `best`, `ask`, `show`, `job`.
- **Search terms:** any word or phrase. Choose stories, comments or both, and most relevant or newest first.
- **Story links:** `https://news.ycombinator.com/item?id=1` or just `1`. Saves the story and every comment.
- **Monthly hiring thread:** Who is hiring (job posts), Who wants to be hired (candidates), or Freelancer, for 1 to 24 months.

Example input:

```json
{
    "lists": ["top", "show"],
    "searchTerms": ["supabase", "\"open source\""],
    "searchType": "all",
    "searchSort": "newest",
    "storyUrls": ["https://news.ycombinator.com/item?id=1"],
    "hiringThread": "whoIsHiring",
    "hiringMonths": 1,
    "maxItemsPerSource": 500,
    "minPoints": 10,
    "since": "30 days",
    "onlyNew": true
}
```

| Setting | What it does |
| --- | --- |
| Search in | Stories, comments, or both |
| Search order | **Most relevant** (best matches, up to 1,000 per term) or **Newest first** (no limit, best for monitoring) |
| Minimum points / comments, dates, keywords, websites | Free filters. Removed items are not charged |
| Months of hiring threads | 1 = this month only; up to 24 months back |
| Only new items + Tracking name | Save only items not seen in earlier runs |

### ⬆️ Output

You get one row per story, comment or job post, with the same columns on every row. The dataset has three views: **Overview**, **Who is hiring** and **Threads**. A `RUN_SUMMARY` record lists every source with items seen, items saved and any error.

#### Table view

| Rank | Title | Site | Points | Comments | Author |
| --- | --- | --- | --- | --- | --- |
| 1 | Anthropic employee claims general proof of the Riemann Hypo… | alpo.ge | 475 | 218 | iamronaldo |
| 6 | Signal Is Serious About Protecting Your Privacy | signal.org | 122 | 38 | dotcoma |
| 11 | Show HN: Tinnitus frequency finder and audio notch tool | trynotched.com | 93 | 54 | brianrhea |
| 16 | If you stop writing code, you also get worse at reviewing it | cekrem.github.io | 91 | 25 | theanonymousone |
| 21 | Postgres 19 Repack: Faster, Built-In Table Bloat Cleanup | snowflake.com | 150 | 26 | craigkerstiens |
| 26 | Jujutsu Primer | ethanlowman.com | 184 | 122 | renehsz |

#### Who is hiring example

| 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 |  |
| Open Education Applications /… | Senior Frontend Engineer | Utrecht, The Netherlands / HYBRID | no |  |
| Bridge AI Consulting | AI Consultant, Junior AI Consultant | REMOTE (US) | yes | $60K–$100K base + upside for … |
| United Risk | Early-Career AI Engineers – Full-Stack, Data… | New York, NY / HYBRID (2 days/week… | no | $100K–$120K |
| We The Flywheel | Brand Identity Designer (AI-agent team) | Remote | yes |  |

#### JSON example

```json
{
    "id": "50576061",
    "type": "story",
    "title": "Signal restricts screenshots to block AI from reading messages",
    "url": "https://www.reuters.com/legal/litigation/signal-restricts-screenshots-block-ai-agents-reading-messages-2026-11-20/",
    "domain": "reuters.com",
    "hnUrl": "https://news.ycombinator.com/item?id=50576061",
    "author": "laurex",
    "authorUrl": "https://news.ycombinator.com/user?id=laurex",
    "points": 1,
    "commentCount": 0,
    "createdAt": "2026-11-20T15:26:42.000Z",
    "weekday": "Friday",
    "ageHours": 0,
    "text": null,
    "rank": 1,
    "storyId": "50576061",
    "storyTitle": null,
    "storyUrl": null,
    "parentId": null,
    "depth": null,
    "tags": [
        "story"
    ],
    "jobCompany": null,
    "jobTitle": null,
    "jobLocation": null,
    "jobRemote": null,
    "jobSalary": null,
    "jobVisa": null,
    "jobEmails": [],
    "jobLinks": [],
    "source": "Newest stories",
    "sourceType": "list",
    "scrapedAt": "2026-11-20T15:27:18.371Z"
}
```

### ▶️ How to use it

1. Click **Try for free** (an Apify account is free to create).
2. Pick lists, add search terms or story links, or choose a hiring thread.
3. Set **Maximum items per source** and any filters. Filters are free.
4. Click **Start**. The default run (the current front page, 30 stories) finishes in a few seconds.
5. Download the results from the **Output** tab as Excel, CSV (comma-separated values) or JSON (JavaScript Object Notation), or connect them to another tool.

#### Monitoring Hacker News on a schedule

Add your brand or competitor names as **Search terms**, choose **Stories and comments** and **Newest first**, and turn on **Only new items**. Then create a schedule (for example every hour). The first run saves and remembers everything it finds. After that, each run saves only new mentions, so a quiet hour costs almost nothing.

### 💲 How much does it cost?

This Actor uses **pay-per-event pricing**: you pay only for the items you get, never for the computer time behind them.

| Event | Price (free plan) | When it is charged |
| --- | --- | --- |
| Actor start | $0.00005 | Once per run |
| **Item saved** | **$0.0001** ($0.10 per 1,000 items) | For each story, comment or job post saved, after your filters |

Paid Apify plans get lower prices automatically (for example $0.08 per 1,000 items on the Silver plan). See the **Pricing** tab for every plan.

**Worked examples**

- **Default test run, front page (30 stories):** $0.00005 + 30 × $0.0001 = **about $0.003**.
- **This month's "Who is hiring?" thread (about 400 job posts):** **about $0.04**.
- **Hourly brand monitor, only new items, about 20 new mentions a day:** 720 runs × $0.00005 + 600 items × $0.0001 = **about $0.10 per month**.

### 🎯 Use cases

- **Launch tracking:** follow your Show HN post, its rank, points and every comment.
- **Brand and competitor monitoring:** get new mentions of any name, in stories and comments.
- **Recruiting and job search:** filter "Who is hiring?" posts by remote, location, salary or keyword, or find candidates in "Who wants to be hired?".
- **Market and trend research:** see which websites, tools and topics reach the front page.
- **AI and research datasets:** export clean discussions with structure and dates.

### 🔌 Integrations

This Actor works with everything on the Apify platform:

- **Schedules:** run it every hour or every day from the Schedules page.
- **Webhooks:** get a call to your own system when a run finishes.
- **Apps:** send results to Google Sheets, Slack, Zapier, Make, Airtable and more with Apify's ready-made integrations.
- **API and code:** start runs and read results from any language (see below and the **API** tab).
- **AI agents:** the Actor is available through the Apify MCP (Model Context Protocol) server, so AI assistants can call it as a tool.

### 💻 Use it from code (API)

Replace `YOUR_APIFY_TOKEN` with the API token from the **Settings > API & Integrations** page in Apify Console.

**Python** (install with `pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("techliondev/hacker-news-scraper").call(run_input={
    "lists": [],
    "hiringThread": "whoIsHiring",
    "maxItemsPerSource": 1000,
    "includeKeywords": ["remote"],
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["jobCompany"], "|", item["jobTitle"], "|", item["jobLocation"])
```

**JavaScript / Node.js** (install with `npm install apify-client`):

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

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('techliondev/hacker-news-scraper').call({
    lists: ['top'],
    maxItemsPerSource: 30,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**Any language (HTTP):** send a POST request with the input as JSON to the `run-sync-get-dataset-items` endpoint for `techliondev~hacker-news-scraper` and you get the items back in the response.

### ❓ FAQ

#### Do I need a Hacker News account or an API key?

No. The Actor uses the official public Hacker News API and the public Hacker News search API. It runs on Apify's default infrastructure with no login and no proxy.

#### How are the "Who is hiring?" columns filled?

Most job posts start with a header like `Company | Role | Location | REMOTE | Salary`. The Actor reads that first line and fills company, roles, location, remote and salary, then scans the whole post for visa sponsorship, emails and links. Posts that do not follow the format still appear with their full text; some columns are then empty. Always check the text before contacting a company.

#### Why does relevance search stop at 1,000 results?

The Hacker News search API returns at most 1,000 results per query in relevance order. Choose **Newest first** to go further: the Actor then walks back in time with no limit.

#### Are deleted or dead items included?

No. Deleted and dead items are skipped and never charged. Points are public only for stories, so the minimum-points filter does not remove comments.

#### Is it legal to scrape Hacker News?

The Actor reads only public data through the official Hacker News API and the public search API that Hacker News links to. It does not log in, post or vote. You are still responsible for how you use the data (for example when contacting people from job posts), so check the rules that apply to you.

#### Your feedback

Found a bug or want a feature? Please open an issue on the **Issues** tab. We aim to reply within a few days.

# Actor input Schema

## `lists` (type: `array`):

Live Hacker News lists, in the same order as on the site (the rank column shows the position).

## `searchTerms` (type: `array`):

Words or phrases to search all of Hacker News for, one per line (for example rust, "open source", your brand or competitor names).

## `searchType` (type: `string`):

Search story titles and text, comments, or both.

## `searchSort` (type: `string`):

Most relevant returns the best matches first, at most 1,000 per term. Newest first goes back in time without a limit and suits scheduled brand monitoring.

## `storyUrls` (type: `array`):

Hacker News item links or IDs, one per line (for example https://news.ycombinator.com/item?id=1). The Actor saves the story and every comment, with reply depth.

## `hiringThread` (type: `string`):

Save the top-level posts of the monthly hiring threads. For Who is hiring, the company, role, location, remote, salary, visa, emails and links are pulled from each post.

## `hiringMonths` (type: `integer`):

1 = this month's thread only. Up to 24 months back.

## `maxItemsPerSource` (type: `integer`):

Stop after this many saved items for each list, search term, story or hiring thread. Items removed by filters are not counted or charged.

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

Keep only stories with at least this many points (comments have no public points and are not affected).

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

Keep only stories with at least this many comments.

## `since` (type: `string`):

A date like 2026-01-31 or a period like "7 days" or "24 hours".

## `until` (type: `string`):

A date like 2026-01-31 or a period like "1 day".

## `includeKeywords` (type: `array`):

Matched against the title and text. Leave empty to keep everything. Short words (3 letters or fewer) match whole words only.

## `excludeKeywords` (type: `array`):

Items that mention any of these words are skipped.

## `domains` (type: `array`):

Keep only stories linking to these domains (for example github.com, nytimes.com). Subdomains count.

## `onlyNew` (type: `boolean`):

Remembers every item and, after the first run, saves only items that are new since last time. The first run saves everything and remembers it.

## `stateName` (type: `string`):

Use a different name for each separate watch list. Leave empty to use a name based on your sources.

## Actor input object example

```json
{
  "lists": [
    "top"
  ],
  "searchType": "story",
  "searchSort": "relevance",
  "hiringThread": "none",
  "hiringMonths": 1,
  "maxItemsPerSource": 30,
  "onlyNew": false
}
```

# Actor output Schema

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

Dataset with one row per story, comment or job post

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

Sources, items seen and rows saved, plus any errors

# 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 = {
    "lists": [
        "top"
    ],
    "maxItemsPerSource": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("techliondev/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 = {
    "lists": ["top"],
    "maxItemsPerSource": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("techliondev/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 '{
  "lists": [
    "top"
  ],
  "maxItemsPerSource": 30
}' |
apify call techliondev/hacker-news-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,techliondev/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/8Edv7Tp5N4m6mRjJ7/builds/HPsvuvK5ToFq8SaFV/openapi.json
