Skip to main content
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 under params. Only the keys below are accepted; any other key returns 422 invalid_params.
string
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/.
integer
Number of comments to return. Use 0 for all.
boolean
default:"true"
Fetch the comment tree for each post. On by default for this agent.
string[]
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.
string
Text that must actually appear in the comment. Unlike the post search, every row returned genuinely contains it.

Example

Response fields

Each row in data is one result, keyed by these fields.

Example response

Abridged: long text and lists are shortened.
For the posts use reddit/posts.