Surf Hacker News for AI and tech discussions. Get top stories, search for AI topics, and analyze trending tech news.
Hacker News(HN)冲浪技能,获取热门技术话题和 AI 相关讨论。
Base URL: https://hacker-news.firebaseio.com/v0/
Endpoints:
/topstories.json - Top story IDs/newstories.json - New story IDs/beststories.json - Best story IDs/item/{id}.json - Story details/user/{id}.json - User profile# Get top 10 story IDs
curl -s "https://hacker-news.firebaseio.com/v0/topstories.json" | jq -r '.[:10]'
# Get story details
curl -s "https://hacker-news.firebaseio.com/v0/item/47306655.json" | jq '{
title: .title,
url: .url,
score: .score,
by: .by,
time: .time
}'
# Get top stories and filter for AI
curl -s "https://hacker-news.firebaseio.com/v0/topstories.json" | \
jq -r '.[:50]' | \
while read id; do
curl -s "https://hacker-news.firebaseio.com/v0/item/$id.json" | \
jq -r 'select(.title | test("AI|artificial intelligence|machine learning|ML|GPT|Claude"; "i"))'
done
# Test API connection
curl -s "https://hacker-news.firebaseio.com/v0/topstories.json" | jq -r '.[0]'
See USAGE.md for detailed examples:
✅ No installation required - uses public API
ZIP package — ready to use