Google CustomSearch ignores imgType?
Asked Answered
C

1

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?

Cauterize answered 2/1, 2017 at 0:32 Comment(3)
Unfortunately this seems to be a bug to me. Similar question here with no answer. Also a thread here about the same problem with no solution or workarounds. I couldn't find a ticket or reply from Google.Abnegate
Do you have image search turned on in the CSE settings? (sanity check since no answer yet) support.google.com/customsearch/answer/2630972?hl=enLorenlorena
@Lorenlorena Yes.Cauterize
C
0

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

Cauterize answered 30/6, 2017 at 18:13 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.