Search within a subreddit for posts, comments, or media matching a query
Subreddit name (e.g. 'Fitness', not 'r/Fitness' or a full URL)
"Fitness"
Search query to find matching content
"push ups"
Type of content to search for (default: posts). Response will only include the matching key
posts, comments, media "posts"
Sort order. For posts/media: relevance, hot, top, new, comments. For comments: relevance, top, new
relevance, hot, top, new, comments "relevance"
Timeframe to filter results
all, year, month, week, day, hour "all"
Cursor for pagination. Get 'cursor' from previous response
Successful response with search results
Posts matching the search query (when filter=posts or no filter)
Comments matching the search query (when filter=comments)
Media posts matching the search query (when filter=media)
Cursor for pagination. Use this in the next request to get more results
"eyJjYW5kaWRhdGVzX3JldHVybmVkIjoie1wic2VjdGlvbl8xX3BpcGVsaW5lXzBfZ2xvYmFsX21vZGlmaWVyc1wiOlwiM1wiLFwic2VjdGlvbl8xX3BpcGVsaW5lXzFfbG9jYWxfbW9kaWZpZXJzXCI6XCIzXCJ9\""