Google Javascript Custom Search API: Image Search by Image URL

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?

+4
javascript api
source share

No one has answered this question yet.

See similar questions:

25
When you find an Android application, find the API URL
7
Google Search API Search Image by Image URL

or similar:

2853
Get current url using javascript?
2366
Encode URL in JavaScript?
1895
Open the url in a new tab (not in a new window) using JavaScript
778
Is there a link to the "latest" jQuery library in the Google API?
658
How to make browser navigate URL in JavaScript
4
Google Custom Search imgSize and imgType not counted
3
Google Custom Search API defines image size
2
display first image from google image to search for places
0
Search Image Google url
0
Search google api images not working

All Articles