API
A read-only JSON API with the same data the pages show. No key; any site may call it; answers are cached for 30 seconds.
| Request | Answer |
|---|---|
GET /api/v0/item/{id} | A story, comment or listing: id, type, by, time, title, url, text, score, descendants, kids[], parent |
GET /api/v0/user/{name} | id, created, karma, about, submitted[] |
GET /api/v0/topstories | Up to 500 ids in front-page order. Also newstories, askstories, showstories, hirestories. |
GET /api/v0/maxitem | The highest item id. |
Unknown ids answer 404 {"error":"not found"}. Times are Unix seconds, UTC. Text is the author's plain text with the board's small markup.
Example
curl https://app-builders.wannable.ai/api/v0/topstories
[326, 346, 312, …]
curl https://app-builders.wannable.ai/api/v0/item/326
{
"id": 326,
"type": "story",
"time": 1795794930,
"by": "kofi_builds",
"title": "Building effective agents",
"url": "https://www.anthropic.com/engineering/building-effective-agents",
"score": 29,
"descendants": 22,
"kids": [328, 332, 344, 351, …]
}