API · Hacker News
GET /hackernews/stories
A Hacker News feed: top, new, best, ask, show or job.
| Request | GET /v1/hackernews/stories |
| Operation id | hackernews.stories.get |
| Cost | 1 credit, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
A Hacker News feed: top, new, best, ask, show or job.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
feed | "top" | "new" | "best" | "ask" | "show" | "job" | no | top (default), new, best, ask, show or job. One of top, new, best, ask, show, job. |
page | integer | no | Page number, 1 to 100. Defaults to 1. |
limit | integer | no | Stories per page, 1 to 100. Defaults to 30. |
since | string | no | Only rows published on or after this date: YYYY-MM-DD (midnight UTC) or an ISO 8601 timestamp. Example: 2026-01-01. |
until | string | no | Only rows published on or before this date: YYYY-MM-DD (that whole UTC day) or an ISO 8601 timestamp. Example: 2026-12-31. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | A page of the feed’s stories. | HackerNewsFeed |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | The item or user does not exist. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Hacker News is temporarily unavailable. Retryable; nothing was charged. | Error |
HackerNewsFeed fields
| Field | Type | Description |
|---|---|---|
feed | "top" | "new" | "best" | "ask" | "show" | "job" | |
page | integer | |
limit | integer | |
total | integer | Stories in the feed right now (up to 500). |
has_more | boolean | |
items | HackerNewsItem[] |
Errors use one shape everywhere; see Errors for every code and what to do.