API para Hacker News: Comentários do post
Liste os comentários de um post do Hacker News pelo ID: texto, autor e data e hora em JSON limpo.
Rede de provedores
Provedores ordenados por tráfego
Teste
Faça sua primeira requisição
{
"data": {
"comments": [
{
"author": "Alex Rivera",
"createdUtc": 12.5,
"id": "a1b2c3d4",
"parentId": "a1b2c3d4",
"permalink": "https://example.com/page",
"postId": "a1b2c3d4",
"text": "A short example description of this item."
}
]
},
"found": true,
"reason": "not_found"
}interface HackernewsStoryCommentsResponse {
data: {
comments: {
author: string;
createdUtc: number;
id: string;
parentId: string;
permalink?: string;
postId?: string;
text: string;
}[];
} | null;
found: boolean;
reason?: "not_found";
}Referência completa de parâmetros e resposta - todos os campos, tipos e exemplos deste endpoint.
Referência
Requisição, resposta e preço
Última verificação em 2026-09-29 · disponibilidade e latência medidas em 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"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| id | string | "47340079"O ID do post no Hacker News, por exemplo "47340079". |
| Resposta | ||
| 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[].permalink | string | Permalink to the item on news.ycombinator.com. |
| data.comments[].postId | string | Hacker News item ID of the story the comment belongs to. |
| data.comments[].text | string | Comment body text. |
| found | boolean | True when the story id resolved and comments were returned. |
| reason | "not_found" | Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost. |
| Preço | ||
| Preço por requisição | USD | US$ 0,0015 |
| Preço /mil req. | USD | US$ 1,50 |
Dúvidas frequentes
Sobre o endpoint Comentários do post da API para Hacker News
O endpoint Comentários do post da AnyAPI para Hacker News retorna dados de Hacker News em JSON normalizado com uma chamada POST para /v1/run/hackernews.story_comments. Liste os comentários de um post do Hacker News pelo ID: texto, autor e data e hora em JSON limpo. A AnyAPI distribui cada requisição entre 2 fontes, com failover automático quando uma falha. Custa a partir de US$ 1,50 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 100,0% das chamadas ao endpoint Comentários do post da API para Hacker News feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 0,4 segundos, em 28 chamadas medidas.