11

It would seem that using the google CSE api always ignores my imgType attribute, even through their official API test page.

My request is:

{
    "q": "Maimi Yajima",
    "cx": "014585077406021600032:tu4nwhtmr5q",
    "searchType": "image",
    "imgType": "clipart"
}

But even when changing the imgType i'm always getting back the same results.

Where am I wrong?

iTayb
  • 12,373
  • 24
  • 81
  • 135
  • 2
    Unfortunately this seems to be a bug to me. Similar question [here](http://stackoverflow.com/questions/31167614/google-custom-search-imgsize-and-imgtype-not-taken-into-account) with no answer. Also a thread [here](https://productforums.google.com/forum/#!topic/customsearch/5CoHO1tQl0c) about the same problem with no solution or workarounds. I couldn't find a ticket or reply from Google. – Steeve Jan 09 '17 at 17:09
  • Do you have image search turned on in the CSE settings? (sanity check since no answer yet) https://support.google.com/customsearch/answer/2630972?hl=en – Emptyless Jan 11 '17 at 00:13
  • @Emptyless Yes. – iTayb Jan 11 '17 at 16:54

1 Answers1

0

Though not confirmed by Google, this is most possibly a bug, or Google intentionally broke the imgType parameter without updating their documentation.

iTayb
  • 12,373
  • 24
  • 81
  • 135