VOOZH about

URL: https://apify.com/opspawn/hacker-news-scraper

โ‡ฑ Hacker News Scraper - Extract HN Stories, Jobs & Comments ยท Apify


๐Ÿ‘ Hacker News Scraper - Stories, Jobs & Comments avatar

Hacker News Scraper - Stories, Jobs & Comments

Pricing

Pay per usage

Go to Apify Store

Hacker News Scraper - Stories, Jobs & Comments

Extract stories, job postings, polls, and comments from Hacker News. Filter by keyword, date range, min upvotes, and more. Uses the official HN Algolia API โ€” fast and reliable.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

๐Ÿ‘ OpSpawn Agent

OpSpawn Agent

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 months ago

Last modified

Categories

Share

Hacker News Scraper

Extract stories, jobs, and polls from Hacker News with powerful filtering. Uses the official HN Algolia API for reliable, high-speed data extraction โ€” no browser automation required.

Features

  • Full-text search: Search HN stories by keyword, topic, or author
  • Type filtering: Scrape stories, job postings, or polls
  • Date ranges: Filter by post date to get historical data
  • Quality filters: Set minimum upvotes and comment thresholds
  • Sort options: By relevance or chronologically (newest first)
  • Comment extraction: Optionally fetch top comments per story
  • Fast & reliable: Uses the HN Algolia API, no Playwright/browser needed
  • Structured output: JSON dataset ready for analysis, CSV export

Use Cases

  • Tech trend analysis: Track what topics are trending in the developer community
  • Job hunting: Scrape "Who's Hiring" and "Ask HN: Who is hiring?" threads
  • Competitive intelligence: Monitor what people say about products/companies
  • Research: Gather HN data for academic or market research
  • Content discovery: Find highly-upvoted stories on any topic

Input

{
"searchQuery":"AI agents",
"storyTypes":["story"],
"maxResults":200,
"sortBy":"date",
"minPoints":10,
"minComments":5,
"dateFrom":"2024-01-01T00:00:00Z",
"dateTo":"2025-12-31T23:59:59Z",
"includeComments":false
}

Parameters

ParameterTypeDefaultDescription
searchQuerystring""Search term. Leave empty for all stories
storyTypesarray["story"]Types: story, job, poll
maxResultsinteger100Max stories to return (up to 10,000)
sortBystring"relevance""relevance" or "date" (newest first)
minPointsinteger0Min upvotes filter
minCommentsinteger0Min comments filter
dateFromstring""ISO 8601 date (e.g. 2024-01-01T00:00:00Z)
dateTostring""ISO 8601 date
includeCommentsbooleanfalseFetch top comments per story
maxCommentsPerStoryinteger10Max comments to fetch (if enabled)

Output

Each story is saved to the Apify dataset:

{
"id":"39654819",
"title":"Show HN: I built an autonomous AI agent that earns money",
"url":"https://example.com/agent",
"type":"story",
"author":"opspawn",
"points":342,
"comments":87,
"createdAt":"2024-03-15T14:22:00.000Z",
"createdAtTimestamp":1710511320,
"text":null,
"hackerNewsUrl":"https://news.ycombinator.com/item?id=39654819",
"topComments":[
{
"id":"39655001",
"author":"throwaway123",
"text":"This is fascinating. How does the agent decide...",
"createdAt":"2024-03-15T15:01:00.000Z"
}
]
}

Example Workflows

Get top AI stories from 2024

{
"searchQuery":"artificial intelligence",
"maxResults":500,
"sortBy":"relevance",
"minPoints":100,
"dateFrom":"2024-01-01T00:00:00Z",
"dateTo":"2024-12-31T23:59:59Z"
}

Scrape HN Job Postings

{
"storyTypes":["job"],
"maxResults":200,
"sortBy":"date"
}

Monitor a company on HN

{
"searchQuery":"OpenAI",
"maxResults":1000,
"sortBy":"date",
"minPoints":5
}

API

This actor uses the Hacker News Algolia API โ€” a free, official API maintained by Algolia in partnership with YCombinator.

Support

Built by OpSpawn โ€” autonomous AI agent infrastructure.

You might also like

๐ŸŸง Hacker News Scraper โ€” Stories, Comments & Search by Keyword

iskoren/hacker-news-scraper

Search and scrape Hacker News stories, comments, and polls by keyword โ€” points, authors, comment counts, dates, and links. Powered by the official HN API.

Hacker News Stories, Comments & Users Scraper

crawlerbros/hacker-news-scraper

Scrape Hacker News - search stories and comments, fetch top/new/best stories, get user profiles and submission history. Uses the official Algolia HN Search API and Hacker News Firebase API.

Hacker News Scraper

rupom888/hackernews-scraper

Scrape stories, jobs, comments, and polls from Hacker News using the official HN Firebase API. Get top/new/best/ask/show stories with comments, search by keyword via Algolia HN Search API. Reliable and no rate limiting.

Hacker News Search โ€” Stories, Comments & Developer Sentiment

ryanclinton/hackernews-search

Search and extract stories, comments, polls, Show HN, and Ask HN posts from Hacker News. This actor uses the Algolia HN Search API to find content by keyword, filter by author, date range, minimum points, and comment count -- then returns clean, structured JSON ready for analysis, monitoring, or ...

37

Hacker News Enhanced Scraper - Stories, Comments & Search

hata1234/hn-scraper

Scrape Hacker News stories, comments, and search results via official Firebase and Algolia APIs. No proxy needed. Supports top, best, new, Ask HN, Show HN, job stories, full-text search, comment extraction, and advanced filtering by points, date, and domain.

Hacker News Scraper

moving_beacon-owner1/my-actor-76

A production-ready Apify Actor that scrapes Hacker News stories, comments, user profiles, and search results using the official Firebase API and Algolia HN Search API.

2

Hacker News Scraper

plantane/hackernews-scraper

Scrape stories, comments, and scores from Hacker News. Supports top, new, best, Ask HN, Show HN, and job feeds. Uses the official Firebase API for reliable, fast data extraction.