/reddit/search/comments

POST /api/reddit/search/comments

Price: 12 credits

Reddit Search Comments

How to use it

Search Reddit comments by keyword, across all subreddits or within one (subreddit). Sort by relevance, top or new. A query reaches roughly 170-220 matching comments at most. time_filter keeps comments created within the window: with sort=new it returns everything in the window up to count, with relevance or top it keeps only the matches among those ranked results, so a short window can return few or none. By default the query terms are not all required: a comment missing one of the words can still be returned. To require every word, either join them with AND, prefix each with +, or quote the phrase (e.g. 'bitcoin AND halving', '+bitcoin +halving', '"bitcoin halving"') — Reddit itself then returns only comments containing all of them, empty if none do. Alternatively set match_all_words=true to keep only results whose comment body contains every query word, at the cost of dropping comments that use a synonym, abbreviation or a different word form for one of the terms. Each comment carries its post id, title and URL; get the whole thread with reddit/posts/comments.

Parameters

Request body

Response

Errors

Response headers