VOOZH about

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

โ‡ฑ Hacker News Scraper ยท Apify


Pricing

from $0.10 / 1,000 results

Go to Apify Store

Scrape Hacker News stories, comments, and user data. Supports top/new/best/ask/show/job story feeds and full-text keyword search via the Algolia API. Extract titles, URLs, scores, authors, comment counts, and timestamps.

Pricing

from $0.10 / 1,000 results

Rating

0.0

(0)

Developer

๐Ÿ‘ Monkey Coder

Monkey Coder

Maintained by Community

Actor stats

1

Bookmarked

60

Total users

21

Monthly active users

21 days ago

Last modified

Share

๐Ÿ“ฐ Hacker News Scraper

Scrape stories, comments, and user data from Hacker News โ€” the tech community's most popular link aggregator.

โœจ Features

  • Multiple feed modes: Top, New, Best, Ask HN, Show HN, and Job stories
  • Full-text search: Search stories by keyword via the Algolia HN Search API
  • User submissions: Fetch all stories submitted by a specific user
  • Optional comments: Include top-level comments for each story
  • No authentication required: Uses the official HN Firebase API and Algolia HN Search API

๐Ÿ”ง How It Works

  1. Select a mode (top, new, best, ask, show, job, search, or user)
  2. For search mode, provide a keyword query
  3. For user mode, provide a HN username
  4. Set the max results limit
  5. Optionally enable top comments fetching (slower but richer data)

๐Ÿ“‹ Input Parameters

ParameterTypeDescription
modeSelectFeed type: top, new, best, ask, show, job, search, or user
queryStringSearch keyword (search mode only)
usernameStringHN username (user mode only)
search_sortSelectSort by relevance or date (search mode only)
max_resultsIntegerMaximum stories to return (1โ€“500)
include_commentsBooleanFetch top-level comments per story
request_timeoutIntegerHTTP timeout in seconds

๐Ÿ“ฆ Sample Output

{
"id":12345678,
"title":"Show HN: I built an open-source AI tool",
"url":"https://github.com/example/project",
"score":342,
"author":"johndoe",
"num_comments":87,
"created_at":"2026-03-23T10:30:00+00:00",
"type":"story",
"text":"",
"hn_url":"https://news.ycombinator.com/item?id=12345678",
"top_comments":[
{
"id":12345679,
"author":"janedoe",
"text":"This is amazing! I've been looking for something like this.",
"created_at":"2026-03-23T10:45:00+00:00"
}
],
"fetched_at":"2026-03-23T12:00:00+00:00"
}

๐Ÿ“Š Modes

ModeDescriptionSource
topCurrent front-page stories ranked by scoreFirebase API
newMost recently submitted storiesFirebase API
bestHighest-voted stories of all timeFirebase API
ask"Ask HN" discussion threadsFirebase API
show"Show HN" project showcasesFirebase API
jobYC startup job postingsFirebase API
searchFull-text keyword search across all storiesAlgolia API
userAll stories submitted by a specific userFirebase API

โšก Performance Notes

  • Feed modes (top/new/best/ask/show/job): Each story requires a separate API call. 100 stories โ‰ˆ 15โ€“30 seconds.
  • Search mode: Uses Algolia's batch API, much faster. 100 results โ‰ˆ 2โ€“5 seconds.
  • With comments enabled: Adds ~5 extra API calls per story. Expect 2โ€“3ร— longer run times.
  • Rate limits: Both APIs are generous but the Actor includes retry logic for 429 responses.

๐Ÿ”— Data Sources

You might also like

Hacker News Scraper

cloud9_ai/hackernews-scraper

Scrape Hacker News stories, comments, and user profiles via official Firebase API. Get top, new, best, ask, show stories with scores, comments, and author data.

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.

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 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: Stories, Comments, Users & Search

perconey/hackernews-scraper

Scrape Hacker News via the official Firebase API + Algolia search. Top/new/best/ask/show/jobs stories, full comment trees, user profiles with karma, free-text search. No browser, no proxies, no auth. Pay only per result item.

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.