2017-06-05 72 views
0

我想在我的web应用程序中的用户输入关键字和网址到谷歌上的第一个图像的功能返回。我尝试使用谷歌图片搜索API,但它给了我这个错误在控制台:Google图片搜索API不起作用。我应该用什么来代替?

jsapi:22 A Parser-blocking, cross site (i.e. different eTLD+1) script, https://www.google.com/uds/api/search/1.0/890e228675e68570fa203500d9572ad4/default+en.I.js, is invoked via document.write. 
The network request for this script MAY be blocked by the browser in this or a future page load due to poor network connectivity. 
If blocked in this page load, it will be confirmed in a subsequent console message.See https://www.chromestatus.com/feature/5718547946799104 for more details. 

经进一步检查,它出现在谷歌搜索API已节录:

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. 

是否有可以返回基于关键字的图片网址的功能性API?

回答

相关问题