{"uid":"cap_20jtzDaCLPE4L-XXsbMqB","slug":"hacker-news-item-fetcher-0799e7b3","name":"Hacker News Item Fetcher","description":"One Hacker News story (or comment) by id with up to 30 top-level comments: author, time, plain text up to 500 characters and reply count.","url":"https://hn.genexxis.com/item?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"Numeric Hacker News item id"},"maxComments":{"type":"string","description":"1-30, default 30"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"item":{"id":8863,"url":"http://www.getdropbox.com/u/2/screencast.html","type":"story","hnUrl":"https://news.ycombinator.com/item?id=8863","title":"My YC app: Dropbox - Throw away your USB drive","author":"dhouston","domain":"getdropbox.com","points":104,"created":"2007-04-04T19:16:40.000Z","comments":71},"count":15,"comments":[{"id":9224,"text":"I have a few qualms with this app...","author":"BrandonM","points":null,"created":"2007-04-05T15:16:54.000Z","replies":4}],"topLevelComments":15}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_3Q-OaDNAw99wsmTDxHAeM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a single Hacker News story or comment by ID, including metadata and up to 30 top-level comments with author, timestamp, truncated text, and reply counts.","exampleAgentPrompt":"Pull up Hacker News item 8863 for me — I want to see the title, author, points, and the top 10 comments including who wrote them and how many replies each got.","exampleUseCases":[{"title":"Summarize a viral HN thread","prompt":"Grab Hacker News item 37596382 and give me a summary of the post and the top 15 comments — I want to know the main arguments people are making."},{"title":"Track who's discussing a launch","prompt":"I just submitted item 40123456 to Hacker News — can you fetch it and show me the first 20 top-level comments so I can see the early reactions?"},{"title":"Archive a specific HN story","prompt":"Retrieve Hacker News item 9224 for me with all its details — title, author, score, creation time, and up to 30 comments — I need to save a snapshot of this discussion."}],"resultDescription":"Returns a JSON object with the story or comment's ID, type, title (for stories), author, points, creation timestamp, HN URL, source domain, and total comment count, plus an array of up to 30 top-level comments each containing ID, author, truncated plain text (up to 500 chars), creation time, and reply count.","failureModes":["Invalid or non-existent item ID returns an error or empty result","Deleted or dead HN items may return limited or no data","maxComments out of range (>30 or <1) may be clamped or rejected","Network timeout if HN API is slow","Numeric ID passed as wrong type may cause validation failure"],"whenToPreferThis":"Use this endpoint when you need structured metadata and comments for a specific known Hacker News item by ID. Prefer this over search-based endpoints when you already have the item ID and need comment-level detail including author, reply counts, and truncated text in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T12:31:29.485Z","isFirstParty":false,"canonicalSlug":"hacker-news-item-fetcher-0799e7b3"}