# Hacker News Scraper: Who's Hiring Jobs, Stories & Comments (`wrenfield-data/hacker-news-scraper`) Actor

Scrape Hacker News "Who is hiring?" jobs parsed into company, roles, location, remote, salary range, visa and tech stack, plus stories, Show HN, comments and brand mentions by keyword or domain, the live front page and full threads. Only-new monitoring. No login. $2/1K jobs.

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

## Pricing

from $1.40 / 1,000 who is hiring? jobs

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

## Hacker News Scraper: Who's Hiring Jobs, Stories & Comments

### What does Hacker News Scraper do?

**Hacker News Scraper** turns Hacker News into clean, structured data. Its headline feature is the monthly **"Ask HN: Who is hiring?"** thread parsed into real job fields: one row per company post with **company, roles, location, remote / onsite / hybrid, salary range (min, max, currency), visa sponsorship, seniority, tech stack, company website and apply links**. Scan the latest month or the last four years of threads.

It also covers the rest of Hacker News:

- **Stories search** by keyword or by linked domain, with Show HN, Ask HN, front-page and poll filters, minimum points and date windows. No 1,000-result cap when sorting by date.
- **Comments search** for brand, product and competitor mentions, each with its story context.
- **Live lists:** the current front page with rank, plus New, Best, Show HN, Ask HN and Jobs.
- **Full comment threads** of any story, flattened with depth and parent IDs.
- **Only-new monitoring** in every mode, so a daily schedule returns only what is new.

Built on Hacker News' official public APIs. No login, no cookies, no browser, no proxies. Fast and cheap: **$2 per 1,000 jobs**, $0.50 per 1,000 stories, $0.30 per 1,000 comments.

### What data can you get from Hacker News?

| "Who is hiring?" job | Story | Comment |
|---|---|---|
| Company, company website | Title, URL, domain | Text (plain, links kept) |
| Roles (as posted) | Story type: story, Show HN, Ask HN, Launch HN, job, poll | Author, posted time |
| Location line, remote / onsite / hybrid flags | Points, comment count | Story ID, title and URL |
| Job type: full-time, part-time, contract, internship | Author, posted time | Parent ID and depth (thread mode) |
| Salary text, min, max, currency | Front-page rank and list (live mode) | Links in the comment |
| Visa sponsorship (yes / no when stated) | Ask / Show HN text | HN link |
| Seniority: intern, new grad, senior, staff, lead, founding | HN link | |
| Technologies mentioned (Python, Rust, Go, React, Kubernetes, LLMs and 40+ more) | | |
| Apply URLs, hiring inbox (jobs@ / careers@ style addresses only) | | |
| Full description, likely-filled flag, replies | | |
| Thread month, posts by the same company across the scanned months | | |

### How to scrape Hacker News "Who is hiring?" jobs

1. Keep **What to scrape** on **"Who is hiring?" jobs**.
2. Set **months to scan** (1 = latest thread, 12 = the last year).
3. Optional filters: **Remote only**, **Location contains** (e.g. `NYC`, `London`, `EU`), **Visa sponsorship only**, **Jobs with a salary only**, **Keywords** (e.g. `Rust`, `LLM`).
4. Run, then export JSON, CSV or Excel, or pull the dataset through the API.

### Input examples

Remote Python and LLM jobs from the last 3 monthly threads:

```json
{
  "mode": "whos_hiring",
  "months": 3,
  "remoteOnly": true,
  "keywords": ["Python", "LLM"]
}
```

Every story that linked to a domain in the last 30 days:

```json
{
  "mode": "stories",
  "domain": "github.com",
  "newerThanDays": 30,
  "minPoints": 50
}
```

Daily brand-mention monitor across HN comments:

```json
{
  "mode": "comments",
  "keywords": ["Supabase", "Neon Postgres"],
  "onlyNew": true,
  "monitorName": "db-mentions"
}
```

### Output example ("Who is hiring?" job)

```json
{
  "type": "job",
  "company": "Marker Learning",
  "roles": ["Senior Full-Stack Engineer (Frontend-Leaning)"],
  "location": "Remote, US only",
  "remote": true,
  "onsite": false,
  "hybrid": false,
  "jobTypes": ["full-time"],
  "salaryText": "$180k–$200k",
  "salaryMin": 180000,
  "salaryMax": 200000,
  "salaryCurrency": "USD",
  "visaSponsorship": null,
  "seniority": ["senior"],
  "technologies": ["typescript", "react", "next.js"],
  "companyWebsite": "markerlearning.com",
  "applyEmails": ["careers@markerlearning.com"],
  "headerLine": "Marker Learning | Senior Full-Stack Engineer (Frontend-Leaning) | Full-time | Remote, US only | $180k–$200k | https://www.markerlearning.com",
  "likelyClosed": false,
  "postedAt": "2026-11-03T12:07:36.000Z",
  "hnUrl": "https://news.ycombinator.com/item?id=50350981",
  "threadMonth": "November 2026",
  "postsInScannedThreads": 1
}
```

### Who uses Hacker News job and story data?

