how to search for a post within a subreddit code example
Example: how to search in subreddit
Example :
https://www.reddit.com/r/SUBREDDIT/search/?q=test%20query&source=recent&restrict_sr=1
Relevant URL GET Params
q = query
restrict_sr = whether restrict to subreddit