Hacker News API icon

Hacker News API

Interact with the Hacker News API (Algolia)

Actions3

Item → Get

AI-generated

Summary

Retrieve a specific Hacker News item by its numeric ID.

Inputs

  • itemId (required) — The ID of the item to retrieve
  • requestOptions — Add Option (collection for batch or other request settings)
  • allowUnauthorizedCerts — Whether to accept the response even if SSL certificate validation is not possible
  • proxy — HTTP proxy to use. If authentication is required it can be defined as follow: http://username:password@myproxy:3128
  • timeout — Time in ms to wait for the server to send response headers (and start the response body) before aborting the request

Output shape

a single item object

The response contains the full item resource; no pagination or metadata is included.

Examples

Example 1: Fetch a specific Hacker News story

itemId = 8000 (default); all other settings left at defaults.

Links

Discussion