Read-only access to the Hacker News API for fetching stories, comments, users, and live updates.

skills.sh installs
3.1K
GitHub stars
81
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers story feeds (top, best, new, Ask HN, Show HN, and job postings) plus item, comment, and user lookups via curl and jq
  • Includes endpoint reference tables with response field descriptions for items and user profiles, plus batch and filtering examples
  • Guidelines call for caching results, adding delays on bulk fetches, and handling null fields such as url on Ask HN posts
  • Designed for tech-news lookups when a user mentions Hacker News, HN, Y Combinator, or asks about tech news

Install

$ npx -y skills add okou-ai/okou-skills --skill hackernews -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

How to Use

1. Get Top Stories

Fetch IDs of the current top 500 stories:

curl -s "https://hacker-news.firebaseio.com/v0/topstories.json" | jq '.[:10]'

2. Get Best Stories

Fetch the best stories (highest voted over time):

curl -s "https://hacker-news.firebaseio.com/v0/beststories.json" | jq '.[:10]'

3. Get New Stories

Fetch the newest stories:

curl -s "https://hacker-news.firebaseio.com/v0/newstories.json" | jq '.[:10]'

4. Get Ask HN Stories

Fetch "Ask HN" posts:

curl -s "https://hacker-news.firebaseio.com/v0/askstories.json" | jq '.[:10]'

5. Get Show HN Stories

Fetch "Show HN" posts:

curl -s "https://hacker-news.firebaseio.com/v0/showstories.json" | jq '.[:10]'

6. Get Job Stories

Fetch job postings:

curl -s "https://hacker-news.firebaseio.com/v0/jobstories.json" | jq '.[:10]'

Item Details

7. Get Story/Comment/Job Details

Fetch full details for any item by ID. Replace <item-id> with the actual item ID:

curl -s "https://hacker-news.firebaseio.com/v0/item/<item-id>.json"

Response fields:

Details

Repository
github.com/okou-ai/okou-skills
Categories
Research & Academic, Social Media

More from okou-ai/okou-skills

All 2

Similar to Hackernews

More Research & Academic