Search Hacker News stories and comments using the free Algolia API. No Apify token needed. Use when you need to find HN discussions, track mentions, discover Show HN launches, or monitor tech community sentiment.
A source-grounded starter task has not been verified for this skill yet.
SKILL.md
name: hacker-news-scraperdescription: > Search Hacker News stories and comments using the free Algolia API. No Apify token needed. Use when you need to find HN discussions, track mentions, discover Show HN launches, or monitor tech community sentiment.
Hacker News Scraper
Search Hacker News using the free Algolia HN Search API. No Apify token or API key needed.
Quick Start
Only dependency: pip install requests.
# Stories about AI content marketing in last week
python3 skills/hacker-news-scraper/scripts/search_hn.py \
--query "AI content marketing" --days 7
# Show HN posts in last month (summary view)
python3 skills/hacker-news-scraper/scripts/search_hn.py \
--query "" --tags show_hn --days 30 --output summary
# Comments mentioning a specific tool
python3 skills/hacker-news-scraper/scripts/search_hn.py \
--query "LangChain" --tags comment --days 14 --max-results 20
How the Script Works
Queries the Algolia HN Search API (search_by_date endpoint)
Uses numericFilters=created_at_i>{unix_timestamp} for server-side date filtering
Paginates until max-results reached
Normalizes results to a consistent schema
Applies optional keyword filtering (client-side)
Sorts by points (descending) and outputs JSON or summary
CLI Reference
Flag
Default
Description
--query
required
Search query
--days
7
How many days back to search
--tags
story
Item type: story, comment, ask_hn, show_hn
--max-results
50
Max results to return
--keywords
none
Additional filter keywords (comma-separated, OR logic)