Unif API Docs

List Hacker News story IDs

List Hacker News story ids from a named feed. Use `/hacker-news/items/{id}` to fetch item details.

Pricing — Free

This endpoint returns billing metadata with zero credits charged.

GET
/hacker-news/stories/{feed}

Authorization

bearerAuth
AuthorizationBearer <token>

UnifAPI API key. Provider credentials are managed by UnifAPI.

In: header

Path Parameters

feed*string

Story feed: top, new, best, ask, show, or jobs.

Value in

  • "top"
  • "new"
  • "best"
  • "ask"
  • "show"
  • "jobs"

Query Parameters

cursor?string

Zero-based offset cursor returned as next_cursor.

limit?integer
Range1 <= value <= 500
Default100

Header Parameters

Unifapi-Version?"2026-07-01"

Pin the API version an integration was built against (date-based, e.g. 2026-07-01). Omit to use the current version. Public URL paths stay stable and unversioned; breaking changes ship under a new dated version and are announced with Deprecation and Sunset response headers. The served version is echoed in every response's Unifapi-Version header. Policy: https://unifapi.com/versioning.md

Default"2026-07-01"

Value in

  • "2026-07-01"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/hacker-news/stories/top"
{  "request_id": "string",  "data": [    0  ],  "pagination": {    "has_more": true,    "next_cursor": "string"  },  "billing": {    "credits_charged": 0,    "records_charged": 0,    "balance_remaining": 0,    "truncated_due_to_balance": true  }}