ChimeraMiND Data
Home / Tools / Hacker News Search & Front Page Scraper
News

Hacker News Search & Front Page Scraper

Search Hacker News stories, comments, Show HN and Ask HN posts by keyword, or pull the current front page — via the free Algolia HN API, no API key. One row per story or comment with points, author, comment count and text.

Run Hacker News Search & Front Page Scraper on Apify →

Pricing

Apify planPer StoryPer 1,000
Free plan$0.0005$0.50
Starter$0.0004$0.40
Scale$0.00035$0.35
Business$0.0003$0.30
Enterprise$0.0003$0.30
Enterprise+$0.0003$0.30

Primary event rates from a catalog snapshot; this is not the total price of a run. Additional charge events and Actor Start fees may apply; start fees can scale with memory. Check the Actor's Pricing tab on Apify for all events, conditions and current plan-specific rates, and set a maximum run budget before starting.

Sample output

No recorded sample is available yet.

Call from code

Use the existing catalog input below as a starting point. Review the tool's input form on Apify before running it.

import json
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("webdatatools/hacker-news-scraper").call(run_input=json.loads("{\n    \"queries\": [\n        \"front_page\",\n        \"apify\"\n    ],\n    \"contentType\": \"story\",\n    \"sortBy\": \"relevance\"\n}"))

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('webdatatools/hacker-news-scraper').call({
    "queries": [
        "front_page",
        "apify"
    ],
    "contentType": "story",
    "sortBy": "relevance"
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
curl -X POST "https://api.apify.com/v2/acts/webdatatools~hacker-news-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"queries":["front_page","apify"],"contentType":"story","sortBy":"relevance"}'

Related tools

Workflows