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

Search and export Hacker News stories, comments, Show HN, Ask HN, front page and user posts, filtered by points, comments and date. Parses the monthly 'Who is hiring?' thread into jobs (company, role, location, remote, salary). Monitor mode: only new items.

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

## Pricing

from $0.30 / 1,000 story or comment results

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 Jobs

Export **Hacker News** data in seconds: **keyword search** across stories and comments, the **current front page**, **Show HN** and **Ask HN** posts, everything **posted by a user**, and the monthly **"Ask HN: Who is hiring?"** thread parsed into structured **jobs** (company, role, location, remote/hybrid/onsite, salary, emails, links).

Uses the public **HN Search API by Algolia**, the same backend that powers search on news.ycombinator.com. Fast, stable, no login, no proxies.

### Features

- ✅ **4 modes:** search, front page, Who is hiring (also "Who wants to be hired?" and "Freelancer?"), user posts
- ✅ **Filters:** item type, minimum points, minimum comments, posted within N days or since a date
- ✅ **Goes past the 1,000-result cap:** newest-first searches automatically page back in time
- ✅ **Monitor mode:** schedule it and get only **new** mentions, launches or job posts
- ✅ **Clean text:** HTML stripped, links kept

### Use cases

- **Brand & competitor monitoring:** get every new HN mention of your product, emailed or sent to Slack
- **Recruiting & job seekers:** the full Who is hiring thread as a spreadsheet, filtered by remote, keywords and salary
- **Developer marketing & VCs:** track Show HN launches and trending topics
- **Researchers & AI teams:** build datasets of high-quality tech discussion

### Input examples

**Every story mentioning "Shopify" with 50+ points in the last year**

```json
{ "mode": "search", "query": "shopify", "itemTypes": ["story"], "minPoints": 50, "postedWithinDays": 365, "maxItems": 500 }
```

**Remote Python jobs from the latest Who is hiring thread**

```json
{ "mode": "whoIsHiring", "keywords": ["python"], "remoteOnly": true, "maxItems": 1000 }
```

**Daily alerts for new comments mentioning your brand**

```json
{ "mode": "search", "query": "yourbrand", "itemTypes": ["story", "comment"], "onlyNew": true, "monitorKey": "brand" }
```

### Output example (story)

```json
{
  "id": 45180000, "type": "story", "title": "Shopify acquires Tailwind", "url": "https://example.com/post",
  "author": "pg", "points": 1149, "numComments": 412, "createdAt": "2026-09-09T13:27:11+00:00",
  "hnUrl": "https://news.ycombinator.com/item?id=45180000"
}
```

### Output example (Who is hiring job)

```json
{
  "type": "hiring_post", "company": "NeuralFrame", "role": "Senior Backend Engineer, Medical Data Pipeline (Python + Rust)",
  "location": "REMOTE (US only)", "workplaceType": "remote", "salary": "$170k–$210k", "emails": [], "links": ["https://neuralframe.example/jobs"],
  "headline": "NeuralFrame | Senior Backend Engineer ... | REMOTE (US only) | $170k–$210k", "text": "Full post text…",
  "threadTitle": "Ask HN: Who is hiring? (October 2026)", "hnUrl": "https://news.ycombinator.com/item?id=45400000"
}
```

Job fields are parsed from the free-text first line that HN posters use ("Company | Role | Location | ..."). The full original text is always included.

### How much does it cost?

**$0.30 per 1,000 stories/comments**, **$1 per 1,000 Who-is-hiring job posts** (+ $0.00005 per run start). Monitor mode only charges for new items.
You set a maximum charge per run, so you never pay more than you allow. Apify's free plan includes monthly credit, enough to try this Actor at no cost.

### FAQ

**Is this allowed?**

Yes. It uses the public HN Search API by Algolia, which Hacker News itself links to for search.

**Can I get more than 1,000 results?**

Yes, for newest-first searches the Actor pages back in time automatically.

**How do I get alerts?**

Turn on monitor mode and schedule the Actor; connect Slack, email or a webhook via Apify integrations.

**Is it legal?**

It only reads public data that the site or platform publishes openly (no login, no bypassing). You are responsible for using the data in line with applicable laws such as GDPR.

**Something broke or a field is missing?**

Open an issue on the Issues tab; we fix reported problems fast.

### More tools from this developer

**Jobs & recruiting:** [Career Page Jobs Scraper: Greenhouse, Lever, Ashby + 3 more](https://apify.com/cuddly_wattle/ats-jobs-monitor) · [Greenhouse Jobs Scraper & New Jobs Monitor](https://apify.com/cuddly_wattle/greenhouse-jobs-scraper) · [Lever Jobs Scraper & New Jobs Monitor](https://apify.com/cuddly_wattle/lever-jobs-scraper) · [Ashby Jobs Scraper & New Jobs Monitor](https://apify.com/cuddly_wattle/ashby-jobs-scraper) · [Workable Jobs Scraper & New Jobs Monitor](https://apify.com/cuddly_wattle/workable-jobs-scraper) · [SmartRecruiters Jobs Scraper & New Jobs Monitor](https://apify.com/cuddly_wattle/smartrecruiters-jobs-scraper)

**E-commerce:** [Shopify & WooCommerce Scraper + Price & Stock Monitor](https://apify.com/cuddly_wattle/shopify-woocommerce-price-monitor)

**Websites & SEO:** [Bulk PageSpeed & Core Web Vitals Checker](https://apify.com/cuddly_wattle/pagespeed-lighthouse-bulk-auditor) · [Sitemap & RSS New Page Monitor](https://apify.com/cuddly_wattle/sitemap-rss-new-page-monitor) · [Bulk Domain WHOIS, DNS & SSL Checker (RDAP)](https://apify.com/cuddly_wattle/domain-whois-dns-ssl-lookup) · [Website Tech Stack Detector](https://apify.com/cuddly_wattle/website-tech-stack-detector)

**Apps, data & research:** [App Store Reviews Scraper & Monitor + App Details](https://apify.com/cuddly_wattle/app-store-reviews-monitor)

# Actor input Schema

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

Pick a mode, then fill the matching fields below.

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

Search mode: e.g. 'open source LLM', 'Shopify', your brand or competitor.

## `itemTypes` (type: `array`):

Search/user mode: which kinds of items to return.

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

Newest-first can go beyond 1,000 results (we page back in time).

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

Only stories with at least this many points.

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

Only stories with at least this many comments.

## `postedWithinDays` (type: `integer`):

Leave empty for all time.

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

Alternative to the days filter.

## `username` (type: `string`):

User mode: e.g. 'pg' or 'dang'.

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

Who-is-hiring mode: which monthly thread.

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

e.g. 'November 2026'. Empty = latest thread.

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

Who-is-hiring mode: keep posts mentioning any of these (python, rust, senior, React...).

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

Who-is-hiring mode.

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

Stop after this many results.

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

Remember items already returned (per mode + monitor key) and return only new ones. Schedule it for alerts.

## `monitorKey` (type: `string`):

Use different keys for different saved searches.

## Actor input object example

```json
{
  "mode": "search",
  "query": "AI agents",
  "itemTypes": [
    "story"
  ],
  "sortBy": "date",
  "hiringThread": "hiring",
  "remoteOnly": false,
  "maxItems": 200,
  "onlyNew": false,
  "monitorKey": "default"
}
```

# Actor output Schema

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

Stories, comments or hiring posts.

# 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 = {
    "query": "AI agents"
};

// Run the Actor and wait for it to finish
const run = await client.actor("cuddly_wattle/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 = { "query": "AI agents" }

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

```

## MCP server setup

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