Skip to content
OSINTtools.io

Hacker News API API

Official Hacker News API on Firebase: fetch stories, comments, jobs, polls and user profiles as JSON, with no key.

Base URL
https://hacker-news.firebaseio.com/v0
Sign-in
No key
Format
REST
Endpoints
5

Compiled by OSINTtools.io editors from github.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

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."

Quick start

  1. No key needed

    The Hacker News API API answers without an account or key.

  2. Make your first request

    A user's public profile and the IDs of their submissions.. Replace the example values and run it in a terminal, or use Try it on the endpoint.

    curl 'https://hacker-news.firebaseio.com/v0/user/exampleuser.json'
  3. Read the response

    A 200 response looks like this.

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

Authentication

No key or account: every endpoint answers without one.

Rate limits and pricing

There is currently no rate limit.

Users

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

Path parameters

idstringrequiredtakes your username

Case-sensitive username

Example: exampleuser
Response fields · 5Show

idstring

Unique, case-sensitive username

createdinteger

Creation date, Unix time

karmainteger

The user's karma

aboutstring

Optional self-description (HTML)

submitted[]integer

IDs of the user's stories, polls and comments

curl 'https://hacker-news.firebaseio.com/v0/user/exampleuser.json'
No key needed
Response
{
  "about": "Example profile text",
  "created": 1173923446,
  "id": "exampleuser",
  "karma": 120,
  "submitted": [
    8265435,
    8168423,
    8090946
  ]
}

Items

  • Passive: the target is not contacted

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

Path parameters

idintegerrequired

The item's unique integer ID

Example: 8863
Response fields · 13Show

idinteger

The item's unique ID

typestring

job, story, comment, poll or pollopt

bystring

Author's username

timeinteger

Creation time, Unix time

titlestring

Title of a story, poll or job (HTML)

textstring

Comment, story or poll text (HTML)

urlstring

Story URL

scoreinteger

Story score, or votes for a poll option

descendantsinteger

Total comment count for stories or polls

kids[]integer

IDs of comments, in ranked display order

parentinteger

Parent item of a comment

deletedboolean

true if deleted

deadboolean

true if dead

curl 'https://hacker-news.firebaseio.com/v0/item/8863.json'
No key needed
Response
{
  "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"
}
  • Passive: the target is not contacted

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

curl 'https://hacker-news.firebaseio.com/v0/maxitem.json'
No key needed
Response
9130260

Story lists

  • 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).

curl 'https://hacker-news.firebaseio.com/v0/topstories.json'
No key needed
Response
[
  9129911,
  9129199,
  9127761
]
  • Passive: the target is not contacted

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

Response fields · 2Show

items[]integer

IDs of changed items

profiles[]string

Usernames of changed profiles

curl 'https://hacker-news.firebaseio.com/v0/updates.json'
No key needed
Response
{
  "items": [
    8423305,
    8420805
  ],
  "profiles": [
    "exampleuser",
    "otheruser"
  ]
}