NewsLive

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

Agent workflows

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.

Run it

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.

Endpoints

13 ready-to-call endpoints

GET/hacker-news/items/{id}Free

Get Hacker News item by ID

Fetch a single Hacker News item. Stories, comments, jobs, polls, and poll options share the same item shape.

Details →
GET/hacker-news/items/{id}/comments$min $0.009

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.

Details →
GET/hacker-news/items/{id}/context$min $0.006

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.

Details →
GET/hacker-news/jobs/who-is-hiring$min $0.003

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`.

Details →
GET/hacker-news/max-itemFree

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.

Details →
GET/hacker-news/search$min $0.003

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`.

Details →
GET/hacker-news/stories/{feed}Free

List Hacker News story IDs

List Hacker News story ids from a named feed. Use `/hacker-news/items/{id}` to fetch item details.

Details →
GET/hacker-news/stories/{feed}/itemsFree

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.

Details →
GET/hacker-news/updatesFree

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.

Details →
GET/hacker-news/users/{id}Free

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.

Details →
GET/hacker-news/users/{id}/comments$min $0.003

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.

Details →
GET/hacker-news/users/{id}/favorites$min $0.003

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.

Details →
GET/hacker-news/users/{id}/submissions$min $0.003

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.

Details →