谷歌搜索自动完成API? [英] Google Search autocomplete API?

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

问题描述

谷歌是否提供API访问自动完成像实际的网站搜索?我一直没能找到任何东西。

Does Google provide API access to autocomplete for search like on the actual site? I have not been able to find anything.

我想使用谷歌的网络搜索自动完成逻辑上我自己的网站依赖于谷歌的搜索API。

I would like to use Google's autocomplete logic for web search on my own site which relies on Google's search API.

推荐答案

新的URL是:

http://suggestqueries.google.com/complete/search?client=firefox&q=YOURQUERY

客户端部分是必需的;余did't测试其他客户端。

the client part is required; I did't test other clients.

如果您想回调使用:

<一个href=\"http://suggestqueries.google.com/complete/search?client=chrome&q=YOURQUERY&callback=callback\" rel=\"nofollow\">http://suggestqueries.google.com/complete/search?client=chrome&q=YOURQUERY&callback=callback

由于@Quandary发现;回调不与客户火狐的工作。

As @Quandary found out; the callback does not work with client "firefox".

正如@指出user2067021这个API将停止工作,为2015年10月8日:的在自动完成API 更新

As indicated by @ user2067021 this api will stop working as of 10-08-2015: Update on the Autocomplete API

这篇关于谷歌搜索自动完成API?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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