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.
/v1/hackernews/storyx-api-keyHeaders
Get your API keyYour ScrapeAtlas customer key. Create one on /account/ and set SCRAPEATLAS_API_KEY.
Required numeric Hacker News item ID, as shown after item?id= on news.ycombinator.com.
8863true adds score and descendants from the official item resource in a second source read. Defaults to false.
one of: true, false
trueRequired numeric Hacker News item ID, as shown after item?id= on news.ycombinator.com.
≥ 1
Source creation timestamp.
Source creation Unix time in seconds.
Source item type: story, comment, poll, pollopt or job.
min 1 chars
Submitting username, or null when the source withholds it.
Story title; null for comments.
Submitted external link; null for self posts and comments.
Self-post or comment HTML text; null when absent.
Search-index score; null for comments. It can lag the live score.
Parent item ID; null for top-level stories.
ID of the containing story.
Poll option items when the source provides them.
up to 100 items
Request correlation identifier.
HTTP attempts, decoded bytes and duration for the operation, including the single shared retry.
Always included.
≥ 0
Always included.
≥ 0
Always included.
≥ 0
True when usable data is returned; inspect status and coverage for omissions.
success, partial, failed, or challenged. HTTP 200 can be partial.
one of: success, partial
Public Hacker News search, item or user URL for the request.
absolute HTTPS URL
UTC retrieval time.
Complete means this bounded page or tree was returned without known omissions. It does not imply all matching items were enumerated.
Always included.
Always included.
Always included.
Live score from the official API; null when it does not serve the item. Present only with includeCounts.
Total comment count from the official API, including replies at every depth; null when it does not serve the item. Present only with includeCounts.
Direct child comment IDs in source order, at most 5,000.
up to 5000 items
No fields match.
HTTP 200 returns the success variant. Check status: partial means usable data with warnings, and failed or challenged requests carry a failure object described in Errors & responses.
| HTTP | failure.code | Meaning |
|---|---|---|
| 200 | partial | Usable data with comment_limit, depth_limit, children_limit or counts_unavailable warnings. |
| 400 | invalid_request | Missing, duplicate, malformed or unsupported parameters, including a search that selects nothing. |
| 401 | unauthorized | Missing or invalid worker API key. |
| 404 | not_found | The source reports a missing item or user. |
| 429 | upstream_rate_limited | Source throttling; no automatic retry. |
| 502 | upstream_challenged | Source rejected the unauthenticated request. |
| 502 | unsupported_page | Malformed, mismatched or non-JSON source data. |
| 502 | response_too_large payload_too_complex | Response exceeded byte or parsing limits. |
| 502 | unsafe_redirect request_limit upstream_error | Bounded source retrieval could not complete. |
| 503 | busy | All worker slots are occupied. |
| 504 | timeout | Total request deadline expired. |