# Hacker News API API reference

> The Hacker News API returns stories, comments, jobs, polls and user profiles as JSON. An investigator can use it to read a username's public profile (creation date, karma, about text) and the list of item IDs that user submitted, then fetch those items one by one. Calls are plain GET requests to…

Source: https://osinttools.io/apis/hacker-news-api/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/hacker-news-api/

- Base URL: https://hacker-news.firebaseio.com/v0
- Authentication: No key needed.
- Rate limits: There is currently no rate limit.
- Vendor docs: https://github.com/HackerNews/API

## Overview

The Hacker News API returns stories, comments, jobs, polls and user profiles as JSON. An investigator can use it to read a username's public profile (creation date, karma, about text) and the list of item IDs that user submitted, then fetch those items one by one.

Calls are plain GET requests to `https://hacker-news.firebaseio.com/v0/`, each path ending in `.json`. No key is needed. The docs recommend a Firebase client library where possible.

Usernames are case-sensitive, and only users with public activity (comments or submissions) are available. The docs state: "There is currently no rate limit."

## Users

### A user's public profile and the IDs of their submissions.

`GET /user/{id}.json`

- Takes: Username
- Footprint: passive (the target is not contacted)

Returns the profile of one user. Usernames are case-sensitive. Only users with public activity are available. The about text is HTML.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | Case-sensitive username Example: exampleuser |

Response fields:

- `id` (string): Unique, case-sensitive username
- `created` (integer): Creation date, Unix time
- `karma` (integer): The user's karma
- `about` (string): Optional self-description (HTML)
- `submitted[]` (integer): IDs of the user's stories, polls and comments

```bash
curl 'https://hacker-news.firebaseio.com/v0/user/exampleuser.json'
```

Example response (200):

```json
{
  "about": "Example profile text",
  "created": 1173923446,
  "id": "exampleuser",
  "karma": 120,
  "submitted": [
    8265435,
    8168423,
    8090946
  ]
}
```

## Items

### One story, comment, job, poll or poll option by its ID.

`GET /item/{id}.json`

- Footprint: passive (the target is not contacted)

Returns a single item. Only id is always present; other fields depend on the item type.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | integer | yes | The item's unique integer ID Example: 8863 |

Response fields:

- `id` (integer): The item's unique ID
- `type` (string): job, story, comment, poll or pollopt
- `by` (string): Author's username
- `time` (integer): Creation time, Unix time
- `title` (string): Title of a story, poll or job (HTML)
- `text` (string): Comment, story or poll text (HTML)
- `url` (string): Story URL
- `score` (integer): Story score, or votes for a poll option
- `descendants` (integer): Total comment count for stories or polls
- `kids[]` (integer): IDs of comments, in ranked display order
- `parent` (integer): Parent item of a comment
- `deleted` (boolean): true if deleted
- `dead` (boolean): true if dead

```bash
curl 'https://hacker-news.firebaseio.com/v0/item/8863.json'
```

Example response (200):

```json
{
  "by": "exampleuser",
  "descendants": 71,
  "id": 8863,
  "kids": [
    8952,
    9224,
    8917
  ],
  "score": 111,
  "time": 1175714200,
  "title": "Example story title",
  "type": "story",
  "url": "https://example.com/story"
}
```

### The current largest item ID.

`GET /maxitem.json`

- Footprint: passive (the target is not contacted)

Returns one integer. Walk backward from it to discover items.

```bash
curl 'https://hacker-news.firebaseio.com/v0/maxitem.json'
```

Example response (200):

```
9130260
```

## Story lists

### Up to 500 top stories (also contains jobs), as item IDs.

`GET /topstories.json`

- Footprint: passive (the target is not contacted)

Returns an array of item IDs. The same shape is returned by /newstories.json (up to 500), /beststories.json, /askstories.json (up to 200), /showstories.json (up to 200) and /jobstories.json (up to 200).

```bash
curl 'https://hacker-news.firebaseio.com/v0/topstories.json'
```

Example response (200):

```json
[
  9129911,
  9129199,
  9127761
]
```

### Items and profiles that changed recently.

`GET /updates.json`

- Footprint: passive (the target is not contacted)

Returns the IDs of changed items and the usernames of changed profiles.

Response fields:

- `items[]` (integer): IDs of changed items
- `profiles[]` (string): Usernames of changed profiles

```bash
curl 'https://hacker-news.firebaseio.com/v0/updates.json'
```

Example response (200):

```json
{
  "items": [
    8423305,
    8420805
  ],
  "profiles": [
    "exampleuser",
    "otheruser"
  ]
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
