Hacker News Story API
Get a Hacker News story by id - title, link, author, points, and comment count as clean JSON.
Provider network
Providers ranked by traffic
Try it
Make your first request
{
"data": {
"author": "Alex Rivera",
"comments": 12500,
"createdUtc": 12.5,
"points": 42,
"title": "Example title",
"url": "https://example.com/page"
},
"found": true
}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 30dcurl -X POST https://api.getanyapi.com/v1/run/hackernews.story \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"id":"47340079"}'| Field | Type | Example value |
|---|---|---|
| Request body | ||
| id | string | "47340079"Hacker News story id, e.g. "47340079". |
| Response | ||
| data | object | Story payload, or null when the id did not resolve. |
| data.author | string | Submitting user's username. Populated whenever the provider has data for the entity. |
| data.comments | integer | Number of comments on the story. |
| data.createdUtc | number | UTC 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.points | integer | Story score (upvotes). |
| data.title | string | Story title. Populated whenever the provider has data for the entity. |
| data.url | string | Story link. |
| found | boolean | True when the story id resolved. |
| Price | ||
| Price per request | USD | $0.0015 |
| Price /1k req | USD | $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.