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 Posts

AI-generated

Summary

Fetches posts from a Reddit subreddit feed, with optional sorting, pagination, and 24-hour response caching.

Inputs

  • URL (required) — Subreddit URL, r/name, or bare subreddit name.
  • Limit — Maximum number of items to return; defaults to 25 and has a maximum of 200.
  • Sort — Feed sort: best, hot, new, top, or rising; defaults to new.
  • Timeframe — For top sort, select hour, day, week, month, year, or all; defaults to day.
  • Cursor — Pagination cursor. Leave empty for the first page; pass the prior response's nextCursor to fetch the next page.
  • Cache — Set true to use the 24-hour response cache; cache hits cost 0 credits. Defaults to false, which fetches fresh data.

Output shape

A response envelope containing subreddit posts and pagination information.

The response may include nextCursor for pagination. Cache hits include cached and cachedAt fields. The operation is described as costing 2 credits per call.

Examples

Example 1: Fetch first 10 posts from r/technology sorted by top this week

URL=r/technology, Sort=top, Timeframe=week, Limit=10, Cache=true (optional)

Example 2: Paginate through a large subreddit feed

URL=r/programming, Limit=50, Cursor=

Links

Discussion