Hacker News Scraper — Hacker News Search & Show HN API avatar

Hacker News Scraper — Hacker News Search & Show HN API

Pricing

$2.50 / 1,000 extracted hacker news records

Go to Apify Store
Hacker News Scraper — Hacker News Search & Show HN API

Hacker News Scraper — Hacker News Search & Show HN API

Scrape Hacker News (Y Combinator) stories, Show HN launches & Ask HN threads via Algolia API. Extracts points, comment counts, author karma signals, target root domains & controversy ratios.

Pricing

$2.50 / 1,000 extracted hacker news records

Rating

0.0

(0)

Developer

PROOFNEXA

PROOFNEXA

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

1

Monthly active users

a month ago

Last modified

Features

Limited permissions

Share

Scrape Hacker News (Y Combinator) stories, Show HN launches & Ask HN threads via Algolia API. Extracts points, comment counts, author karma signals, target root domains & controversy ratios.


1. Architecture & Extraction Pipeline

  • Extraction Mechanism: Computes points-per-hour velocity, comment-to-point controversy ratio & automatically parses the external startup root domain for developer marketing.
  • Proxy Overhead: None required for standard runs. Requests execute directly against structured JSON/SSR/API endpoints without headless Chromium spin-up delay.
  • Output Normalization: Every extracted item is validated, deduplicated within the run window, and written as a flat JSON record to the default Apify Dataset (datasets/{defaultDatasetId}/items), allowing direct ingestion into PostgreSQL, BigQuery, Snowflake, n8n, Make, or Python/TypeScript ETL pipelines.
  • Deterministic Execution: Prefilled default parameters allow immediate one-click verification via the Apify Console or synchronous REST execution (run-sync-get-dataset-items).

2. Verified Production Dataset Sample

The following JSON record was captured directly from a live production execution of vivid_astronaut/hacker-news-search-scraper on Apify Cloud:

[
{
"platform": "news.ycombinator.com",
"query": "Show HN",
"objectID": "3742902",
"title": "Show HN: This up votes itself",
"author": "olalonde",
"points": 3531,
"numComments": 82,
"controversyRatio": 0.02,
"targetUrl": "http://news.ycombinator.com/vote?for=3742902&dir=up&whence=%6e%65%77%65%73%74",
"targetDomain": "news.ycombinator.com",
"hnDiscussionUrl": "https://news.ycombinator.com/item?id=3742902",
"createdAt": "2012-03-23T00:40:39Z",
"scrapedAt": "2026-10-29T08:31:42.843Z"
},
{
"platform": "news.ycombinator.com",
"query": "Show HN",
"objectID": "46205632",
"title": "Show HN: Gemini Pro 3 imagines the HN front page 10 years from now",
"author": "keepamovin",
"points": 3346,
"numComments": 965,
"controversyRatio": 0.29,
"targetUrl": "https://dosaygo-studio.github.io/hn-front-page-2035/news",
"targetDomain": "dosaygo-studio.github.io",
"hnDiscussionUrl": "https://news.ycombinator.com/item?id=46205632",
"createdAt": "2025-12-09T15:00:38Z",
"scrapedAt": "2026-10-29T08:31:42.843Z"
}
]

3. Input Parameter Specification

ParameterTypeDefaultTechnical Specification
queriesarray["Show HN", "Claude Code", "MCP server"]Enter Hacker News Search Queries (e.g., Show HN, Claude Code, MCP, AI Agent) to extract structured records.
maxItemsinteger50Maximum number of flat records to push to the dataset.

Example Input Payload (application/json)

{
"queries": [
"Show HN",
"Claude Code",
"MCP server"
],
"maxItems": 50
}

4. Measured Runtime & Unit Economics

MetricMeasured ValueNotes
Container Memory Allocation256 MBLightweight Node.js 20 container (apify@^3.2.6)
Median Execution Latency3.99 sCold start to dataset commit for default batch
External Proxy Requirement$0.00No residential proxy bandwidth surcharge required
Primary Billing Eventcontract-checkedCharged strictly per committed dataset record
Unit Price (Pay-Per-Event)$0.0025 / recordEquivalent to $2.50 per 1,000 records

5. Production Integration (cURL, Python, Claude Code MCP)

5.1 Synchronous REST Execution (cURL)

Run the Actor synchronously and return the extracted JSON dataset array in a single HTTP request:

curl -s -X POST \
"https://api.apify.com/v2/acts/vivid_astronaut~hacker-news-search-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"queries": ["Show HN", "Claude Code", "MCP server"], "maxItems": 50}'

5.2 Python Pipeline Integration (urllib.request)

import json
import os
import urllib.request
APIFY_TOKEN = os.environ["APIFY_TOKEN"]
url = (
"https://api.apify.com/v2/acts/vivid_astronaut~hacker-news-search-scraper/"
f"run-sync-get-dataset-items?token={APIFY_TOKEN}"
)
payload = {
"queries": [
"Show HN",
"Claude Code",
"MCP server"
],
"maxItems": 50
}
req = urllib.request.Request(
url,
data=json.dumps(payload).encode("utf-8"),
headers={"Content-Type": "application/json"},
method="POST",
)
with urllib.request.urlopen(req, timeout=120) as resp:
records = json.loads(resp.read().decode("utf-8"))
print(f"Extracted {len(records)} records from hacker-news-search-scraper")

5.3 Claude Code / Cursor MCP Configuration (.mcp.json)

Expose vivid_astronaut/hacker-news-search-scraper as a callable tool inside Claude Code, Cursor, or any Model Context Protocol client:

{
"mcpServers": {
"apify-hacker-news-search-scraper": {
"command": "npx",
"args": [
"-y",
"@apify/actors-mcp-server",
"--actors",
"vivid_astronaut/hacker-news-search-scraper"
],
"env": {
"APIFY_TOKEN": "YOUR_APIFY_TOKEN"
}
}
}
}