/v1/item
Full story or comment with its comment tree
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/hackernews-api/v1/item" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hackernews-api/v1/item", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hackernews-api/v1/item");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/hackernews-api/v1/item",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"id": "1",
"url": "http://ycombinator.com",
"text": null,
"type": "story",
"title": "Y Combinator",
"author": "pg",
"hn_url": "https://news.ycombinator.com/item?id=1",
"points": 57,
"children": [
{
"id": "15",
"url": null,
"text": ""the rising star of venture capital" -unknown VC eating lunch on SHR",
"type": "comment",
"title": null,
"author": "sama",
"hn_url": "https://news.ycombinator.com/item?id=15",
"points": null,
"children": [
{
"id": "17",
"url": null,
"text": "Is there anywhere to eat on Sandhill Road?",
"type": "comment",
"title": null,
"author": "pg",
"hn_url": "https://news.ycombinator.com/item?id=17",
"points": null,
"children": [
{
"id": "1079",
"url": null,
"text": "sure",
"type": "comment",
"title": null,
"author": "dmon",
"hn_url": "https://news.ycombinator.com/item?id=1079",
"points": null,
"children": [],
"created_at": "2007-02-25T22:18:23.000Z"
}
],
"created_at": "2006-10-09T19:52:45.000Z"
}
],
"created_at": "2006-10-09T19:51:01.000Z"
}
],
"created_at": "2006-10-09T18:21:51.000Z"
},
"meta": {
"timestamp": "2026-05-30T04:39:06.085Z",
"request_id": "a1565062-81fb-4940-ade3-324e67212373"
},
"status": "ok",
"message": "Item retrieved",
"success": true
}