Hacker News Scraper - Search Stories & Comments avatar

Hacker News Scraper - Search Stories & Comments

Pricing

from $3.00 / 1,000 results

Go to Apify Store
Hacker News Scraper - Search Stories & Comments

Hacker News Scraper - Search Stories & Comments

Search Hacker News stories using the free Algolia HN API. Returns story titles, points, authors, URLs, comment counts, and creation dates. No authentication or browser required — pure JSON API with zero bot-detection risk.

Pricing

from $3.00 / 1,000 results

Rating

0.0

(0)

Developer

Chris Drake

Chris Drake

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

a day ago

Last modified

Share

Search Hacker News stories by keyword using the free Algolia HN API. Returns titles, points, authors, URLs, comment counts, and creation dates. No authentication or browser required — pure JSON API with zero cost overhead.

Why use this actor?

  • Free API — uses Algolia's public HN search API, no API key needed
  • Fast — pure HTTP, no browser rendering, results in seconds
  • Cheap — minimal compute, low per-result pricing
  • Structured output — clean JSON with all story metadata

Use cases

  • Track mentions of your product/brand on Hacker News
  • Monitor trending stories by topic for content curation
  • Extract story data for analysis (points, authors, engagement patterns)
  • Build a dashboard of competitor mentions
  • Feed AI/LLM pipelines with fresh tech discussion data

Input

FieldTypeDescriptionDefault
querystringSearch query (keyword or phrase)""
tagsstringFilter by type: story, comment, or empty for bothstory
numHitsintegerNumber of results to return (max 1000)20

Output

Each result contains:

FieldDescription
objectIDUnique HN story ID
titleStory title
authorSubmitter username
pointsUpvote count
num_commentsComment count
urlExternal link (if story links to one)
created_atISO timestamp
story_textSelf-post text (if text post)

Example input

{
"query": "OpenAI",
"tags": "story",
"numHits": 20
}

Example output

{
"objectID": "38712345",
"title": "OpenAI announces new model",
"author": "pg",
"points": 5710,
"num_comments": 842,
"url": "https://example.com/article",
"created_at": "2025-01-15T10:30:00.000Z"
}

Tips

  • Use specific queries for better results: "transformers" instead of "AI"
  • Set tags to comment to search within comments
  • Increase numHits for broader searches
  • Results are sorted by relevance by default