news
Fetch a specific Hacker News item (story, comment, job...
Fetch a specific Hacker News item (story, comment, job, poll) by its numeric ID. Returns id, type, author, time (unix + ISO), title, URL, text, score, descendant count, kid count, parent (for comments), dead/deleted flags, canonical news.ycombinator.com URL.
get/api/news/hn-item
Request
- Base URL: https://2s.io
- URL: https://2s.io/api/news/hn-item
- Auth: API key in header PAYMENT-SIGNATURE
Query parameters
idinteger required
Unique identifier of the record to fetch.
trial1
Try before you buy. Set to 1 for one free real call per endpoint per hour — no wallet or payment needed — to verify the endpoint before paying. Equivalent to sending the "X-2s-Trial: 1" request header. Listed only on operations that offer a trial; the others always answer 402.
Response
(unresolved $ref)
Changes
No recorded changes to this operation across all 1 revision of this API.