Google 搜索自动完成 API?

编程入门 行业动态 更新时间:2024-10-25 12:22:38
本文介绍了Google 搜索自动完成 API?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

Google 是否提供 API 访问以自动完成搜索,就像在实际网站上一样?我找不到任何东西.

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

我想在我自己的网站上使用 Google 的自动完成逻辑进行网络搜索,该网站依赖于 Google 的搜索 API.

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

推荐答案

新的网址是:

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

客户端部分是必需的;我没有测试其他客户端.

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

如果你想要回调使用这个:

If you want the callback use this:

suggestqueries.google/complete/search?client=chrome&q=YOURQUERY&callback=callback

正如@Quandary 发现的那样;回调不适用于客户端firefox".

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

正如@ user2067021 所指出的,这个 api 将在 10-08-2015 停止工作:自动完成 API 的更新

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

更多推荐

Google 搜索自动完成 API?

本文发布于:2023-11-30 00:35:42,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1648135.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:自动完成   Google   API

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!