API para Hacker News: Post
Obtenha um post do Hacker News pelo ID: título, link, autor, pontos e número de comentários em JSON limpo.
Rede de provedores
Provedores ordenados por tráfego
Teste
Faça sua primeira requisição
{
"data": {
"author": "Alex Rivera",
"comments": 12500,
"createdUtc": 12.5,
"id": "a1b2c3d4",
"permalink": "https://example.com/page",
"points": 42,
"title": "Example title",
"url": "https://example.com/page"
},
"found": true,
"reason": "not_found"
}interface HackernewsStoryResponse {
data: {
author: string;
comments: number;
createdUtc: number;
id?: string;
permalink?: string;
points: number;
title: string;
url: 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 \
-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 | 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.id | string | Hacker News item ID of the story. |
| data.permalink | string | Permalink to the item on news.ycombinator.com. |
| 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. |
| 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 Post da API para Hacker News
O endpoint Post da AnyAPI para Hacker News retorna dados de Hacker News em JSON normalizado com uma chamada POST para /v1/run/hackernews.story. Obtenha um post do Hacker News pelo ID: título, link, autor, pontos e número de comentários 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 Post da API para Hacker News feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 0,2 segundos, em 42 chamadas medidas.