Reddit

search_posts

Search Reddit posts by subreddit and/or author, or fetch specific posts by id. Optional q= applies an exact-phrase (plural-flex) filter, but ONLY over the single page this call fetches (limit, default 25, max 100) — it is not a search across the whole after/before window. A page with zero q= matches does NOT mean no matches exist in your date range: check has_more/cursor in the response and keep calling with the returned cursor as your next after (sort=asc) or before (sort=desc) until has_more is false or you have enough. For an active subreddit, one page can span just minutes to hours, so scanning several days for a specific phrase often takes many calls. Each page costs 1 credit whether it matched or not — narrow subreddit/author/date range first if you want to control cost. If ids= includes even one invalid/malformed id, the whole call returns an 'invalid request' error (refunded, not charged) rather than silently skipping the bad id or claiming a transient outage — verify ids came from a real search result first. 1 credit per call.

Remote threadsnoop/reddit

Remote (network-hosted)

Other tools also called search_posts? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "q": {
      "type": "string",
      "minLength": 1,
      "description": "Exact-phrase filter applied only to this page's results — see the tool description for why it does not search across the whole date range."
    },
    "ids": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "maxItems": 100,
      "description": "Fetch specific posts by id instead of searching — batch lookup, up to 100 ids."
    },
    "sort": {
      "enum": [
        "asc",
        "desc"
      ],
      "type": "string",
      "description": "Sort order: \"asc\" (oldest first) or \"desc\" (newest first)."
    },
    "after": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        }
      ],
      "description": "Cursor to page forward from — pass back the cursor a previous call returned."
    },
    "limit": {
      "type": "integer",
      "default": 25,
      "maximum": 100,
      "minimum": 1,
      "description": "Max results per page, 1-100."
    },
    "author": {
      "type": "string",
      "minLength": 1,
      "description": "Reddit username to filter by, without the u/ prefix."
    },
    "before": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        }
      ],
      "description": "Cursor to page backward from."
    },
    "subreddit": {
      "type": "string",
      "minLength": 1,
      "description": "Subreddit to search, without the r/ prefix, e.g. \"SaaS\"."
    }
  }
}
          

Provider

Reddit →