{"uid":"cap_r_g2SArN5XPrx6GiKBO4s","slug":"reddit-post-comments-fetcher-c97fc4a1","name":"Reddit Post Comments Fetcher","description":"Get the comments on a Reddit post, replies included, by URL or post ID.","url":"https://x402.apidirect.io/v1/reddit/post/comments?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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"url":{"type":"string","maxLength":500,"description":"Reddit post URL, e.g. https://www.reddit.com/r/Python/comments/1wwv97o/my_python_magic_is_gone/ or https://redd.it/1wwv97o (max 500 characters). Provide exactly one of url or post_id."},"pages":{"type":"integer","default":1,"maximum":80,"minimum":1,"description":"Number of pages to fetch, 1-80 (default: 1). Each page returns up to 50 comments."},"post_id":{"type":"string","description":"Reddit post ID, e.g. 1wwv97o (a t3_ prefix is accepted). Provide exactly one of url or post_id."},"sort_by":{"enum":["top","best","most_recent","controversial","oldest","qa"],"type":"string","default":"top","description":"Sort order: top, best (Reddit's default order), most_recent, controversial, oldest, or qa (Q&A) (default: top)"},"get_sentiment":{"type":"boolean","default":false,"description":"Set to true to add AI emotion analysis to each comment (returned in the `comments` array). Adds a `sentiment` object containing `emotions` (joy, trust, fear, surprise, sadness, disgust, anger and anticipation, each scored 0-100), `dominant_emotion`, `emotional_intensity` (0-10), and `polarity` (posi"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9NvVXpBIEWMjFf9qA4-Oc","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches all comments (with nested replies) for a Reddit post by URL or post ID, with optional sentiment analysis.","exampleAgentPrompt":"Fetch the top 100 comments (2 pages) from this Reddit post — https://www.reddit.com/r/Python/comments/1wwv97o/my_python_magic_is_gone/ — sorted by top, and include sentiment analysis for each comment.","exampleUseCases":[{"title":"Product feedback mining from Reddit","prompt":"Pull the top 150 comments from https://www.reddit.com/r/MachineLearning/comments/1abc123/chatgpt_review/ sorted by top across 3 pages, and include AI sentiment analysis so I can see how people feel about it."},{"title":"Monitoring viral post discussion","prompt":"Get the most recent 50 comments from Reddit post ID 1wwv97o — I want to see what people are saying right now, sorted by most_recent."},{"title":"Q&A thread extraction","prompt":"Fetch all Q&A-sorted comments from this Reddit AMA thread: https://www.reddit.com/r/IAmA/comments/2wwv97o/i_am_a_scientist/ — give me 4 pages worth so I can capture all the questions and answers."}],"resultDescription":"Returns an array of comment objects for the specified Reddit post, each containing the comment text, author, score, timestamp, and nested reply threads. When sentiment analysis is enabled, each comment also includes a sentiment object with eight emotion scores (joy, trust, fear, surprise, sadness, disgust, anger, anticipation each 0-100), a dominant_emotion field, an emotional_intensity score (0-10), and a polarity indicator. Supports pagination up to 80 pages of 50 comments each.","failureModes":["Invalid or non-existent Reddit post URL/ID returns a 404 or empty result","Providing both url and post_id simultaneously may cause a validation error","Deleted or private subreddit posts may return no comments or an access error","Exceeding the 500-character URL limit causes a validation error","Rate limiting or payment failure (402) if USDC balance is insufficient","Very large threads with many pages may have slower response times"],"whenToPreferThis":"Choose this endpoint when you need to retrieve the full comment tree of a specific Reddit post — including nested replies — by either URL or post ID. It is ideal when you already know the exact post you want to analyze and need structured comment data, optionally enriched with per-comment emotion/sentiment scores. Prefer this over a Reddit search endpoint when you have a direct post reference rather than a keyword query.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T19:07:44.746Z","isFirstParty":false,"canonicalSlug":"reddit-post-comments-fetcher-c97fc4a1"}