Reddit
Search Reddit subreddit
Search posts within one subreddit (not site-wide — use reddit.search.list for that).
get/v1/reddit/subreddits/search
Request
- Base URL: https://api.socialfetch.dev
- URL: https://api.socialfetch.dev/v1/reddit/subreddits/search
- Auth: one of:
- API key in header x-api-key
- none
Query parameters
subredditstring required
Subreddit name, optional r/ prefix, or Reddit subreddit URL. Must match Reddit's exact casing. Searches posts within this subreddit.
querystring
Search text to match against public subreddit posts.
sort'relevance' | 'hot' | 'top' | 'new' | 'comments'
Sort order for search results. Default: relevance.
timeframe'all' | 'year' | 'month' | 'week' | 'day' | 'hour'
Time range filter for search results. Default: all.
cursorstring
Opaque pagination cursor returned by a previous response.
Response
Search results for the requested subreddit.
Changes
No recorded changes to this operation across all 1 revision of this API.