Skip to content
Agentmart
Submit a tool

Hacker News

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

Skill by wanikua

IndexedMIT★ 2,712
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/wanikua-hacker-news

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

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

Use cases: backend

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/hacker-news

What's inside

Skill name
Hacker News
Description
Search and browse Hacker News with API access to stories, comments, users, and hiring threads.
License
MIT
Instructions
68 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • name: only lowercase letters, digits and single hyphens allowed
  • name: "Hacker News" does not match folder "hacker-news"

Files (3)

  • SKILL.md
  • api.md
  • search.md

SKILL.md (first lines)

## Quick Reference

| Topic | File |
|-------|------|
| API endpoints | `api.md` |
| Search patterns | `search.md` |

## Core Rules

### 1. Two APIs Available
| API | Use Case | Base URL |
|-----|----------|----------|
| Official HN API | Single items, real-time | `https://hacker-news.firebaseio.com/v0` |
| Algolia Search | Full-text search, filters | `https://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
| Request | Endpoint |
|---------|----------|
| Frontpage | Official `/topstories.json` → fetch first 30 items |
| Search posts | Algolia `/search?query=X&tags=story` |
| User's posts | Algolia `/search?tags=author_USERNAME` |
| Who is hiring? | Algolia `/search?query=who is hiring&tags=story,author_whoishiring` |
| Comments on story | Algolia `/search?tags=comment,story_ID` |
| This week's top | Algolia `/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)

From wanikua/danghuangshang, MIT.

More from wanikua/danghuangshang

Signals

Stars
2,712
Forks
260
Open issues
34
Last commit (this folder)
Mar 15, 2026 (7 months ago)
Last release
Mar 12, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from wanikua

Cite this page

Hacker News skill. Agent Mart. https://agentmart.dev/skills/wanikua-hacker-news (last updated 2026-10-24)