Search code examples
imagesearchbingbing-api

Image search with multiple filters


I'm using Bing API to search for images by going the following call:

http://api.bing.net/json.aspx?AppId=[my key]&sources=image&version=2.2&query=[search term]&image.count=4&adult=strict&Image.Filters=Style:Photo&Image.Filters=Face:Face

This is working great and returns photos with faces (thanks to parameter &Image.Filters=Face:Face) matching the searched term. What I would like is to also get the portraits (head and shoulders) which can be done with the parameter:

&Image.Filters=Face:Portrait

Unfortunately the two parameters combined cancel each other.

Does anyone know how to do a OR? i.e. list all photos which are either face or portrait?


Solution

  • It seems like you currently need to do two different searches to do an OR search. A little annoying, but works well.