Google图片搜索API [英] Google image search API

查看:159
本文介绍了Google图片搜索API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网站,用户可以在该网站上提交图片.我想用这些图像自动搜索Google,以最大程度地减少这些图片从其他网站被盗的可能性.我知道Firefox扩展,但是这需要我右键单击每张图片,然后等待结果显示.我想使它自动化.

我一直在寻找API,但是Google Image Seach API(https://developers.google.com/image-search/)明确提到它已被弃用. 我还找到了Google自定义搜索API,但这似乎是为那些想要搜索自己的网站(这不是我正在寻找的网站)的用户构建的.

我想做Firefox扩展的工作,即,将图像提交给Google Image Search,然后用PHP检索结果页面.

使用API​​的最佳方式,但是如果无法使用:如何将图片上传/编码到Google,以便可以对其进行搜索?有人知道吗?

解决方案

更新: 不推荐使用以下API.

Google Image Search API已于2011年5月26日正式弃用.根据我们的弃用政策,它将继续有效,但是您每天可能发出的请求数量可能会受到限制.我们建议您使用自定义搜索API,该API现在支持图像搜索. https://developers.google.com/image-search/v1/jsondevguide

您可以通过以下网址获取所有详细信息

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

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

使用Google帐户登录.填写详细信息,即可获得API.

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?

解决方案

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.

这篇关于Google图片搜索API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