Hacker News Story API
Obtenez une story Hacker News par id - titre, lien, auteur, points et nombre de commentaires en JSON propre.
1,50 $US/1k req, paiement à la requête, sans abonnement.
Why we rewrote our build system in Rust (blog.tacitlabs.dev)
482 points by kvasir_dev on Sep 27, 2025 | hide | past | favorite | 214 comments
{"id": "45389217","title": "Why we rewrote our build system in Rust","url": "https://blog.tacitlabs.dev/rust-build-system","author": "kvasir_dev","points": 482,"comments": 214,"createdUtc": 1758978420,"permalink": "https://news.ycombinator.com/item?id=45389217"}
Tarifs et fournisseurs
Tarifs de l’API Hacker News Story : une API, 2 fournisseurs interchangeables
Le fournisseur le moins cher répond en premier. S’il échoue, le suivant prend le relais dans le même appel.
Essayer
Obtenez Hacker News Story en une requête
Cet exemple affiche 10 champs sur 11. Voir tous les champs
{
"found": true,
"data": {
"id": "45389217",
"title": "Why we rewrote our build system in Rust",
"url": "https://blog.tacitlabs.dev/rust-build-system",
"author": "kvasir_dev",
"points": 482,
"comments": 214,
"createdUtc": 1758978420,
"permalink": "https://news.ycombinator.com/item?id=45389217"
}
}Référence complète des paramètres et de la réponse : chaque champ, type et exemple de cet endpoint.
Référence
Une requête, une seule forme de réponse.
Chaque champ que vous envoyez et chaque champ que vous recevez, avec un vrai exemple.
Dernière vérification : 2026-11-21 · disponibilité et latence mesurées sur 30d
Corps de la requête
JSON, envoyé à cet endpoint.
- idstring
45389217
ID de story Hacker News, p. ex. « 47340079 ».
Réponse
JSON, une valeur d’exemple par champ.
Story payload, or null when the id did not resolve.
- authorstring
kvasir_dev
Submitting user's username. Populated whenever the provider has data for the entity.
- commentsinteger
214
Number of comments on the story.
- createdUtcnumber
1758978420
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
45389217
Hacker News item ID of the story.
- permalinkstring
https://news.ycombinator.com/item?id=45389217
Permalink to the item on news.ycombinator.com.
- pointsinteger
482
Story score (upvotes).
- titlestring
Why we rewrote our build system in Rust
Story title. Populated whenever the provider has data for the entity.
- urlstring
https://blog.tacitlabs.dev/rust-build-system
Story link.
- foundboolean
true
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.
FAQ
À propos de l’API Hacker News Story
L’API Hacker News Story d’AnyAPI renvoie des données Hacker News en JSON normalisé à partir d’un appel POST à /v1/run/hackernews.story. Obtenez une story Hacker News par id - titre, lien, auteur, points et nombre de commentaires en JSON propre. AnyAPI route chaque requête sur 2 sources et bascule automatiquement quand l’une échoue. Elle coûte à partir de 1,50 $US pour 1 000 requêtes, en dollars US, sans abonnement et sans minimum mensuel. Ces 30 derniers jours, 100,0% des appels Hacker News Story passés par AnyAPI ont réussi, avec un temps de réponse médian de 0,1 secondes, sur 92 appels mesurés.