Hacker News API

Hacker News Story API

Get a Hacker News story by id - title, link, author, points, and comment count as clean JSON.

POST/v1/run/hackernews.story
Uptime
100.00%
30d · 40 calls
Requests
40
30d · weekly, last 12 wks
Response
0.2s
median · 30d

Provider network

Providers ranked by traffic

Try it

Make your first request

Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.
{
  "data": {
    "author": "Alex Rivera",
    "comments": 12500,
    "createdUtc": 12.5,
    "points": 42,
    "title": "Example title",
    "url": "https://example.com/page"
  },
  "found": true
}
Response interface
interface HackernewsStoryResponse {
  data: {
    author: string;
    comments: number;
    createdUtc: number;
    points: number;
    title: string;
    url: string;
  } | null;
  found: boolean;
}

Full parameter and response reference - every field, type, and example for this endpoint.

Reference

Request, response, and price

Last verified 2026-09-16 · uptime and latency measured over 30d
POST /v1/run/hackernews.story
curl -X POST https://api.getanyapi.com/v1/run/hackernews.story \
  -H "Authorization: Bearer $ANYAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id":"47340079"}'
FieldTypeExample value
Request body
idstring"47340079"Hacker News story id, e.g. "47340079".
Response
dataobjectStory payload, or null when the id did not resolve.
data.authorstringSubmitting user's username. Populated whenever the provider has data for the entity.
data.commentsintegerNumber of comments on the story.
data.createdUtcnumberUTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds. Populated whenever the provider has data for the entity.
data.pointsintegerStory score (upvotes).
data.titlestringStory title. Populated whenever the provider has data for the entity.
data.urlstringStory link.
foundbooleanTrue when the story id resolved.
Price
Price per requestUSD$0.0015
Price /1k reqUSD$1.50

FAQ

About the Hacker News Story API

The AnyAPI Hacker News Story API returns Hacker News story data as normalized JSON from one POST call to /v1/run/hackernews.story. Get a Hacker News story by id - title, link, author, points, and comment count as clean JSON. AnyAPI routes each request across 2 sources and falls back automatically when one fails. It costs from $1.50 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 100.0% of Hacker News story calls through AnyAPI succeeded, with a median response time of 0.2 seconds across 40 measured calls.

It costs from $1.50 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet, each call draws it down, and a failed request costs $0.

Get a Hacker News story by id - title, link, author, points, and comment count as clean JSON. The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.

Over the last 30 days, 100.0% of Hacker News story calls through AnyAPI succeeded, with a median response time of 0.2 seconds across 40 measured calls. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.