I am trying to search for an image by a phrase and it works, but I need to search for images by url. I need to find the same image, but with a larger size.
<html> <head> <title>JSON/Atom Custom Search API Example</title> </head> <body> <div id="content"></div> <script> function hndlr(response) { console.log(response); } </script> <script src="https://www.googleapis.com/customsearch/v1?key={your_developer_key_here}&cx={your_engine_id_here}&q=http://i.ytimg.com/vi/gonBdNO7VbY/hqdefault.jpg&callback=hndlr&imgSize=large&searchType=image"> </script> </body> </html>
Sorry, I canβt provide the dev key because it has 100 requests per day.
Below is a test form: https://developers.google.com/custom-search/v1/cse/list?hl=en
I tried to see which parameter is passed through the Google image search form.
This is image_url = http://i.ytimg.com/vi/gonBdNO7VbY/hqdefault.jpg, but adding that the api request does not produce any results.
Can this be done?
javascript api
Somebody
source share