# Hacker News Intelligence & Show HN / Hiring API (`accessible_stockade/hacker-news-intelligence-api`) Actor

Fast, zero-proxy Hacker News search & monitoring API for Show HN launches, Who is Hiring jobs, Ask HN threads, stories, and comments via Algolia HN API. Pay-Per-Event + MCP-ready.

- **URL**: https://apify.com/accessible_stockade/hacker-news-intelligence-api.md
- **Developed by:** [Amir Baram](https://apify.com/accessible_stockade) (community)
- **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 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.

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 Intelligence & Show HN / Hiring API

**Search and monitor Hacker News in real time—Show HN product launches, YC jobs, Ask HN threads, front-page stories, and brand-mention comments. Zero proxies, zero headless browsers, Pay-Per-Event + MCP-ready.**

Built for SaaS founders, VC analysts, developer marketers, and AI agents tracking emerging startups, hiring signals, and community sentiment (`128–512 MB` RAM).

***

### Key Features

- **Official Algolia HN Search API:** Sub-second JSON extraction with zero anti-bot overhead.
- **6 Content Modes:** `show_hn`, `story`, `ask_hn`, `job`, `front_page`, and `comment`.
- **Precision Filters:** Filter by keyword `query`, `minPoints`, `minComments`, `daysBack`, and `sortBy` (`date` or `relevance`).
- **Clean Plain-Text Output:** HTML entities and tags are automatically cleaned for immediate LLM / RAG ingestion.
- **MCP-Ready:** Plug directly into Claude, Cursor, n8n, or Make via `https://mcp.apify.com`.

***

### Input Example

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

### Output Example

```json
{
  "id": "46123456",
  "type": "show_hn",
  "title": "Show HN: Open-source SQL copilot for Postgres",
  "author": "founder_dev",
  "points": 142,
  "numComments": 48,
  "createdAt": "2026-11-20T15:10:00Z",
  "text": "Hey HN! We built a lightweight SQL copilot...",
  "url": "https://example.com",
  "hnUrl": "https://news.ycombinator.com/item?id=46123456",
  "tags": ["story", "show_hn", "author_founder_dev"]
}
```

***

### Transparent Pay-Per-Event Pricing

| Event Name | Triggered When | Price |
| :--- | :--- | ---: |
| `apify-actor-start` | Actor run starts (waives first 5s compute) | `$0.005` / run |
| `result-item` | One Hacker News item pushed to dataset | `$0.30` / 1,000 items |

***

### Connect as an MCP Tool (Claude, Cursor, n8n, Make)

Connect your MCP client to **`https://mcp.apify.com`** with your Apify API token, enable **`hacker-news-intelligence-api`**, and ask your agent: *"Find the top 20 Show HN AI launches from the last 14 days with at least 25 points."*

# Actor input Schema

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

Full-text keyword or brand mention to search (e.g. 'AI agent', 'Postgres', 'YC'). Leave empty to pull all recent posts of the selected content type.

## `contentType` (type: `string`):

Select which Hacker News stream to search (Show HN, All Stories, Ask HN, YC Jobs, Front Page, or Comments).

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

Sort matching Hacker News posts by newest creation date or top relevance/points.

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

Only return posts with at least this many upvotes/points.

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

Only return posts with at least this many comments.

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

Restrict results to posts created within the last N days.

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

Maximum number of Hacker News items to extract.

## Actor input object example

```json
{
  "query": "AI",
  "contentType": "show_hn",
  "sortBy": "date",
  "minPoints": 0,
  "minComments": 0,
  "maxItems": 50
}
```

# Actor output Schema

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

// Run the Actor and wait for it to finish
const run = await client.actor("accessible_stockade/hacker-news-intelligence-api").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" }

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

```

## MCP server setup

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

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/Myr8nDUw04MAgWKF3/builds/ZEfjidZQIxX23CB3g/openapi.json
