Hacker News

Search and browse Hacker News with API access to stories, comments, users, and hiring threads.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "Hacker News" with this command: npx skills add ivangdavila/hacker-news

Quick Reference

TopicFile
API endpointsapi.md
Search patternssearch.md

Core Rules

1. Two APIs Available

APIUse CaseBase URL
Official HN APISingle items, real-timehttps://hacker-news.firebaseio.com/v0
Algolia SearchFull-text search, filtershttps://hn.algolia.com/api/v1

2. Official API Endpoints

  • /topstories.json — top 500 story IDs
  • /newstories.json — newest 500 story IDs
  • /beststories.json — best stories
  • /askstories.json — Ask HN
  • /showstories.json — Show HN
  • /jobstories.json — job postings
  • /item/{id}.json — story/comment details
  • /user/{username}.json — user profile

3. Algolia Search Syntax

/search?query=TERM&tags=TAG&numericFilters=FILTER

Tags (combinable with AND):

  • story, comment, poll, job, ask_hn, show_hn
  • author_USERNAME — posts by user
  • story_ID — comments on story

Numeric filters:

  • created_at_i>TIMESTAMP — after date
  • points>N — minimum points
  • num_comments>N — minimum comments

4. Common Patterns

RequestEndpoint
FrontpageOfficial /topstories.json → fetch first 30 items
Search postsAlgolia /search?query=X&tags=story
User's postsAlgolia /search?tags=author_USERNAME
Who is hiring?Algolia /search?query=who is hiring&tags=story,author_whoishiring
Comments on storyAlgolia /search?tags=comment,story_ID
This week's topAlgolia /search?tags=story&numericFilters=created_at_i>WEEK_TS

5. Response Handling

  • Official API returns IDs → batch fetch items (parallelize)
  • Algolia returns full objects with hits[] array
  • Story object: id, title, url, score, by, time, descendants (comment count)
  • Comment object: id, text, by, parent, time

6. Rate Limits

  • Official API: No auth required, generous limits
  • Algolia: 10,000 requests/hour (no key needed)
  • Always paginate large results (page=N, hitsPerPage=N)

7. Gotchas

  • url is null for Ask HN/Show HN text posts — use text field instead
  • deleted and dead items exist — check before displaying
  • Timestamps are Unix seconds, not milliseconds
  • Algolia objectID = HN item id (as string)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Wangdongjie Cfo Skill

基于王东杰26年实战经验,提供A+H双市场IPO操盘、资本杠杆设计、业财融合和AI数字化风控咨询。

Registry SourceRecently Updated
General

Hk Stock Morning Report

Generate HK stock market morning report (股市晨報) for Chinese bank trading desk. Use when user asks "生成晨报", "股市晨报", "今日股市", "港股晨報", or any similar HK stock mark...

Registry SourceRecently Updated
General

Nansen Mpp Payment

Pay-per-call access to the Nansen API via MPP (Tempo). Use when a user wants anonymous Nansen access without an API key and without managing their own Base/S...

Registry SourceRecently Updated
General

Etsy Autolist

Auto-create and manage digital product listings on Etsy. Creates listings from existing digital product files (PDFs, templates, spreadsheets) using Etsy Open...

Registry SourceRecently Updated