xml - Reddit search api - searching by subbreddit -
i've been following reddit api documentation think i'm doing wrong. when try searching 1 particular subreddit query, brings results all subreddits.
in example want return posts in /r/volvo relating wagons, query returns corresponding posts numerous subbreddits.
http://www.reddit.com/r/volvo/search.xml?q=wagon
so missing glaringly obvious? (i guess am!)
thanks in advance.
the default behavior returns results subreddits.
to restrict results subreddit, multireddit, or domain-listing in url, use restrict_sr
query parameter, so:
http://www.reddit.com/r/volvo/search.xml?q=wagon&restrict_sr=on
Comments
Post a Comment