- **Recruiters and sourcing teams:** every company hiring on HN this month, with pay, remote policy and stack, in one sheet.
- **Sales and partnerships:** HN hiring posts are a strong buying signal from engineering-led startups. Filter by stack (Kubernetes, Snowflake, Rust) to build account lists.
- **Job seekers and job boards:** a clean monthly feed of remote, visa-sponsoring and salary-transparent roles.
- **Founders and marketers:** track every mention of your product or competitors in comments, and every story linking to your domain.
- **Researchers and analysts:** salary ranges, remote share and technology trends month over month.

### Monitor Hacker News on a schedule

Turn on **Only items not seen in previous runs**, give it a **Monitor name**, and schedule the Actor in Apify Console (daily for mentions, monthly on the 2nd for "Who is hiring?"). Each run returns only new rows, so you pay only for new data. Connect the dataset to Slack, Google Sheets, Zapier, Make or a webhook to get alerts.

### How much does it cost to scrape Hacker News?

Pay per row saved, nothing else:

| Row | Price per 1,000 |
|---|---|
| "Who is hiring?" job (parsed) | $2.00 (down to $1.20 on higher Apify plans) |
| Story | $0.50 (down to $0.30) |
| Comment | $0.30 (down to $0.20) |

A full monthly "Who is hiring?" thread (about 250-400 company posts) costs well under $1. The live front page (30 stories) costs about $0.02.

### Use it from code, Make, Zapier or an AI agent

Call it through the Apify API, the Python and JavaScript clients, or any Apify integration. AI agents can call it through the Apify MCP server.

### Is it legal to scrape Hacker News?

This Actor reads Hacker News' official public APIs (the Algolia HN Search API and the Firebase HN API), which Hacker News provides for exactly this purpose. It collects only public posts. Posts by individuals looking for work ("Who wants to be hired?", freelancer "SEEKING WORK") are not collected, and only company hiring inboxes (jobs@, careers@ and similar) are extracted from job posts.

### Related tools

- [Luma Events Scraper](https://apify.com/wrenfield-data/luma-events-scraper): startup, AI and tech events by city with organizers, hosts and their LinkedIn
- [Y Combinator Scraper](https://apify.com/wrenfield-data/y-combinator-scraper): every YC company, founders and open jobs with salary and equity
- [Career Site Job Search](https://apify.com/wrenfield-data/career-site-job-search): 300K+ open jobs from Greenhouse, Lever, Ashby, Workable, Recruitee and Workday boards
- [Remote Jobs Scraper](https://apify.com/wrenfield-data/remote-jobs-scraper): remote roles from the major remote job boards
- [Google News Scraper](https://apify.com/wrenfield-data/google-news-scraper) and [Substack Scraper](https://apify.com/wrenfield-data/substack-scraper): news and newsletter monitoring

**Did it help?** If this tool saved you time, a short review on the Store helps other people find it. Feedback on what's missing is just as welcome.

# Actor input Schema

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

Pick the data you want. Prices are per row saved.

## `months` (type: `integer`):

1 = the latest monthly thread. 12 = the last year of threads (companies that post every month are flagged in postsInScannedThreads).

## `threadUrls` (type: `array`):

For "Who is hiring?": specific monthly threads (overrides months). For Full thread mode: any story URL or ID, e.g. https://news.ycombinator.com/item?id=50338728

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

Keep only posts that say REMOTE.

## `locations` (type: `array`):

Keep jobs whose location line mentions any of these, e.g. NYC, London, Berlin, EU.

## `visaSponsorshipOnly` (type: `boolean`):

Keep only posts that offer visa sponsorship.

## `withSalaryOnly` (type: `boolean`):

Keep only posts that state pay.

## `skipClosed` (type: `boolean`):

Drop posts whose author marked them as filled or no longer hiring.

## `keywords` (type: `array`):

Stories / Comments: search terms (one search each). Who is hiring? / Front page / Thread: keep only rows that mention any keyword (e.g. Rust, Python, LLM, your brand).

## `domain` (type: `string`):

Stories linking to a site, e.g. github.com or your-company.com.

## `storyType` (type: `string`):

Stories mode only.

## `sort` (type: `string`):

Stories / Comments: newest first pages through everything; relevance returns the best 1,000 matches.

## `newerThanDays` (type: `integer`):

Leave empty for all time.

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

Stories and front page: keep stories with at least this many points.

## `list` (type: `string`):

Front page mode: which live Hacker News list to read (up to 500 items).

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

Stop after this many rows (all modes).

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

Schedule the Actor and get only new jobs, stories or comments each run (seen IDs are kept in a named key-value store in your account).

## `monitorName` (type: `string`):

Optional. Runs with the same name share one seen-items list.

## Actor input object example

```json
{
  "mode": "whos_hiring",
  "months": 1,
  "remoteOnly": false,
  "visaSponsorshipOnly": false,
  "withSalaryOnly": false,
  "skipClosed": true,
  "storyType": "story",
  "sort": "date",
  "minPoints": 0,
  "list": "top",
  "maxItems": 500,
  "onlyNew": false
}
```

# Actor output Schema

## `results` (type: `string`):

No description

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

No description

# 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("wrenfield-data/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("wrenfield-data/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 wrenfield-data/hacker-news-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,wrenfield-data/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/vf6l4szb0kckUydwZ/builds/75o1vLe5Ea7u1uivb/openapi.json
