{"uid":"cap_hVl1nXwSawPDTphsJEdRW","slug":"reddit-comments-search-by-keyword-b47fb77d","name":"Reddit Comments Search by Keyword","description":"Search for Reddit comments by keyword across all subreddits, or in one subreddit.","url":"https://x402.apidirect.io/v1/reddit/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":["query"],"properties":{"pages":{"type":"integer","default":1,"maximum":10,"minimum":1,"description":"Number of pages to fetch and merge (1-10). Billed per page."},"query":{"type":"string","maxLength":500,"description":"Search query (max 500 characters)"},"sort_by":{"enum":["most_recent","relevance","top"],"type":"string","default":"most_recent","description":"Sort order for results"},"subreddit":{"type":"string","maxLength":25,"description":"Only return comments from this subreddit, with or without r/ (e.g. Python)."},"get_sentiment":{"type":"boolean","default":false,"description":"Set to true to add AI emotion analysis to each comment (returned in the `posts` 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` (positiv"}}}},"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_H-pwT3TXUO1_ASxAjf6lQ","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":"Search for Reddit comments by keyword across all subreddits or within a specific subreddit, with optional AI sentiment analysis.","exampleAgentPrompt":"Search Reddit comments mentioning 'GPT-5' sorted by most recent, pulling 3 pages of results, and include AI sentiment analysis so I can see what emotions people are expressing.","exampleUseCases":[{"title":"Brand sentiment monitoring on Reddit","prompt":"Search Reddit comments mentioning 'Notion AI' across all subreddits, sorted by most recent, and turn on sentiment analysis so I can see whether people are feeling positive or negative about it."},{"title":"Niche subreddit opinion research","prompt":"Find the top comments in r/personalfinance that mention 'index funds', sorted by relevance, and give me 2 pages of results."},{"title":"Competitor feedback analysis","prompt":"Search Reddit for comments mentioning 'Linear app' sorted by top, across 5 pages, and include emotion analysis so I can understand what's driving user sentiment."}],"resultDescription":"Returns an array of Reddit comments matching the query, each including the comment text, author, subreddit, score, timestamp, and permalink. If get_sentiment is enabled, each comment also includes a sentiment object with emotion scores (joy, trust, fear, surprise, sadness, disgust, anger, anticipation each 0-100), dominant_emotion, emotional_intensity (0-10), and polarity.","failureModes":["Query string missing or empty — returns validation error","Subreddit does not exist — returns empty results or 404-style error","Pages parameter out of range (below 1 or above 10) — returns schema validation error","Rate limit exceeded — returns 429 or payment-related error","Reddit API downtime — upstream failure returns 502 or timeout"],"whenToPreferThis":"Choose this endpoint when you need to search Reddit comment content by keyword, optionally scoped to a specific subreddit, with optional AI-powered emotion scoring. Prefer it over Reddit Posts Search when you specifically want comments rather than top-level posts. Ideal for brand monitoring, community sentiment research, or competitive analysis where user discussion depth matters.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T19:08:10.140Z","isFirstParty":false,"canonicalSlug":"reddit-comments-search-by-keyword-b47fb77d"}