My question is similar to: Getting questions that have a specific tag or tags?
What I am trying to do is get a list of Featured questions within a list of tags. I have tried using the following:
Note link to doc: http://api.stackexchange.com/docs/featured-questions
But when I add more then one tag it appears to be using and instead of or. I was unable to find an or
operator as ;
appears to be and.
Example 1: Right now because there is a featured question tagged with google-analytics this will return correctly:
https://api.stackexchange.com/2.2/questions/featured?order=desc&sort=activity&tagged=google-analytics&site=stackoverflow
Example 2: But I would also like to see any featured questions within the oauth2 tag. This currently returns nothing because I am using both the Google-Analytics
tag and the oauth2
tag:
https://api.stackexchange.com/2.2/questions/featured?order=desc&sort=activity&tagged=google-analytics;oauth2&site=stackoverflow
The /search
path says:
tagged
andnottagged
are semi-colon delimited list of tags. At least 1 tag in tagged will be on each returned question if it is passed, making it the OR equivalent of the AND version of tagged on /questions.
If I understand that correctly, /search
uses ; for or
logic, but unfortunately doesn't let me search only on featured questions.