Take the 2-minute tour ×
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

This is the query I want to run:

/2.1/search?pagesize=100&page=1&order=desc&sort=creation&tagged=linux,ubuntu,bash,linux-mint,mint,linux-distributions,linux-distro,archlinux,&site=superuser&filter=.Ericv1w97*YhCWfY.uMVBr(o

Is it possible to search for more than 5 tags?

I would use /questions, but since it treats tags as AND instead of OR, I don't have any other option. Or do I ?

share|improve this question
    
I don't believe it is possible to search for more than 5 tags. That is how the SE team designed their website. I can't really think of a case where you would need to search for more than that –  Cody Guldner May 27 '13 at 17:29
    
@CodyGuldner, did you try the link provided in my answer? It shows, quite clearly, a successful search for more than 5 tags. –  Brock Adams May 31 '13 at 14:45
add comment

1 Answer

up vote 0 down vote accepted

The search path already allows more than 5 tags, and it uses OR logic. From the docs:

tagged and nottagged 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.

(bold added)

Note that tags are separated with a semicolon, not a comma. So, you would use:

/2.1/search?pagesize=100&page=1&order=desc&sort=creation&tagged=linux;ubuntu;bash;linux-mint;mint;linux-distributions;linux-distro;archlinux&site=superuser&filter=.Ericv1w97*YhCWfY.uMVBr(o


which works fine (try it).

share|improve this answer
add comment

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .