Skip to main content

Reddit Scraper

Scrape Reddit posts, comments, and communities by URL or search query with sorting and time filters. 1 credit/row

Parameters

ParameterTypeRequiredDescription
startUrlsarrayNoArray of Reddit URLs (subreddit, post, or user profile)
searchesarrayNoArray of search queries. E.g., ["best mechanical keyboards"]
maxItemsintegerYesMaximum total items to return. Default: 50
maxPostCountintegerYesMaximum number of posts. Default: 50
maxCommentsintegerYesMaximum comments per post. Default: 10
skipCommentsbooleanNoSkip comment extraction entirely. Default: false
sortstringNoSort order: top, new, or hot
timestringNoTime filter (used with top sort): hour, day, week, month, year, or all

Example

curl -X POST https://api.mindcase.co/api/v1/agents/reddit/scraper/run \
  -H "Authorization: Bearer mk_live_abc123def456" \
  -H "Content-Type: application/json" \
  -d '{
    "params": {
      "searches": ["best mechanical keyboards"],
      "maxItems": 50,
      "maxPostCount": 50,
      "maxComments": 10,
      "sort": "top",
      "time": "month"
    }
  }'