Hacker News API for AI agents
Hacker News items, users and story feeds free from the official API, plus full-text search, comment trees, user activity and Who is hiring posts.
Using ChatGPT, Claude Code or another client? See the setup steps
Use Hacker News records as evidence, not glue code.
UnifAPI keeps the public Hacker News surface discoverable through MCP and callable over HTTP. Agents can inspect the schema, fetch only the records needed for the task, and return the result with request, pagination, and billing metadata intact.
Fetch public Hacker News records when an agent needs source evidence instead of generic web text.
Use the same operation contracts through MCP for exploratory Skills and through HTTP for production integrations.
Combine this platform with the rest of UnifAPI's catalog without changing response envelopes or billing logic.
Agents & Skills that use the Hacker News API
You rarely call an API by hand. These prebuilt agents and skills already read Hacker News records inside Claude or Codex — start from one of them, or call the endpoints below yourself.
13 ready-to-call endpoints
Get Hacker News item by ID
Fetch a single Hacker News item. Stories, comments, jobs, polls, and poll options share the same item shape.
List the comment tree of a Hacker News story
Returns the comments on a Hacker News story, depth-first with parent ids and depth, so a thread can be rebuilt. Paginate with `cursor`. Returns `not_found` when the story does not exist.
Get a Hacker News comment with its thread
Returns a Hacker News comment with its ancestor chain up to the root story. Returns `not_found` when the comment does not exist.
List jobs from Who is Hiring
Returns the top-level job posts from the monthly Hacker News "Who is Hiring" thread, for the latest month or a given `month` (YYYY-MM). Paginate with `cursor`.
Get largest Hacker News item ID
Return the ID of the most recently created Hacker News item. Useful as an upper bound for walking the full item range or detecting new activity since a previous poll.
Search Hacker News stories and comments
Full-text search over Hacker News stories, comments, polls and jobs with filters for type, author, domain, date range and points. Paginate with `cursor`.
List Hacker News story IDs
List Hacker News story ids from a named feed. Use `/hacker-news/items/{id}` to fetch item details.
List Hacker News story items
Fetch item details from a named Hacker News story feed in one operation. Use this when an agent needs readable story titles, URLs, scores, authors, or comment counts.
Get changed Hacker News items and profiles
Return the IDs of recently changed Hacker News items and user profiles. Useful for incrementally syncing only what changed since the last poll instead of re-fetching everything.
Get Hacker News user by ID
Return a public Hacker News user profile by case-sensitive username, including karma, account creation date, and the about text. Useful for attributing stories and comments and profiling contributors.
List a Hacker News user's comments
Returns a Hacker News user's comments, newest first. Paginate with `cursor`. Returns `not_found` when the user does not exist.
List a Hacker News user's favorites
Returns the stories and comments a Hacker News user has marked as public favorites. Paginate with `cursor`. Returns `not_found` when the user does not exist.
List a Hacker News user's submissions
Returns a Hacker News user's stories, polls and jobs, newest first. Paginate with `cursor`. Returns `not_found` when the user does not exist.