POST /v1/data/reddit/comments/run
Pricing: $0.005 per result ($5.00 per 1,000).
Ways to call it
- Post URL: set
inputs - Comment search: set
subreddit,keyword(optional:maxResults)
Request
Send the inputs underparams. Only the keys below are accepted; any other key returns 422 invalid_params.
Reddit post URL to fetch comments from (e.g. https://www.reddit.com/r/technology/comments/1ub7r1y/…).Format e.g.
https://www.reddit.com/r/technology/comments/1ub7r1y/morale_is_so_bad_at_mark_zuckerbergs_meta_even/.Communities to search inside: a name (technology), r/name or the full URL. Reddit has no global comment index, so at least one is required.
Text that must actually appear in the comment. Unlike the post search, every row returned genuinely contains it.
Example
Response fields
Each row indata is one result, keyed by these fields.
Example response
Abridged: long text and lists are shortened.Related APIs
For the posts usereddit/posts.