Forum Discussion

jasim's avatar
jasim
Helper
12 years ago
Solved

Can we get all posts containing multiple tags using Search API

Hello,  We are trying to use the /search/messages API to get the posts based on tags.  We want to get all posts which contain tags "<tag1>" or "<tag2>".  Is there any way we can pass more than o...
  • PaoloT's avatar
    12 years ago

    Hi Jasim,

     

    what you can do is something on the lines of the below, by passing an OR expression to the query parameter

     

    /search/messages?q=labels:(Tag1%20OR%20Tag2)

     

     

    Does that solve your problem?

     

    Cheers,