List ranked Hacker News stories
List the item IDs of a ranked Hacker News list in source rank order: top (the front page), new, best, Ask HN, Show HN or jobs. IDs are returned as data; read the ones you want with the story endpoint. Page through the list with limit and page.
/v1/hackernews/storiesx-api-keyHeaders
Get your API keyYour ScrapeAtlas customer key. Create one on /account/ and set SCRAPEATLAS_API_KEY.
Required list to read: top, new, best, ask, show or job.
one of: top, new, best, ask, show, job
topIDs per page, 1–500; defaults to 50.
10Zero-based page number, 0–999; defaults to 0. A page past the end returns an empty list.
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.
Required list to read: top, new, best, ask, show or job.
one of: top, new, best, ask, show, job
Item IDs for the requested page, in source rank order.
up to 500 items
Number of IDs the source list holds.
≥ 0
Zero-based page number, 0–999; defaults to 0. A page past the end returns an empty list.
≥ 0
IDs per page, 1–500; defaults to 50.
≥ 1
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. |