Search Images in Google and get JSON response -


i trying search google images keywords used following

https://www.googleapis.com/customsearch/v1?searchtype=image&key=my_custom_search_key&cx=my_custom_search_engine_key&q=love

but got following json

{      "kind": "customsearch#search",     "url": {          "type": "application/json",         "template": "https://www.googleapis.com/customsearch/v1?q={searchterms}&num={count?}&start={startindex?}&lr={language?}&safe={safe?}&cx={cx?}&cref={cref?}&sort={sort?}&filter={filter?}&gl={gl?}&cr={cr?}&googlehost={googlehost?}&c2coff={disablecntwtranslation?}&hq={hq?}&hl={hl?}&sitesearch={sitesearch?}&sitesearchfilter={sitesearchfilter?}&exactterms={exactterms?}&excludeterms={excludeterms?}&linksite={linksite?}&orterms={orterms?}&relatedsite={relatedsite?}&daterestrict={daterestrict?}&lowrange={lowrange?}&highrange={highrange?}&searchtype={searchtype}&filetype={filetype?}&rights={rights?}&imgsize={imgsize?}&imgtype={imgtype?}&imgcolortype={imgcolortype?}&imgdominantcolor={imgdominantcolor?}&alt=json"      },     "queries": {          "request": [              {                 "title": "google custom search - love",                 "totalresults": "0",                 "searchterms": "love",                 "count": ​10,                 "inputencoding": "utf8",                 "outputencoding": "utf8",                 "safe": "off",                 "cx": "my_custom_search_engine_key",                 "searchtype": "image"             }         ]      },     "searchinformation": {         "searchtime": ​0.054318,         "formattedsearchtime": "0.05",         "totalresults": "0",         "formattedtotalresults": "0"     }  } 

which not give me search result of images, need image's urls , description in json?

i found love query key , cx. earlier have similar problem, , problem https://cse.google.com/cse/setup/basic?cx={your_cx}
set "image search" on. click "update" save changes.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -