Google图片搜索称api不再可用 [英] Google image search says api no longer available

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

问题描述

我使用的是Google图片搜索API。直到昨天它正在工作,但今天早上它说这个API不再可用。

它是正式关闭还是任何错误在我身边



请求

https://ajax.googleapis.com/ajax/services/search/images?v=1.0&rsz=8&q =可爱+小猫



回应

  {responseData:null,responseDetails:此API不再可用。,responseStatus:403} 


解决方案

这是要使用的完整网址模板

我们可以消除不必要的参数。



https://www.googleapis.com/customsearch/v1?q= 的{searchTerms}试验#= {计数?}&安培;开始= {的startIndex?}&安培; LR = {语言?}&安培;安全= {安全吗?} &安培; CX = {CX 3}&安培; CREF = {?CREF}&安培;排序= {排序?}&安培;过滤器= {滤波器?}&安培; GL = {GL?}&安培; CR = {CR?}&安培; googlehost = {googleHost?}&安培; c2coff = {disableCnTwTranslation?}&安培; HQ = {HQ?}&安培; HL = {HL?}&安培;网站搜索功能= {网站搜索功能?}&安培; siteSearchFilter = {?siteSearchFilter}&安培; exactTerms = {exactTerms?}&安培; excludeTerms = {excludeTerms?}&安培; linkSite = {linkSite?}&安培; orTerms = {?orTerms}&安培; relatedSite = {relatedSite?}&安培; dateRestrict = {dateRestrict?}&安培; lowRange = {lowRange ?}&安培;高变速= {高变速}&安培;检索类别= {检索类别}&安培;的fileType = {的fileType}&安培;权利= {权利}&安培; imgSize = {imgSize}&安培;?imgType = {imgType}&安培; imgColorType = {imgColorType?}& imgDominantColor = {imgDominantColor?}& alt = json


$ b 我正在使用



https://www.googleapis.com/customsearch/v1?key=ap_key&cx=cx& q = hello& searchType = image& imgSize = xlarge& alt = json& num = 10& start = 1

I am using google image search API. Till yesterday it was working, but today morning it says "This API is no longer available"

Is it officially closed, Or any error at my side

Request

https://ajax.googleapis.com/ajax/services/search/images?v=1.0&rsz=8&q=cute+kittens

Response

{"responseData": null, "responseDetails": "This API is no longer available.", "responseStatus": 403}

解决方案

This is the full URL template to be used

We can eliminate unnecessary parameters.

https://www.googleapis.com/customsearch/v1?q={searchTerms}&num={count?}&start={startIndex?}&lr={language?}&safe={safe?}&cx={cx?}&cref={cref?}&sort={sort?}&filter={filter?}&gl={gl?}&cr={cr?}&googlehost={googleHost?}&c2coff={disableCnTwTranslation?}&hq={hq?}&hl={hl?}&siteSearch={siteSearch?}&siteSearchFilter={siteSearchFilter?}&exactTerms={exactTerms?}&excludeTerms={excludeTerms?}&linkSite={linkSite?}&orTerms={orTerms?}&relatedSite={relatedSite?}&dateRestrict={dateRestrict?}&lowRange={lowRange?}&highRange={highRange?}&searchType={searchType}&fileType={fileType?}&rights={rights?}&imgSize={imgSize?}&imgType={imgType?}&imgColorType={imgColorType?}&imgDominantColor={imgDominantColor?}&alt=json

I am using

https://www.googleapis.com/customsearch/v1?key=ap_key&cx=cx&q=hello&searchType=image&imgSize=xlarge&alt=json&num=10&start=1

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

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