Captapi

Structured social media data from 32 platforms (YouTube, TikTok, Instagram, Facebook, X, Reddit, Threads, Bluesky, Pinterest, LinkedIn, Rumble, Truth Social, Kick, Kwai, Komi, Pillar, Linkbio, Linkme, Amazon Shop) — transcripts, AI summaries, comments, stats, search and downloads.

Actions171

Reddit → Reddit Subreddit Post Search

AI-generated

Summary

Searches a subreddit for posts matching a query, with optional sorting, time filters, pagination, result limits, and response caching.

Inputs

  • URL (required) — Subreddit URL, r/name, or bare subreddit name. The URL must match the endpoint's platform.
  • Query (required) — Search keywords or query; at least 2 characters.
  • Sort — Sort order: relevance (default), new, top, hot, comments, or its alias comment_count.
  • Timeframe — For top or comments sorting, choose hour, day, week, month, year, or all (default).
  • Limit — Maximum results to return; defaults to 25 and is capped at 200. Each call costs 2 credits.
  • Cursor — Pagination cursor. Leave empty for the first page, then use the prior response's nextCursor value.
  • Cache — Set true to use the 24-hour response cache; cache hits cost 0 credits. Defaults to false, which fetches fresh results.

Output shape

A response envelope containing the matching posts and pagination information.

A cache hit also includes cached and cachedAt fields. The operation description identifies nextCursor as the pagination value to pass for the next page.

Links

Discussion