Docs / Platforms / Hacker News15 operations / 14 live / 1 mapped

Hacker News

Hacker News is exposed through 14 live operations covering search and discovery, comments and reviews, posts, videos and catalog records, public profiles and creator metadata. The full reference is below; mapped routes are explicitly disabled and never charge credits.
Overview & use cases

What Hacker News data is for.

Live Hacker News capabilities, credit floor, and typical lookup workflows.

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.

Contract / auth

Auth & error contract.

The platform follows the same gateway and billing rules as the rest of CleanFetch.

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.

Reference / 15

Operations

Live routes are expanded first with parameters, request example and response fields. Mapped routes are compact placeholders.

Live / 14

ready
GET

Hacker News item

/v1/hackernews/item
1 credits5/day free1h cache
NameTypeRequiredDescription
idstringyesNumeric item id.
Request
curl -s "https://api.cleanfetch.dev/v1/hackernews/item?id=8863" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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

platformidusernamenameurlfollowersdescription

Input 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.
GET

Hacker News top stories

/v1/hackernews/top
1 credits3/day free0.5h cache
NameTypeRequiredDescription
limitstringnoMaximum records to return, from 1 to 20.
Request
curl -s "https://api.cleanfetch.dev/v1/hackernews/top" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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.
GET

Get Hacker News comment context

/v1/hackernews/comments/{id}/context
2 credits3/day free6h cache
NameTypeRequiredDescription
idstringyesNumeric item id.
Request
curl -s "https://api.cleanfetch.dev/v1/hackernews/comments/{id}/context" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

List a Hacker News feed

/v1/hackernews/feeds/{feed}
1 credits3/day free6h cache
NameTypeRequiredDescription
feedstringyesLookup parameter.
pagestringnoLookup parameter.
limitstringnoMaximum records to return, from 1 to 20.
Request
curl -s "https://api.cleanfetch.dev/v1/hackernews/feeds/{feed}" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

Get Hacker News item

/v1/hackernews/items/{id}
1 credits3/day free6h cache
NameTypeRequiredDescription
idstringyesNumeric item id.
Request
curl -s "https://api.cleanfetch.dev/v1/hackernews/items/{id}" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

List Who is Hiring jobs

/v1/hackernews/jobs/who-is-hiring
1 credits3/day free6h cache
NameTypeRequiredDescription
monthstringnoLookup parameter.
pagestringnoLookup parameter.
limitstringnoMaximum records to return, from 1 to 20.
Request
curl -s "https://api.cleanfetch.dev/v1/hackernews/jobs/who-is-hiring" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

Get Hacker News max item id

/v1/hackernews/maxitem
1 credits3/day free6h cache
Request
curl -s "https://api.cleanfetch.dev/v1/hackernews/maxitem" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

Get Hacker News story

/v1/hackernews/stories/{id}
1 credits3/day free6h cache
NameTypeRequiredDescription
idstringyesNumeric item id.
Request
curl -s "https://api.cleanfetch.dev/v1/hackernews/stories/{id}" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

Get Hacker News story comments

/v1/hackernews/stories/{id}/comments
3 credits3/day free6h cache
NameTypeRequiredDescription
idstringyesNumeric item id.
limitstringnoMaximum records to return, from 1 to 20.
cursorstringnoLookup parameter.
labelsstringnoLookup parameter.
Request
curl -s "https://api.cleanfetch.dev/v1/hackernews/stories/{id}/comments" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

Get Hacker News updates

/v1/hackernews/updates
1 credits3/day free6h cache
Request
curl -s "https://api.cleanfetch.dev/v1/hackernews/updates" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

Get Hacker News user profile

/v1/hackernews/users/{username}
1 credits3/day free6h cache
NameTypeRequiredDescription
usernamestringyesPublic handle without the @ prefix.
Request
curl -s "https://api.cleanfetch.dev/v1/hackernews/users/{username}" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

List Hacker News user comments

/v1/hackernews/users/{username}/comments
1 credits3/day free6h cache
NameTypeRequiredDescription
usernamestringyesPublic handle without the @ prefix.
pagestringnoLookup parameter.
limitstringnoMaximum records to return, from 1 to 20.
Request
curl -s "https://api.cleanfetch.dev/v1/hackernews/users/{username}/comments" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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

List Hacker News user submissions

/v1/hackernews/users/{username}/submissions
1 credits3/day free6h cache
NameTypeRequiredDescription
usernamestringyesPublic handle without the @ prefix.
pagestringnoLookup parameter.
limitstringnoMaximum records to return, from 1 to 20.
Request
curl -s "https://api.cleanfetch.dev/v1/hackernews/users/{username}/submissions" \
  -H "x-api-key: $CLEANFETCH_API_KEY"
Response
{
  "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[].createdAt

Input 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 credits
GET

List Hacker News user favorites

/v1/hackernews/users/{username}/favorites

503 upstream_not_configured · 0 credits
FAQ / Hacker News

Common Hacker News API questions

Pricing, caching, authentication, and placeholder behavior.
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.

ready