9

I am working on an application which will have an option for users to upload images. Once uploaded, the application will show other images from the web which look exactly similar, whether or not of the same size.

For this, I will create a temporary URL for the image so that I could provide Google custom search API the URL of the image. I would expect in response, URL's of images that are exactly the same or similar to it, perhaps in JSON format.

I did find a similar question posted in January. Till then Google did not support anything like this, apparently:

Google Javascript Custom Search API: Search images by image url

One can also simply do:

http://images.google.com/searchbyimage?site=search&image_url={Image URL}

Since that is not part of an official API, it may not be right to use this method.

Can someone help me?

Community
  • 1
  • 1
Naveed Hasan
  • 641
  • 7
  • 19

2 Answers2

4

Well, the answer quite simply is TinEye Commercial API https://api.tineye.com/welcome. I was looking in the wrong place I guess, I did not have any luck with Google Custom Search API.

Naveed Hasan
  • 641
  • 7
  • 19
  • That's a shame. I looked into TinEye and it didn't give as many and more related image search results as Google's search by image. But unfortunately I still don't see a way to pass an image URL parameter to their Custom Search API. Did you get any leads on that? – ahmed.eltawil Jan 30 '14 at 16:03
  • No, there does not seem to be any way of doing that, currently. – Naveed Hasan Jan 31 '14 at 13:45
  • OK thanks. I guess I will use the direct URL (http://images.google.com/searchbyimage?site=search&image_url={Image URL}) for now. – ahmed.eltawil Jan 31 '14 at 14:35
  • I think it's not strictly legal if you are making automated calls to this URL. But I'm no expert. Use your best judgement :) – Naveed Hasan Jan 31 '14 at 14:42
  • Perhaps it's okay if you do not intend to scrape the data on the resulting page... that is, if you just intend to show it as it is, then it should be ok – Naveed Hasan Jan 31 '14 at 14:45
  • That's precisely what I will be doing; I will simply format a hyperlink on a webpage that opens up a new tab for the user to go directly to the Google results...until I can grab that type of information from their API :) – ahmed.eltawil Jan 31 '14 at 14:56
  • Is there a solution for this right now? . i need to do a reverse image search using google custom search API . – 32teeths Feb 06 '16 at 17:41
  • Working link to TinEye API https://services.tineye.com/TinEyeAPI – Kate Kasinskaya Jan 17 '20 at 15:39
0

Would you need a simple result?
If you are, you can use Vision API of Google.
This is very simple.

https://cloud.google.com/vision/


You can try on the top.

First, access the URL.
Second, upload your image file on the "Try API"
Third, click "JSON" tab menu on the result.

You can be seen JSON about similar images.