# Hacker News Trends, Show HN & Tech Jobs Extractor (`regenerative_cornice/hackernews-trends-jobs-extractor`) Actor

Extract Hacker News front-page stories, Show HN launches, Ask HN discussions, comments, and Who is Hiring tech jobs via the official Algolia HN API. Filter by keyword, tag, points, and date with trend velocity metrics for VCs, founders, n8n, and AI agents (MCP).

- **URL**: https://apify.com/regenerative_cornice/hackernews-trends-jobs-extractor.md
- **Developed by:** [John Erlbacher](https://apify.com/regenerative_cornice) (community)
- **Categories:** News, AI, 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 $1.80 / 1,000 hacker news items

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 Trends, Show HN & Tech Jobs Extractor (Algolia HN API)

Extract structured **Hacker News front-page stories, Show HN product launches, Ask HN discussions, YC/HN job posts, comments, and monthly "Ask HN: Who is hiring?" engineering jobs** directly from the **official public Hacker News Algolia Search API** (`https://hn.algolia.com/api/v1/search` and `/search_by_date`).

Built for **venture capital deal sourcing, startup founders tracking Show HN launches, developer-relations & product marketing teams, technical recruiters monitoring Who is Hiring threads, n8n alert automations, and AI agents (MCP)**.

Because this Actor consumes the official public Algolia Hacker News JSON API directly—with **zero API key required, zero proxy costs, zero CAPTCHAs, and sub-second responses**—your pipelines stay 100% legal, deterministic, and blazing fast.

***

### Why Use This Hacker News Extractor?

- **Trend Velocity Built-In:** Every record includes `ageHours`, `pointsPerHour` (points per hour velocity), `engagementRatio` (comments-to-points ratio), and normalized external `domain` (`github.com`, `arxiv.org`, `openai.com`) so you can spot breakout Show HN launches and viral developer tools hours before they peak.
- **Automated "Who is Hiring?" Job Parser:** Select `tag: "who_is_hiring"` and the Actor automatically resolves the latest official monthly `Ask HN: Who is hiring?` thread(s) by `whoishiring`, filters strictly to top-level job postings (ignoring nested Q\&A replies), strips HN HTML entities cleanly, and parses `companyName` plus `workMode` (`REMOTE`, `HYBRID`, `ONSITE`).
- **Full Algolia Filtering:** Combine full-text `query`, category `tag`, `sortBy` (`date` or `relevance`), `minPoints`, `daysBack` lookback window, and optional `author` filtering—paginated cleanly up to 1,000 deduplicated items per run.
- **Clean Plain-Text Output:** Converts Hacker News HTML (`<p>`, `<a href>`, `<i>`, `&#x27;`) into crisp plain text ready for LLMs, RAG vector stores, Slack notifications, Airtable, and SQL warehouses.

***

### Supported Hacker News Categories (`tag`)

| `tag` Value | What It Extracts | Best Use Cases |
| :--- | :--- | :--- |
| `front_page` | Live Hacker News Front Page stories | Daily tech briefings, viral trend monitoring, VC & founder digests |
| `show_hn` | `Show HN:` startup & open-source launches | Early-stage VC deal flow, SaaS competitor discovery, dev-tool scouting |
| `ask_hn` | `Ask HN:` founder & engineering questions | Market pain-point research, developer sentiment, B2B product discovery |
| `who_is_hiring` | Top-level job posts from monthly `Ask HN: Who is hiring?` threads | Tech recruiting, hiring velocity tracking, remote engineering job feeds |
| `job` | Official Y Combinator / HN job stories | Tracking funded YC startups actively hiring engineers |
| `story` | All Hacker News submitted stories | Keyword brand monitoring across all submissions (even before front page) |
| `comment` | Individual Hacker News comments | Brand mention alerts, product feedback mining, sentiment analysis |
| `all` | All HN item types combined | Broad keyword surveillance across stories, jobs, polls, and comments |

***

### Input Configuration

#### Example Input JSON (Show HN Breakout Launches)

```json
{
  "query": "AI",
  "tag": "show_hn",
  "sortBy": "date",
  "minPoints": 25,
  "daysBack": 7,
  "maxItems": 30
}
```

#### Example Input JSON (Monthly "Who is Hiring?" Remote Python Roles)

```json
{
  "query": "Python Remote",
  "tag": "who_is_hiring",
  "sortBy": "date",
  "minPoints": 0,
  "daysBack": 35,
  "maxItems": 50
}
```

#### Input Parameters

| Field | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `query` | `string` | `""` | Optional keyword search across titles, URLs, and post/comment text (e.g., `"MCP"`, `"Rust"`, `"Remote Python"`). |
| `tag` | `string` | `"front_page"` | One of `front_page`, `story`, `show_hn`, `ask_hn`, `who_is_hiring`, `job`, `comment`, `all`. |
| `sortBy` | `string` | `"date"` | `"date"` (newest-first via `search_by_date`) or `"relevance"` (popularity/relevance via `search`). |
| `minPoints` | `integer` | `0` | Minimum upvote score (`0` = no filter). Keep at `0` for `comment`, `job`, and `who_is_hiring` since Algolia omits points on comments and job posts. |
| `daysBack` | `integer` | `7` | Lookback window in days (`0` = all-time, `1`–`3650`). Use `30`–`45` (or `0`) for full monthly `who_is_hiring` threads. |
| `maxItems` | `integer` | `15` | Maximum deduplicated items to extract (`1`–`1000`). |
| `author` | `string` | `""` | Optional HN username filter (e.g., `"dang"`, `"whoishiring"`). |

***

### Normalized Output Schema

Every category outputs one unified JSON schema so downstream n8n nodes, databases, and AI agents work identically across stories, Show HN launches, comments, and tech jobs.

#### Example Output JSON (`show_hn` / `front_page`)

```json
{
  "objectId": "50601525",
  "itemType": "story",
  "title": "Perplexity and Intelligence",
  "url": "https://openai.com/index/perplexity-and-intelligence/",
  "domain": "openai.com",
  "hnUrl": "https://news.ycombinator.com/item?id=50601525",
  "author": "acossta",
  "points": 128,
  "numComments": 65,
  "ageHours": 1.41,
  "pointsPerHour": 90.78,
  "engagementRatio": 0.508,
  "createdAt": "2026-11-22T17:06:27Z",
  "createdAtUnix": 1795367187,
  "storyId": "50601525",
  "parentStoryTitle": "",
  "tags": ["story", "author_acossta", "story_50601525", "front_page"],
  "text": "",
  "companyName": "",
  "workMode": "",
  "sourceApiUrl": "https://hn.algolia.com/api/v1/search_by_date?hitsPerPage=15&numericFilters=created_at_i%3E%3D1794767000&page=0&tags=front_page"
}
```

#### Example Output JSON (`who_is_hiring`)

```json
{
  "objectId": "50341234",
  "itemType": "who_is_hiring",
  "title": "outGoing | Software Engineer | Lisbon, Portugal | HYBRID | €25k–€35k",
  "url": "",
  "domain": "",
  "hnUrl": "https://news.ycombinator.com/item?id=50341234",
  "author": "founder_handle",
  "points": 0,
  "numComments": 0,
  "ageHours": 480.25,
  "pointsPerHour": 0.0,
  "engagementRatio": 0.0,
  "createdAt": "2026-11-02T17:15:00Z",
  "createdAtUnix": 1793639700,
  "storyId": "50338728",
  "parentStoryTitle": "Ask HN: Who is hiring? (November 2026)",
  "tags": ["comment", "author_founder_handle", "story_50338728", "who_is_hiring"],
  "text": "outGoing | Software Engineer | Lisbon, Portugal | HYBRID | €25k–€35k\n\nStarted in Lisbon's local events scene and building next-gen ticketing...",
  "companyName": "outGoing",
  "workMode": "HYBRID",
  "sourceApiUrl": "https://hn.algolia.com/api/v1/search_by_date?hitsPerPage=20&numericFilters=parent_id%3D50338728&page=0&tags=comment%2Cstory_50338728"
}
```

***

### Pay-Per-Event Pricing (`hn-item`)

This Actor uses transparent Apify **Pay-Per-Event (PPE)** billing so you only pay for structured Hacker News records delivered:

- **Event name:** `hn-item` — charged once per unique item pushed to your dataset with a deterministic idempotency key (`hn-<objectId>`).
- **Zero-match runs cost $0 in item events** when your keyword or minimum points filter matches no recent posts.
- **Automatic budget enforcement:** the Actor checks `event_charge_limit_reached` on every item and exits cleanly the moment your maximum run spend is reached.

***

### Automate Show HN & Tech Hiring Alerts in n8n

Build a **High-Velocity Show HN Deal-Flow Slack Bot** in three n8n nodes:

1. **Schedule Trigger** — Run every 4 hours (or daily at 09:00 AM).
2. **HTTP Request (Apify Run-Sync Dataset Items)** — `POST` to:
   ```text
   https://api.apify.com/v2/acts/<YOUR_USERNAME>~hackernews-trends-jobs-extractor/run-sync-get-dataset-items?token={{$env.APIFY_TOKEN}}
   ```
   JSON Body:
   ```json
   {
     "query": "",
     "tag": "show_hn",
     "sortBy": "date",
     "minPoints": 30,
     "daysBack": 1,
     "maxItems": 20
   }
   ```
3. **Slack Node (`Send a Message`)** — Alert your team on every high-velocity launch:
   ```text
   :rocket: *{{ $json.title }}*
   *Velocity:* {{ $json.points }} pts ({{ $json.pointsPerHour }} pts/hr) | *Comments:* {{ $json.numComments }}
   *Domain:* {{ $json.domain || "news.ycombinator.com" }} | *Author:* {{ $json.author }}
   *Link:* {{ $json.url || $json.hnUrl }} | <{{ $json.hnUrl }}|HN Thread>
   ```

***

### Use with AI Agents & Model Context Protocol (MCP)

Connect this Actor directly to **Claude Desktop, Cursor, Windsurf, OpenAI Agents, or LangGraph** through the official Apify MCP Server so your AI copilot can search live Hacker News launches, developer discussions, and hiring threads on demand:

```json
{
  "mcpServers": {
    "apify-hackernews": {
      "command": "npx",
      "args": [
        "-y",
        "@apify/actors-mcp-server",
        "--actors",
        "<YOUR_USERNAME>/hackernews-trends-jobs-extractor"
      ],
      "env": {
        "APIFY_TOKEN": "<YOUR_APIFY_API_TOKEN>"
      }
    }
  }
}
```

**Example Agent Prompts:**

- *"Find the top 20 Show HN launches from the past 7 days with at least 40 points, rank them by `pointsPerHour` velocity, and group them by category."*
- *"Search the latest Hacker News Who is Hiring thread (`tag: who_is_hiring`, `daysBack: 35`) for remote Rust or AI infrastructure roles and build a comparison table of company, work mode, and HN link."*
- *"Monitor Hacker News comments mentioning our open-source tool over the last 14 days and summarize developer feature requests."*

***

### Data Source & Attribution

All records are retrieved directly from the official public **Hacker News Search API powered by Algolia** (`https://hn.algolia.com/api/v1`). No scraping of HTML pages, no authentication tokens, and full compliance with Hacker News & Algolia public API usage guidelines.

# Actor input Schema

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

Optional full-text keyword query matched across titles, URLs, and post/comment text (e.g., "AI agents", "Rust", "MCP", "Remote Python"). Leave empty to fetch all matching items for the selected tag.

## `tag` (type: `string`):

Select which Hacker News feed or item type to extract. "who_is_hiring" automatically finds the latest official monthly "Ask HN: Who is hiring?" thread(s) and extracts top-level job postings with parsed company name and remote/hybrid/onsite work mode.

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

Choose chronological newest-first sorting (Algolia search_by_date) or relevance/popularity ranking (Algolia search).

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

Minimum upvote score required (0 = no points filter). Note: HN comments and job posts do not carry upvote points in Algolia, so keep this at 0 when extracting comments, job posts, or Who is Hiring threads.

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

Only return items created within the last N days (e.g., 1, 7, 30). Set to 0 for all-time history without a date restriction. For monthly Who is Hiring threads, use 30-45 days (or 0) to capture the full active monthly thread.

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

Maximum number of Hacker News items to extract (1 to 1000).

## `author` (type: `string`):

Optional Hacker News username filter (e.g., "dang", "pg", "whoishiring"). Leading "@" is stripped automatically.

## Actor input object example

```json
{
  "query": "",
  "tag": "front_page",
  "sortBy": "date",
  "minPoints": 0,
  "daysBack": 7,
  "maxItems": 15,
  "author": ""
}
```

# Actor output Schema

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

Structured overview table of extracted Hacker News items and trend velocity metrics.

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

All extracted Hacker News records in the default dataset.

# 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": "",
    "tag": "front_page",
    "sortBy": "date",
    "minPoints": 0,
    "daysBack": 7,
    "maxItems": 15
};

// Run the Actor and wait for it to finish
const run = await client.actor("regenerative_cornice/hackernews-trends-jobs-extractor").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": "",
    "tag": "front_page",
    "sortBy": "date",
    "minPoints": 0,
    "daysBack": 7,
    "maxItems": 15,
}

# Run the Actor and wait for it to finish
run = client.actor("regenerative_cornice/hackernews-trends-jobs-extractor").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": "",
  "tag": "front_page",
  "sortBy": "date",
  "minPoints": 0,
  "daysBack": 7,
  "maxItems": 15
}' |
apify call regenerative_cornice/hackernews-trends-jobs-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,regenerative_cornice/hackernews-trends-jobs-extractor"
        }
    }
}
```

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/BAdQvEbHGTex0Frue/builds/1dsCnxbsoCuURXxhz/openapi.json
