title: Multiple fileType for Google Custom Search API during image searching
body: <p>Currently, I'm using Google Custom Search API, to perform image searching using REST</p>
  
  <p><a href="https://developers.google.com/custom-search/json-api/v1/reference/cse/list#request" rel="nofollow noreferrer">https://developers.google.com/custom-search/json-api/v1/reference/cse/list#request</a></p>
  
  <p>I was wondering, what is the correct way, to specific multiple file type?</p>
  
  <p><code>fileType</code> is being mentioned briefly in the API document.</p>
  
  <p>For instance, the following is the GET request, to search only <code>BMP</code> type image.</p>
  
  <pre><code>https://www.googleapis.com/customsearch/v1?key=GOOGLE_API_KEY&amp;cx=GOOGLE_SEARCH_ENGINE_ID&amp;q=picasso&amp;searchType=image&amp;fileType=bmp
  </code></pre>
  
  <p>However, what if I want to search both PNG and BMP image?</p>
  
  <p>At first, I thought </p>
  
  <pre><code>fileType=png,bmp
  </code></pre>
  
  <p>might work as mentioned in <a href="http://codigogenerativo.com/code/google-custom-search-api/" rel="nofollow noreferrer">http://codigogenerativo.com/code/google-custom-search-api/</a></p>
  
  <p>However, if I test using</p>
  
  <pre><code>https://www.googleapis.com/customsearch/v1?key=GOOGLE_API_KEY&amp;cx=GOOGLE_SEARCH_ENGINE_ID&amp;q=picasso&amp;searchType=image&amp;fileType=png,bmp
  </code></pre>
  
  <p><code>JPEG</code> images are being returned.</p>
  
  <p>Seem like my assumption is wrong. Does anyone know how to have multiple fileType for Google Custom Search API during image searching?</p>
  
  <p>p/s Similar question had been raised before few years ago but no concrete answer yet : <a href="https://stackoverflow.com/questions/18901738/multiple-file-types-search-using-google-custom-search-api">Multiple file types search using Google Custom Search API</a></p>