# Hacker News Scraper: Stories, Comments, Who is Hiring (`tenderwire/hacker-news`) Actor

Get Hacker News front page stories, search stories and comments by keyword, or turn the monthly Who is Hiring thread into a job table (company, role, location, remote, salary). Official HN Search API, fast and cheap.

- **URL**: https://apify.com/tenderwire/hacker-news.md
- **Developed by:** [TenderWire Data](https://apify.com/tenderwire) (community)
- **Categories:** News, Social media
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 items

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/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: Stories, Comments, Who is Hiring

Get data from **Hacker News** in three ways, as a clean table you can export or feed into other tools:

- **Front page**: the stories on the HN front page right now, with points, comment counts and links.
- **Search**: every story and/or comment that mentions your keywords (your brand, a competitor, a technology) in a date range.
- **Who is hiring**: the monthly "Ask HN: Who is hiring?" thread turned into a job table: company, role, location, remote, salary and link.

It uses the official Hacker News search API (run by Algolia for Y Combinator): fast, reliable and very cheap to run.

### Who uses it?

- **Founders and marketers** tracking mentions of their product or competitors on HN.
- **Developer relations and community teams** following discussions about their technology.
- **Recruiters and job seekers** reading the Who is hiring thread as a filterable job list.
- **Researchers and analysts** studying tech trends, launches and discussions.

### What data do you get?

| Field | Example |
|---|---|
| type | story, comment or hiring_post |
| title, url, domain | story title and the linked article |
| text | comment or post text as plain text |
| points, numComments | 412, 187 |
| createdAt | when it was posted |
| storyId, storyTitle | the discussion a comment belongs to |
| hnUrl | link to the item on news.ycombinator.com |
| company, role, location, workplace, isRemote, salary | for Who is hiring posts |

### How to use it

1. Click **Try for free**.
2. Choose **What to get**: Front page, Search, or Who is hiring.
3. For Search, enter a query and the content types; for Who is hiring, optionally add keywords or **Only remote job posts**.
4. Click **Start**. Runs take seconds.
5. Export to Excel, CSV or JSON, or send results to Slack, Google Sheets, email, Zapier or Make.

### Input examples

Brand monitoring, daily:

```json
{
    "mode": "search",
    "query": "supabase",
    "contentTypes": ["story", "comment"],
    "daysBack": 2,
    "onlyNewSinceLastRun": true
}
```

Remote Rust and Python jobs from the latest Who is hiring thread:

```json
{
    "mode": "whoIsHiring",
    "hiringKeywords": ["rust", "python"],
    "remoteOnly": true
}
```

### Output example (Who is hiring)

```json
{
    "source": "hacker-news",
    "type": "hiring_post",
    "id": "50338732",
    "title": "Simple Analytics | DevOps Engineer | REMOTE (worldwide, any timezone) | Full-time, 32h, 24h possible | €5,000/month (full-time) | https://www.simpleanalytics.com/jobs/devops",
    "url": "https://www.simpleanalytics.com/jobs/devops",
    "domain": "simpleanalytics.com",
    "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...",
    "points": null,
    "numComments": null,
    "createdAt": "2026-11-02T16:01:43.000Z",
    "storyId": "50338728",
    "storyTitle": "Ask HN: Who is hiring? (November 2026)",
    "hnUrl": "https://news.ycombinator.com/item?id=50338732",
    "tags": [
        "comment",
        "who_is_hiring"
    ],
    "company": "Simple Analytics",
    "role": "DevOps Engineer",
    "location": "REMOTE (worldwide, any timezone)",
    "workplace": "remote",
    "isRemote": true,
    "salary": "€5,000/month (full-time)",
    "scrapedAt": "2026-11-05T15:00:00.000Z"
}
```

### How much does it cost?

**Pay per result: $1 per 1,000 items** delivered, plus a tiny Apify start fee per run.

- The front page is about 30 stories; a monthly Who is hiring thread has 150 to 400 job posts.
- A daily brand-monitoring run usually returns a handful to a few dozen items.
- Apify's free plan includes monthly credit, enough to run it many times.

### Alerts mode and integrations

Turn on **Only new since last run** and schedule the Actor (hourly or daily). It remembers delivered items in your own Apify account and outputs only new ones, which is ideal for brand mentions in Slack. Use a different **Alerts state name** for each saved search.

### Privacy

Author usernames are never included. Personal email addresses inside post text are replaced with "\[email removed]" (company mailboxes like jobs@ are kept), and "Who wants to be hired" and freelancer threads, where individuals post about themselves, are excluded from search results.

### FAQ

**Is this legal?**
Yes. It uses the public Hacker News search API, which Algolia provides for anyone to use, and outputs no personal data.

**Why do search results stop at some point?**
In "Most relevant" sort, the API returns at most 1,000 results. Use "Newest first" (the default) to get every match in the date range.

**How accurate is the Who is hiring parsing?**
Company is read from the first line of each post, which nearly all posts follow ("Company | Role | Location | ..."). Role, location and salary are filled when the post states them in that line. The full text is always included.

**Something looks wrong?**
Open an issue on the Issues tab. An automatic self-check runs every day, and problems are usually fixed within a day.

# Actor input Schema

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

Front page = stories on the HN front page now. Search = stories and/or comments matching a query. Who is hiring = job posts from the monthly Ask HN: Who is hiring? thread.

## `query` (type: `string`):

Search mode: keywords, e.g. your brand, a competitor or a technology.

## `contentTypes` (type: `array`):

Search mode: story, comment, ask_hn, show_hn, job, poll.

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

Search mode: newest first (gets every match in the date range) or most relevant (top 1,000).

## `daysBack` (type: `integer`):

Search mode: only items from the last N days.

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

Only stories with at least this many points.

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

Only stories with at least this many comments.

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

latest, or a month like 2026-10.

## `hiringKeywords` (type: `array`):

Keep job posts containing any of these words, e.g. rust, python, machine learning, Berlin.

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

Keep only job posts that mention REMOTE.

## `onlyNewSinceLastRun` (type: `boolean`):

Remember delivered items and output only new ones on the next run. Great for brand mentions and new job posts.

## `stateKey` (type: `string`):

Use a different name for each saved search that runs in alerts mode.

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

Stop after this many items. You only pay for items delivered.

## `proxyConfiguration` (type: `object`):

Not needed: the HN Search API is open.

## `selfCheck` (type: `boolean`):

For the maintainer. Checks the API still returns the fields we read and writes a SELF_CHECK report. Outputs no items.

## Actor input object example

```json
{
  "mode": "frontPage",
  "contentTypes": [
    "story"
  ],
  "sortBy": "date",
  "daysBack": 7,
  "hiringMonth": "latest",
  "remoteOnly": false,
  "onlyNewSinceLastRun": false,
  "stateKey": "default",
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "selfCheck": false
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `hiring` (type: `string`):

No description

## `allFields` (type: `string`):

No description

## `selfCheck` (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 = {
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("tenderwire/hacker-news").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 = { "maxItems": 50 }

# Run the Actor and wait for it to finish
run = client.actor("tenderwire/hacker-news").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 '{
  "maxItems": 50
}' |
apify call tenderwire/hacker-news --silent --output-dataset

```

## MCP server setup

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

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/tdPMatXqGLh7huLIw/builds/tjUbU2WrNksEFgFxR/openapi.json
