Hacker News

Get a Hacker News story

Retrieve one Hacker News item by numeric ID: title, submitted URL, author, points, self-post text, poll options and creation time, with the IDs of its direct child comments. Set includeCounts to add the live score and total comment count from the official API. The item type is returned; comment IDs are accepted and return that comment. Use the comments endpoint for the nested discussion. Each successful request costs 1 account credit, including partial results. Failed requests cost 0 credits.

get/v1/hackernews/story

Request

  • Base URL: https://api.scrapeatlas.com
  • URL: https://api.scrapeatlas.com/v1/hackernews/story
  • Auth: API key in header x-api-key

Query parameters

idstring required

Required numeric Hacker News item ID, as shown after item?id= on news.ycombinator.com.

includeCounts'true' | 'false'

true adds score and descendants from the official item resource in a second source read. Defaults to false.

Response

Inspect the response status and failure or coverage fields.

OR

Changes

No recorded changes to this operation across all 1 revision of this API.