App Logo
hn.algolia.com

Get a Hacker News item from HN Search by Algolia

Automatically get a Hacker News item from HN Search by Algolia on hn.algolia.com. Read one Hacker News story, comment, job or poll by its id from HN Search (hn.algolia.com): type, title, link, author, points, creation time, text, parent and story ids, its Hacker News item link, and the ids of its direct child comments with their count. Get ids from hn.algolia.com/search. An id with no item gives an error that says so.

Inputs

id required

The Hacker News item id, e.g. "8863", or its item link, e.g. https://news.ycombinator.com/item?id=8863.

Output

id required
hnUrl required
childIds required

Ids of the direct child comments, in the site's order.

url optional
text optional

The item text, as HTML. Null for a link story with no text.

type optional

story, comment, poll, pollopt or job, as the site gives it.

title optional
author optional
points optional
storyId optional
parentId optional
createdAt optional
optionIds optional

Ids of a poll's options.

childCount optional

FAQ

Read one Hacker News story, comment, job or poll by its id from HN Search (hn.algolia.com): type, title, link, author, points, creation time, text, parent and story ids, its Hacker News item link, and the ids of its direct child comments with their count. Get ids from hn.algolia.com/search. An id with no item gives an error that says so.
Ask an AI agent connected to Reduck to run reduck/hn.algolia.com/get_item, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/hn.algolia.com/get_item
You do not need one. "Get a Hacker News item from HN Search by Algolia" drives the real hn.algolia.com pages in a browser, so it works whether or not hn.algolia.com offers an API for this.
Required: id.
It returns id, url, text, type, hnUrl, title, author, points, storyId, childIds, parentId, createdAt, optionIds, childCount.
No. It only uses pages of hn.algolia.com that are reachable without signing in.
It only reads. It looks things up on hn.algolia.com and changes nothing there.
Ask an AI agent connected to Reduck to run reduck/hn.algolia.com/get_item, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/hn.algolia.com/get_item
It is one of Reduck's official scripts.

Start building not clicking