List a Hacker News user's favorites
Returns the stories and comments a Hacker News user has marked as public favorites. Paginate with `cursor`. Returns `not_found` when the user does not exist.
Pricing — $ · min $0.003
Minimum 3 credits ($0.003) per call. Records returned above the minimum bill 1 credit ($0.001) each.
Authorization
bearerAuth UnifAPI API key. Provider credentials are managed by UnifAPI.
In: header
Path Parameters
Hacker News username (case-sensitive).
1 <= length <= 500Query Parameters
Opaque pagination cursor from a previous response's pagination.next_cursor. Omit for the first page.
1 <= length <= 16384Header Parameters
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
"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/users/string/favorites"{ "request_id": "string", "data": [ { "id": 0, "type": "string", "author": "string", "created_at": 0, "title": "string", "text": "string", "url": "string", "score": 0, "comment_count": 0, "parent_id": 0, "child_ids": [ 0 ], "is_dead": true, "is_deleted": true, "item_url": "string" } ], "pagination": { "has_more": true, "next_cursor": "string" }, "billing": { "credits_charged": 0, "records_charged": 0, "balance_remaining": 0, "truncated_due_to_balance": true }}