2017-06-05 53 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?

回答

相關問題