Hacker News Scraper

Search or browse Hacker News stories, comments, Ask HN, Show HN and Who's Hiring threads via the official Algolia API, with points and date filters.

Uses HN's official Algolia Search API, so results are fast and reliable. Filter by tag (story, comment, ask_hn, show_hn, job), minimum points, and date range. Leave queries empty and sort by date to pull the newest items for a tag, e.g. the latest monthly Who's Hiring thread.

Run it

curl -X POST https://fetchsmith.com/api/v1/run/hacker-news-scraper \
  -H "Authorization: Bearer YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"maxItemsPerQuery": 50, "max_results": 50, "queries": ["apify"], "sortBy": "relevance", "tags": ["story"]}'

Price: 1 credit per result (credit packs). Also available on Apify Store with pay-per-event pricing.

Output fields

Sample output

{
  "author": "jancurn",
  "createdAt": "2017-10-26T13:03:29Z",
  "id": "15558405",
  "numComments": 21,
  "points": 45,
  "title": "Show HN: Apify \u2013 Turn any website into an API",
  "type": "story",
  "url": "https://www.apify.com/"
}

Only publicly accessible pages are read. Respect the source site's terms when using the data.