{"uid":"cap_OccKKgasGBaYJaZMN6Gyh","slug":"hacker-news-lemmy-thread-fetcher-c2a3fca4","name":"Hacker News / Lemmy Thread Fetcher","description":"Get one Hacker News or Lemmy thread: the post with its text and the comments flattened with depth and score. One community thread by id from /v1/social/search (hn:<id> or lemmy:<id>): the post with its text and the comments flattened with depth, score and author. Query: ?id=hn:49806046&limit=50","url":"https://api.x-402.online/v1/social/thread?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","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_58xeCCjxbGUVPjyb0BxTp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","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 or Lemmy thread by ID, returning the post content and all comments flattened with depth, score, and author metadata.","exampleAgentPrompt":"Pull the Hacker News thread hn:49806046 and give me the top 50 comments with their scores and nesting depth.","exampleUseCases":[{"title":"Summarize a viral HN discussion","prompt":"Grab the Hacker News thread hn:34856123 with up to 100 comments and summarize the main points of debate."},{"title":"Monitor reactions to a product launch","prompt":"Fetch the Hacker News thread hn:38901234 — I want to see the post text and the first 75 comments with their scores so I can gauge community sentiment about our launch."},{"title":"Analyze a Lemmy community thread","prompt":"Get the Lemmy thread lemmy:12345 with up to 50 comments including author names and scores, so I can see who the key voices are in this discussion."}],"resultDescription":"Returns the post's title, body text, and a flat list of comments each containing the comment text, author, nesting depth level, and score/upvote count. Comments are ordered and limited to the requested count.","failureModes":["Invalid thread ID format (must be hn:<id> or lemmy:<id>) returns an error","Thread ID does not exist or has been deleted — empty or error response","Limit parameter exceeds maximum allowed value","Payment of $0.02 USDC not completed — 402 Payment Required response","Lemmy instance may be unavailable causing fetch failure"],"whenToPreferThis":"Use this endpoint when you need the full content and discussion of a specific known Hacker News or Lemmy thread, including structured comment metadata like depth, score, and author. Prefer this over search endpoints when you already have the thread ID and want the complete discussion tree in a flat, machine-readable format.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T18:45:58.488Z","isFirstParty":false,"canonicalSlug":"hacker-news-lemmy-thread-fetcher-c2a3fca4"}