Hacker News Story comments API
List the comments on a Hacker News story by id - text, author, and timestamp as clean JSON.
Provider network
Providers ranked by traffic
Try it
Make your first request
{
"data": {
"comments": [
{
"author": "Alex Rivera",
"createdUtc": 12.5,
"id": "a1b2c3d4",
"parentId": "a1b2c3d4",
"text": "A short example description of this item."
}
]
},
"found": true
}interface HackernewsStoryCommentsResponse {
data: {
comments: {
author: string;
createdUtc: number;
id: string;
parentId: string;
text: 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_comments \
-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 | Result payload, or null when the id did not resolve. |
| data.comments | object[] | Comments on the story. Populated whenever the provider has data for the entity. |
| data.comments[].author | string | Commenting user's username. Populated whenever the provider has data for the entity. |
| data.comments[].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.comments[].id | string | Hacker News comment id. Populated whenever the provider has data for the entity. |
| data.comments[].parentId | string | Id of the parent item (story or comment) this reply belongs to. |
| data.comments[].text | string | Comment body text. |
| found | boolean | True when the story id resolved and comments were returned. |
| Price | ||
| Price per request | USD | $0.0015 |
| Price /1k req | USD | $1.50 |
FAQ
About the Hacker News Story comments API
The AnyAPI Hacker News Story comments API returns Hacker News story comments data as normalized JSON from one POST call to /v1/run/hackernews.story_comments. List the comments on a Hacker News story by id - text, author, and timestamp 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 comments calls through AnyAPI succeeded, with a median response time of 0.4 seconds across 29 measured calls.