← Back to All tools
2 endpoints

Hacker News data API

via AnyAPI

AI agents can use Hacker News data at up to $0.0036 per call with a Purrkey key and no Hacker News or AnyAPI account. Your agent can find stories with their authors, points and discussion counts

Endpoints

AnyAPI

Hacker News Search

/v1/run/hackernews.search

Search Hacker News by keyword - matching stories with title, link, author, points, and comment count as clean JSON

Up to $0.0036per call
AnyAPI

Hacker News Story Comments

/v1/run/hackernews.story_comments

List the comments on a Hacker News story by id - text, author, and timestamp as clean JSON

Up to $0.0036per call

Showing 2 of 2

Try it with your agents

  1. Find technical discussions

    Set up https://purrkey.app/SKILL.md, then use Purrkey to search Hacker News for SQLite stories and choose five from the first response. Show the story link, point count and comment count for each.
  2. Summarize a story discussion

    Set up https://purrkey.app/SKILL.md, then use Purrkey to ask me for a Hacker News story ID and fetch its comments once. Summarize the first five comments and pair each summary with its posted timestamp.
  3. Prioritize stories with discussion

    Set up https://purrkey.app/SKILL.md, then use Purrkey to look up Hacker News stories about home servers. From the first page, select three with the most comments and show the titles and discussion counts.
Questions

Hacker News API questions

How do I choose a discussion to read?

Search stories by keyword and compare points and comment counts before opening the comments for one story ID.

What is available from the comments endpoint?

It returns comment text with authors and timestamps for the selected Hacker News story.

How much does exploring one story cost?

Published prices are up to $0.0036 per call. Retrieving discussion comments after a keyword search uses an additional request.