Google image search API
Asked Answered
V

2

3

I have a website where users can submit pictures. I'd like to search Google automatically with these images to minimise the chance that the pictures are stolen from an other website. I know about the Firefox extension, but that requires me right-clicking every picture and waiting for the result to appear. I'd like to automate this.

I was looking for an API, but the Google Image Seach API (https://developers.google.com/image-search/) clearly mentions it's deprecated. I've also found a Google Custom Search API, but that seems build for those that want to search their own site (which is not what I'm looking for).

I'd like to do what the Firefox extension does, ie, submit an image to the Google Image Search, and retrieve the resulting page in PHP.

Best way with an API, but if that is not available: how is the image uploaded/encoded to Google so that it can be searched? Anybody knows more about it?

Vitale answered 12/4, 2012 at 8:14 Comment(1)
i wrote code using python to download full resolution images from google follow this https://mcmap.net/q/366501/-python-download-images-from-google-image-search i hope this helps uSiena
P
2

Update: The following API is deprecated.

The Google Image Search API has been officially deprecated as of May 26, 2011. It will continue to work as per our deprecation policy, but the number of requests you may make per day may be limited. We encourage you to use the Custom Search API, which now supports image search. https://developers.google.com/image-search/v1/jsondevguide

You get the all details at

https://developers.google.com/image-search/

https://developers.google.com/image-search/v1/

Sign in using Google Account. Fill the details and you can get the api.

Pleuro answered 16/5, 2013 at 12:13 Comment(0)
A
0

Now I found a workaround SerpAPI.

This web service enables to search through Google Images and returns a clean json. it integrates with most of the programming languages: python, php, java, golang, nodejs...

https://serpapi.com/images-results

Google limit the number of search per day. but this service provides unlimited searches...

Aldus answered 5/12, 2018 at 2:37 Comment(2)
50$ for 5k search request seems too expinsiveHanger
@Albert true, but I can't find alternatives. Have you?Legit

© 2022 - 2024 — McMap. All rights reserved.