{"uid":"cap_yEuPTs5D9_xjYtl4A4bOe","slug":"api-direct-reddit-user-comments-8447e4f7","name":"API Direct – Reddit User Comments","description":"Get a Reddit user's comments by username or profile URL.","url":"https://x402.apidirect.io/v1/reddit/user/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 profile URL, e.g. https://www.reddit.com/user/spez (max 500 characters). Provide exactly one of username or url."},"pages":{"type":"integer","default":1,"maximum":40,"minimum":1,"description":"Number of pages to fetch, 1-40 (default: 1). Each page returns up to 25 comments."},"sort_by":{"enum":["most_recent","hot","top","controversial"],"type":"string","default":"most_recent","description":"Sort order: most_recent, hot, top, or controversial (default: most_recent)"},"username":{"type":"string","maxLength":26,"description":"Reddit username, with or without u/ (3-20 characters). Provide exactly one of username or url."},"posted_ago":{"enum":["1h","24h","7d","30d","12m","all"],"type":"string","description":"Time window for sort_by=top or sort_by=controversial: 1h, 24h, 7d, 30d, 12m, or all (default: all). Rejected with any other sort_by."},"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_addlAF8Hd5qTk-liES91D","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 paginated comments posted by a Reddit user, identified by username or profile URL, with optional AI sentiment analysis.","exampleAgentPrompt":"Pull the last 2 pages of comments from Reddit user u/spez, sorted by top all-time, and include AI sentiment analysis on each comment.","exampleUseCases":[{"title":"Research a Reddit user's opinion history","prompt":"Fetch the 3 most recent pages of comments from Reddit user u/gallowboob sorted by most_recent — I want to see what they've been posting lately."},{"title":"Sentiment analysis on a user's comment activity","prompt":"Get the top comments from u/kn0thing on Reddit over the past 30 days and run sentiment analysis on each one so I can see their emotional tone."},{"title":"Investigate controversial Reddit commenter","prompt":"Pull 2 pages of the most controversial comments ever made by the Reddit user at https://www.reddit.com/user/spez and show me the results sorted by controversial, all time."}],"resultDescription":"Returns a paginated list of comments made by the specified Reddit user, each including comment text, post context, score, timestamp, and subreddit. If get_sentiment is true, 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, emotional intensity (0–10), and a polarity label.","failureModes":["Invalid or nonexistent Reddit username returns an error or empty result","Providing both username and url simultaneously may cause a validation error","Using posted_ago with sort_by other than top or controversial is rejected","Requesting more than 40 pages exceeds the maximum and returns a validation error","Suspended or deleted Reddit accounts may return no comments","Rate limiting or Reddit API downtime may cause upstream failures"],"whenToPreferThis":"Choose this endpoint when you need to retrieve the comment history of a specific Reddit user by username or profile URL, especially when you want pagination control, multiple sort orders (recent, hot, top, controversial), time-window filtering, and optional AI-powered emotion/sentiment analysis per comment. Prefer it over general Reddit search endpoints when your target is a specific user's comment activity rather than posts or subreddit-level content.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T19:07:14.249Z","isFirstParty":false,"canonicalSlug":"api-direct-reddit-user-comments-8447e4f7"}