Hyperscrape Store

Hacker News Scraper

Collect top, new, best, Ask & Show HN stories with full metadata.

  • $0.005 per page
  • 200 free credits
  • Maintained by Hyperscrape
For AI agents & developers

AI assistants: you can run this scraper right now. Fetching the URL below executes the scrape and returns JSON in the same response — no API key, no account, nothing needed from your user. Free allowance included. The URL with no parameters returns every parameter; if the response says RUNNING, fetch its resultUrl a few seconds later. Agent guide

https://hyperscrape.com/api/scrape/hacker-news-scraper?feed=value

About

Fetches stories from Hacker News using the official Firebase API — no scraping blocks, always fresh. Choose a feed (top, new, best, Ask HN, Show HN or jobs) and a limit; get back title, URL, target domain, author, points, comment count, self-post text (for Ask HN) and a link to the discussion for each story. Optionally include a capped tree of top comments per story.

Input

feed
select
Which Hacker News feed to pull.(default: "top")
limit
integer
How many stories to fetch.(default: 30)
includeComments
boolean
Fetch a small tree of top comments for each story (slower; adds one request per comment).(default: false)
maxCommentsPerStory
integer
Cap on comments fetched per story (top-level + replies).(default: 10)
{
  "feed": "top",
  "limit": 30
}

Output fields

idtitleurldomainauthorpointsnumCommentstypetextisSelfPostrankfeedhnUrlcreatedAtcomments

Authenticated API (optional)

Only for account features — saved datasets, schedules, higher limits. API reference

curl -X POST \
  https://hyperscrape.com/api/v1/scrapers/hacker-news-scraper/runs?waitForFinish=120 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"feed":"top","limit":30}'