Hacker News
What Hacker News data is for.
Use Hacker News when you need search and discovery, comments and reviews, posts, videos and catalog records, public profiles and creator metadata without maintaining a separate adapter for each route. Start with the lowest-cost live operation, then add search or list endpoints only when the response shape fits your product.
Live
14
Paid only
0
Price floor
1 cr
Use cases
Hacker News item
Call /v1/hackernews/item when you need a normalized hacker news item response with the same credit and cache rules as the rest of the catalog.
Hacker News top stories
Call /v1/hackernews/top when you need a normalized hacker news top stories response with the same credit and cache rules as the rest of the catalog.
Hacker News search
Call /v1/hackernews/search when you need a normalized hacker news search response with the same credit and cache rules as the rest of the catalog.
Auth & error contract.
Auth
Send x-api-key: cf_live_... or Authorization: Bearer cf_live_.... A missing or invalid key returns 401.
Billing
Successful lookups charge the listed credits. Cache hits, 5xx responses and mapped 503 routes cost 0 credits.
Limits
429 includes Retry-After and costs nothing. Paid-only routes return 403 plan_required before any provider call.
Mapped routes
1 routes are cataloged but not connected. They return 503 upstream_not_configured and never charge.
Operations
Live / 14
readyHacker News item
/v1/hackernews/item| Name | Type | Required | Description |
|---|---|---|---|
| id | string | yes | Numeric item id. |
curl -s "https://api.cleanfetch.dev/v1/hackernews/item?id=8863" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "hackernews",
"id": "123456",
"username": "nasa",
"name": "NASA",
"url": "https://example.com/nasa",
"followers": 12500000,
"description": "Public profile record normalized by CleanFetch."
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformidusernamenameurlfollowersdescriptionInput notes
- • Free accounts can call this endpoint up to 5 times per day.
- • Responses are cached for 1h.
- • A public record that does not exist returns not_found and is charged once.
Hacker News top stories
/v1/hackernews/top| Name | Type | Required | Description |
|---|---|---|---|
| limit | string | no | Maximum records to return, from 1 to 20. |
curl -s "https://api.cleanfetch.dev/v1/hackernews/top" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "hackernews",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 0.5h.
- • A public record that does not exist returns not_found and is charged once.
Hacker News search
/v1/hackernews/search| Name | Type | Required | Description |
|---|---|---|---|
| query | string | yes | Search query or keyword. |
| limit | string | no | Maximum records to return, from 1 to 20. |
curl -s "https://api.cleanfetch.dev/v1/hackernews/search?query=nike" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "hackernews",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Get Hacker News comment context
/v1/hackernews/comments/{id}/context| Name | Type | Required | Description |
|---|---|---|---|
| id | string | yes | Numeric item id. |
curl -s "https://api.cleanfetch.dev/v1/hackernews/comments/{id}/context" \
-H "x-api-key: $CLEANFETCH_API_KEY"{
"data": {
"platform": "hackernews",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 2,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
List a Hacker News feed
/v1/hackernews/feeds/{feed}| Name | Type | Required | Description |
|---|---|---|---|
| feed | string | yes | Lookup parameter. |
| page | string | no | Lookup parameter. |
| limit | string | no | Maximum records to return, from 1 to 20. |
curl -s "https://api.cleanfetch.dev/v1/hackernews/feeds/{feed}" \
-H "x-api-key: $CLEANFETCH_API_KEY"{
"data": {
"platform": "hackernews",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Get Hacker News item
/v1/hackernews/items/{id}| Name | Type | Required | Description |
|---|---|---|---|
| id | string | yes | Numeric item id. |
curl -s "https://api.cleanfetch.dev/v1/hackernews/items/{id}" \
-H "x-api-key: $CLEANFETCH_API_KEY"{
"data": {
"platform": "hackernews",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
List Who is Hiring jobs
/v1/hackernews/jobs/who-is-hiring| Name | Type | Required | Description |
|---|---|---|---|
| month | string | no | Lookup parameter. |
| page | string | no | Lookup parameter. |
| limit | string | no | Maximum records to return, from 1 to 20. |
curl -s "https://api.cleanfetch.dev/v1/hackernews/jobs/who-is-hiring" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "hackernews",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Get Hacker News max item id
/v1/hackernews/maxitemcurl -s "https://api.cleanfetch.dev/v1/hackernews/maxitem" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "hackernews",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Get Hacker News story
/v1/hackernews/stories/{id}| Name | Type | Required | Description |
|---|---|---|---|
| id | string | yes | Numeric item id. |
curl -s "https://api.cleanfetch.dev/v1/hackernews/stories/{id}" \
-H "x-api-key: $CLEANFETCH_API_KEY"{
"data": {
"platform": "hackernews",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Get Hacker News story comments
/v1/hackernews/stories/{id}/comments| Name | Type | Required | Description |
|---|---|---|---|
| id | string | yes | Numeric item id. |
| limit | string | no | Maximum records to return, from 1 to 20. |
| cursor | string | no | Lookup parameter. |
| labels | string | no | Lookup parameter. |
curl -s "https://api.cleanfetch.dev/v1/hackernews/stories/{id}/comments" \
-H "x-api-key: $CLEANFETCH_API_KEY"{
"data": {
"platform": "hackernews",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 3,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Get Hacker News updates
/v1/hackernews/updatescurl -s "https://api.cleanfetch.dev/v1/hackernews/updates" \ -H "x-api-key: $CLEANFETCH_API_KEY"
{
"data": {
"platform": "hackernews",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Get Hacker News user profile
/v1/hackernews/users/{username}| Name | Type | Required | Description |
|---|---|---|---|
| username | string | yes | Public handle without the @ prefix. |
curl -s "https://api.cleanfetch.dev/v1/hackernews/users/{username}" \
-H "x-api-key: $CLEANFETCH_API_KEY"{
"data": {
"platform": "hackernews",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
List Hacker News user comments
/v1/hackernews/users/{username}/comments| Name | Type | Required | Description |
|---|---|---|---|
| username | string | yes | Public handle without the @ prefix. |
| page | string | no | Lookup parameter. |
| limit | string | no | Maximum records to return, from 1 to 20. |
curl -s "https://api.cleanfetch.dev/v1/hackernews/users/{username}/comments" \
-H "x-api-key: $CLEANFETCH_API_KEY"{
"data": {
"platform": "hackernews",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
List Hacker News user submissions
/v1/hackernews/users/{username}/submissions| Name | Type | Required | Description |
|---|---|---|---|
| username | string | yes | Public handle without the @ prefix. |
| page | string | no | Lookup parameter. |
| limit | string | no | Maximum records to return, from 1 to 20. |
curl -s "https://api.cleanfetch.dev/v1/hackernews/users/{username}/submissions" \
-H "x-api-key: $CLEANFETCH_API_KEY"{
"data": {
"platform": "hackernews",
"count": 1,
"items": [
{
"id": "123456",
"url": "https://example.com/item/123456",
"text": "Example public post returned by this endpoint.",
"createdAt": "2026-11-30T00:00:00.000Z",
"author": {
"username": "nasa",
"name": "NASA"
}
}
]
},
"meta": {
"lookupStatus": "found",
"creditsCharged": 1,
"cached": false
}
}Returns
platformcountitems[].iditems[].urlitems[].textitems[].createdAtInput notes
- • Free accounts can call this endpoint up to 3 times per day.
- • Responses are cached for 6h.
- • A public record that does not exist returns not_found and is charged once.
Mapped / 1
503 · 0 creditsList Hacker News user favorites
/v1/hackernews/users/{username}/favorites
Common Hacker News API questions
How many Hacker News operations are live?
14 of 15 cataloged operations are live. 1 mapped operation returns 503 upstream_not_configured and cost 0 credits.
What does a Hacker News call cost?
Live operations range from 1 to 3 credits. 14 are available on the free daily cap and 0 are paid-only. Cache hits cost 0 credits.
Are Hacker News responses cached?
Successful responses are cached between 0.5h and 6h. A cache hit costs 0 credits and does not consume the free daily cap.
How do I authenticate Hacker News requests?
Send x-api-key or Authorization: Bearer with a CleanFetch key. Missing or invalid keys return 401; paid-only routes return 403 plan_required; rate limits return 429 with Retry-After. A 5xx or timeout costs 0 credits.