Hacker News Recherche API
Cherchez sur Hacker News par mot-clé - stories correspondantes avec 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 | kvasir_dev | 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 Recherche : 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 Recherche en une requête
Cet exemple affiche 11 champs sur 12. Voir tous les champs
{
"found": true,
"data": {
"results": [
{
"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"
},
{
"id": "45384901",
"title": "Rust 1.84 released",
"url": "https://blog.rust-lang.org/2026/09/20/Rust-1.84.0.html",
"author": "steveklabnik2",
"points": 731,
"comments": 356,
"createdUtc": 1758513660,
"permalink": "https://news.ycombinator.com/item?id=45384901"
},
{
"id": "45379552",
"title": "Ask HN: Is Rust worth learning in 2026 for a Python backend dev?",
"url": "",
"author": "morning_otter",
"points": 128,
"comments": 187,
"createdUtc": 1758427260,
"permalink": "https://news.ycombinator.com/item?id=45379552"
}
]
}
}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.
- querystring
rust
Mot-clé de recherche, p. ex. « ai ».
- tagsstring
story
Filtre de résultat facultatif, p. ex. « story » ou « comment ».
Réponse
JSON, une valeur d’exemple par champ.
Matching Hacker News stories. Populated whenever the provider has data for the entity.
- 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. Populated whenever the provider has data for the entity.
- 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 search returned at least one story.
- 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 Recherche
L’API Hacker News Recherche d’AnyAPI renvoie des données Hacker News en JSON normalisé à partir d’un appel POST à /v1/run/hackernews.search. Cherchez sur Hacker News par mot-clé - stories correspondantes avec 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 Recherche passés par AnyAPI ont réussi, avec un temps de réponse médian de 0,5 secondes, sur 2 330 appels mesurés.