# Hacker News Scraper: Stories, Show HN & Who is Hiring Jobs (`kayorama/hacker-news-stories-hiring-feed`) Actor

Get Hacker News stories by keyword, points and date, or every Who is Hiring job post parsed into company, role, location, remote, salary and apply link. Keyword alerts. No usernames.

- **URL**: https://apify.com/kayorama/hacker-news-stories-hiring-feed.md
- **Developed by:** [Kayorama](https://apify.com/kayorama) (community)
- **Categories:** Jobs, Automation, 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 $0.15 / 1,000 stories

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, Show HN & Who is Hiring Jobs

Two feeds in one Actor, both built on the official Hacker News search API (hn.algolia.com):

- **Stories:** front page, Show HN, Ask HN or all new stories, filtered by keyword, points, comments and time window.
- **Who is Hiring:** every job post from the monthly "Ask HN: Who is hiring?" thread, split into company, roles, location, remote, salary, visa and apply link.

Add alert keywords to flag rows that mention your brand, a competitor or a technology. Turn on tracking and schedule it, and each run gives you only what you haven't seen yet.

No login, no API key, no proxy, no browser. Usernames are never part of the output.

### Good for

- **Brand and competitor monitoring:** get every HN story that mentions your product or a rival, the hour it shows up.
- **Recruiting and sales:** a clean table of companies hiring on HN this month, with salary ranges and apply links. Hiring is a strong buying signal.
- **Job seekers:** filter Who is Hiring by `rust`, `remote` and `EU` instead of scrolling 400 comments.
- **Newsletters and digests:** the top Show HN or front page stories of the week, ready for a template.
- **Research:** how often a topic or domain hits the front page over time.

### What you get

#### Stories (one row per story)

| Field | Example |
| --- | --- |
| `id`, `hnUrl` | 50522776, https://news.ycombinator.com/item?id=50522776 |
| `kind` | `story`, `show_hn`, `ask_hn`, `job` or `poll` |
| `title` | Launch HN: Axonnic (YC F26), sleeves that track fingers |
| `url`, `domain` | the linked article and its domain |
| `points`, `numComments` | 22, 8 |
| `createdAt` | 2026-11-16T20:29:48Z |
| `onFrontPage` | true |
| `storyText` | text of Ask HN / Launch HN posts (optional) |
| `matchedQueries` | which of your search keywords found it |

#### Who is Hiring (one row per job post)

| Field | Example |
| --- | --- |
| `company` | Bridge AI Consulting |
| `roles` | \["AI Consultant, Junior AI Consultant"] |
| `locations` | \["US"] |
| `remote`, `remoteDetails`, `workplaceType` | true, REMOTE (US), remote |
| `employmentType` | Full-time |
| `salaryText`, `salaryMin`, `salaryMax`, `salaryCurrency` | $60K-$100K base, 60000, 100000, USD |
| `visaSponsorship` | true |
| `applyUrl`, `applyByEmail`, `companyUrl` | careers page link, false |
| `possiblyClosed` | true when the poster added "no longer hiring" |
| `headline` | the "Company | Role | Location | ..." line |
| `description` | the full post as plain text (optional) |
| `threadMonth`, `threadId`, `postedAt`, `hnUrl` | November 2026, ... |

Every row also has `matchedAlertKeywords` and, with tracking on, `changeType` (`new` or `seen`) and `firstSeenAt`.

Fields come from the poster's own header line, so they are as good as the post. On the November 2026 thread, 220 of 245 top-level comments were job posts. 193 had an apply link and 73 had a salary range. Comments without a "Company | Role | ..." header (questions, replies, people looking for work) are skipped and not charged.

### Privacy

- Usernames are never output, for stories or jobs.
- In job posts and story text, email addresses (including `name [at] company` spellings), phone numbers, personal profile links (HN, LinkedIn, X, Calendly and similar) and names introduced with "I'm ..." or "contact me, ..." are replaced with `[email removed]`, `[name removed]` and so on. Apply links to company careers pages stay.
- "Who wants to be hired?" threads, where people post about themselves, are never read.

Name removal is pattern-based, so a name written in an unusual way can slip through in the free text. If you only need the structured fields, turn off **Include job text**.

### Input

| Field | What it does |
| --- | --- |
| `mode` | `stories` or `whoIsHiring` |
| `storyTypes` | All stories, Front page, Show HN, Ask HN, YC job ads, Polls |
| `searchQueries`, `titleOnly` | Keywords, one search per line, optionally matched in title and URL only |
| `lookbackHours`, `minPoints`, `minComments` | Time window and quality filters |
| `includeStoryText` | Add the text of text posts |
| `hiringMonths` | How many monthly hiring threads to read (1 = this month) |
| `jobKeywords`, `remoteOnly`, `locations` | Job filters |
| `includeDescription`, `maxDescriptionChars` | Job text, with a length cap |
| `alertKeywords`, `alertsOnly` | Flag rows that mention these words, or keep only those rows |
| `trackChanges`, `outputMode`, `stateStoreName` | Remember what you've seen and output only new items |
| `maxItems`, `requestDelayMs` | Limits and pacing |

Example 1, brand monitoring every hour:

```json
{
    "mode": "stories",
    "storyTypes": ["story"],
    "searchQueries": ["supabase", "neon postgres"],
    "lookbackHours": 6,
    "trackChanges": true,
    "outputMode": "changesOnly"
}
```

Example 2, remote Rust jobs from the last two hiring threads:

```json
{
    "mode": "whoIsHiring",
    "hiringMonths": 2,
    "jobKeywords": ["rust"],
    "remoteOnly": true
}
```

### Monitoring setup

1. Set your filters and turn on **Track what you've already seen**.
2. Set **Output** to "Only new items".
3. Schedule it: hourly for brand alerts, or daily in the first week of the month for Who is Hiring (posts keep coming in for days).
4. Send new rows to Slack, email or a webhook with an Apify integration.

The memory lives in a named key-value store (`hacker-news-feed-state` by default). Use a different name for each schedule.

### Pricing

Pay per event, no start fee:

| Event | Price |
| --- | --- |
| Story (one story row) | $0.00015 |
| Job posting (one parsed Who is Hiring job row) | $0.001 |

1,000 stories cost $0.15. A full Who is Hiring month (about 220 jobs) costs about $0.22. With "Only new items" you only pay for rows you haven't seen. Skipped comments and filtered-out rows are free.

### FAQ

**Is this allowed?**
It uses the public HN search API that Algolia runs for Hacker News, at a slow, steady pace. No scraping of news.ycombinator.com pages.

**How fresh is the data?**
The API usually has new stories and comments within a minute or two. Points and comment counts are a snapshot at run time.

**Why did a job post not parse well?**
Posts that skip the usual `Company | Role | Location | ...` header, or squeeze several roles into one line, get fewer structured fields. The full text is still in `description`.

**Can I get comments on stories?**
Not in this version. It's on the list.

### Support

Found a bug or want a field added? Open an issue on the Actor's Issues tab and I'll take a look.

# Actor input Schema

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

Stories from Hacker News, or job posts from the monthly "Ask HN: Who is hiring?" threads.

## `storyTypes` (type: `array`):

Which stories to include. Front page means stories that made the HN front page.

## `searchQueries` (type: `array`):

Only stories matching these words, for example postgres or your company name. Each line is a separate search. Leave empty for all stories.

## `titleOnly` (type: `boolean`):

By default keywords also match the text of Ask HN and Launch HN posts. Turn this on for tighter results.

## `lookbackHours` (type: `integer`):

How far back to look. 24 = the last day, 168 = the last week.

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

Skip stories with fewer points.

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

Skip stories with fewer comments.

## `includeStoryText` (type: `boolean`):

Add the post text for text posts. Emails, phone numbers, profile links and introduced names are removed.

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

How many monthly threads to read, newest first. 1 = this month.

## `jobKeywords` (type: `array`):

Keep only job posts that mention one of these, for example rust, python or data engineer.

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

Keep only posts marked remote.

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

Keep only posts that mention one of these places, for example Berlin, London or EU.

## `includeDescription` (type: `boolean`):

Add the full post text, with emails, phone numbers, profile links and introduced names removed.

## `maxDescriptionChars` (type: `integer`):

Longer posts are cut.

## `alertKeywords` (type: `array`):

Words to watch for, for example your brand, a competitor or a technology. Matches are listed in matchedAlertKeywords on each row.

## `alertsOnly` (type: `boolean`):

Drop rows that match none of the alert keywords.

## `trackChanges` (type: `boolean`):

Remember item ids between runs. Rows get changeType new or seen, and firstSeenAt.

## `outputMode` (type: `string`):

With tracking on, output everything or only items you have not seen in earlier runs.

## `stateStoreName` (type: `string`):

Named key-value store that remembers seen ids. Use a different name per schedule.

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

Stop after this many rows.

## `requestDelayMs` (type: `integer`):

Pause between requests to the HN API.

## Actor input object example

```json
{
  "mode": "stories",
  "storyTypes": [
    "front_page"
  ],
  "searchQueries": [],
  "titleOnly": false,
  "lookbackHours": 24,
  "minPoints": 0,
  "minComments": 0,
  "includeStoryText": false,
  "hiringMonths": 1,
  "jobKeywords": [],
  "remoteOnly": false,
  "locations": [],
  "includeDescription": true,
  "maxDescriptionChars": 4000,
  "alertKeywords": [],
  "alertsOnly": false,
  "trackChanges": false,
  "outputMode": "all",
  "stateStoreName": "hacker-news-feed-state",
  "maxItems": 200,
  "requestDelayMs": 500
}
```

# Actor output Schema

## `stories` (type: `string`):

No description

## `jobs` (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 = {
    "searchQueries": [],
    "jobKeywords": [],
    "locations": [],
    "alertKeywords": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("kayorama/hacker-news-stories-hiring-feed").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 = {
    "searchQueries": [],
    "jobKeywords": [],
    "locations": [],
    "alertKeywords": [],
}

# Run the Actor and wait for it to finish
run = client.actor("kayorama/hacker-news-stories-hiring-feed").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 '{
  "searchQueries": [],
  "jobKeywords": [],
  "locations": [],
  "alertKeywords": []
}' |
apify call kayorama/hacker-news-stories-hiring-feed --silent --output-dataset

```

## MCP server setup

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

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/8iOYb8JTFCC5j2ATC/builds/2sovEh7TEKlt4db89/openapi.json
