Search posts within one subreddit (not site-wide — use reddit.search.list for that).
Endpoint
/v1/reddit/subreddits/search
Query
Subreddit name, optional `r/` prefix, or Reddit subreddit URL. Must match Reddit's exact casing. Searches posts within this subreddit.
Search text to match against public subreddit posts.
Sort order for search results. Default: `relevance`.
Time range filter for search results. Default: `all`.
Opaque pagination cursor returned by a previous response.
const response = await fetch( "https://api.socialfetch.dev/v1/reddit/subreddits/search?subreddit=Fitness", { headers: { "x-api-key": "YOUR_API_KEY" } } ); const data = await response.json(); console.log(data);