API de Hacker News: Comentarios de una historia
Lista los comentarios de una historia de Hacker News por id: texto, autor y marca de tiempo como JSON limpio.
US$1.50/1k solic., pagas por solicitud, sin suscripción.
gwern_reader Sep 27, 2025 | next [-]
The interesting bit here is not Rust itself, it is that they went from a 40 minute cold build to under 3 minutes by caching at the crate graph level instead of the file level. That is a build system design decision, not a language one.
reply
{"id": "45389802","parentId": "45389217","author": "gwern_reader","text": "The interesting bit here is not Rust itself, it is that they went from a 40 minute cold build to under 3 minutes by caching at the crate graph level instead of the file level. That is a build system design decision, not a language one.","createdUtc": 1758981900,"postId": "45389217","permalink": "https://news.ycombinator.com/item?id=45389802"}
Precios y proveedores
Precios del endpoint Comentarios de una historia de la API de Hacker News: una API, 2 proveedores intercambiables
El proveedor más barato responde primero. Si falla, el siguiente toma el relevo en la misma llamada.
Pruébalo
Obtén Comentarios de una historia de Hacker News en una sola solicitud
Este ejemplo muestra 10 de 11 campos. Ver todos los campos
{
"found": true,
"data": {
"comments": [
{
"id": "45389802",
"parentId": "45389217",
"author": "gwern_reader",
"text": "The interesting bit here is not Rust itself, it is that they went from a 40 minute cold build to under 3 minutes by caching at the crate graph level instead of the file level. That is a build system design decision, not a language one.",
"createdUtc": 1758981900,
"postId": "45389217",
"permalink": "https://news.ycombinator.com/item?id=45389802"
},
{
"id": "45389944",
"parentId": "45389802",
"author": "tuple_of_one",
"text": "Bazel does crate level caching too if you use rules_rust, curious why they rolled their own instead.",
"createdUtc": 1758983160,
"postId": "45389217",
"permalink": "https://news.ycombinator.com/item?id=45389944"
},
{
"id": "45390110",
"parentId": "45389217",
"author": "kvasir_dev",
"text": "Author here. We looked at Bazel first, the migration cost for our existing Go and TypeScript services was the blocker, not the caching model.",
"createdUtc": 1758984720,
"postId": "45389217",
"permalink": "https://news.ycombinator.com/item?id=45390110"
}
]
}
}Referencia completa de parámetros y respuesta: cada campo, tipo y ejemplo de este endpoint.
Referencia
Una solicitud, un formato de respuesta.
Cada campo que envías y cada campo que recibes, cada uno con un ejemplo real.
Verificado por última vez el 2026-11-14 · disponibilidad y latencia medidas en 30d
Cuerpo de la solicitud
JSON, enviado por POST a este endpoint.
- idstring
45389217
Id de la historia de Hacker News, p. ej. "47340079".
Respuesta
JSON, un valor de ejemplo por campo.
Comments on the story. Populated whenever the provider has data for the entity.
- authorstring
gwern_reader
Commenting user's username. Populated whenever the provider has data for the entity.
- createdUtcnumber
1758981900
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.
- idstring
45389802
Hacker News comment id. Populated whenever the provider has data for the entity.
- parentIdstring
45389217
Id of the parent item (story or comment) this reply belongs to.
- permalinkstring
https://news.ycombinator.com/item?id=45389802
Permalink to the item on news.ycombinator.com.
- postIdstring
45389217
Hacker News item ID of the story the comment belongs to.
- textstring
The interesting bit here is not Rust itself, it is that they went from a 40 minute cold build to under 3 minutes by caching at the crate graph level instead of the file level. That is a build system design decision, not a language one.
Comment body text.
- foundboolean
true
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.
Preguntas frecuentes
Acerca del endpoint Comentarios de una historia de la API de Hacker News
El endpoint Comentarios de una historia de AnyAPI para Hacker News devuelve datos de Hacker News como JSON normalizado con una sola llamada POST a /v1/run/hackernews.story_comments. Lista los comentarios de una historia de Hacker News por id: texto, autor y marca de tiempo como JSON limpio. AnyAPI enruta cada solicitud entre 2 fuentes y recurre automáticamente a otra cuando una falla. Cuesta desde US$1.50 por cada 1,000 solicitudes, en dólares estadounidenses, sin suscripción y sin mínimo mensual. En los últimos 30 días, el 100.0% de las llamadas al endpoint Comentarios de una historia de la API de Hacker News a través de AnyAPI tuvo éxito, con un tiempo de respuesta mediano de 0.6 segundos en 261 llamadas medidas.