API find models by multiple tags


(Neshmi) #1

Greetings all,

So, I would like to be able to query the API using multiple tags to find any model tagged with any of those tags. So, in our case, to find both models tagged with Rekrei and models tagged with ProjectMosul, but that those would be unique results, of course. I can't find a way to pass multiple tags through the JSON api, I've tried doing the usual: tags=rekrei,projectmosul or tags=[rekrei,projectmosul] but no love.

Is that implemented in the API, and if not, any chance it might be? :smile:

Thanks!!


#2

You can search for both tags (rekrei AND projectmosul) like this:
https://api.sketchfab.com/v2/models?tags=rekrei&tags=projectmosul

But I don't think it's possible to search for rekrei OR projectmosul. You'll need to make two queries.