Skip to content

Hacker News

MetadataValue
Categorymedia
Capabilitieshttp
Websitehttps://news.ycombinator.com
  • post — from get_post
  • post[] — from list_posts, search_posts, comments_post

Read Hacker News stories, comments, and discussions using the Algolia HN Search API.

This adapter uses the public Algolia HN Search API — no authentication needed.

The official HN Firebase API requires multiple requests to fetch a story with comments (one per comment). Algolia returns the entire comment tree in a single request, making it much faster.

OperationDescription
list_postsList stories by feed type (front, new, ask, show)
search_postsSearch stories by keyword
get_postGet a single story with all comments

The list_posts operation supports different feeds via the feed param:

FeedDescriptionHN URL
front (default)Front page / top storiesnews.ycombinator.com
newNewest submissionsnews.ycombinator.com/newest
askAsk HN postsnews.ycombinator.com/ask
showShow HN postsnews.ycombinator.com/show
Terminal window
# Front page stories (default)
POST /api/adapters/hackernews/post.list
{"limit": 30}
# Newest stories
POST /api/adapters/hackernews/post.list
{"feed": "new"}
# Ask HN posts
POST /api/adapters/hackernews/post.list
{"feed": "ask", "limit": 20}
# Show HN posts
POST /api/adapters/hackernews/post.list
{"feed": "show"}
# Search stories
POST /api/adapters/hackernews/post.search
{"query": "rust programming"}
# Get story with comments
POST /api/adapters/hackernews/post.get
{"id": "46826597"}

Stories also appear in aggregated endpoints:

Terminal window
# All posts from all sources
GET /api/posts
# Search across all sources
GET /api/posts/search?query=typescript