Google 建议 API 的文档在哪里?

有关于 Google 建议 API 的官方文档吗?

所有我搜索的 Google 建议 API 显示页面或者过时的信息或者非工作脚本。

例如,在 Google.com,只要你输入“ app”,Google 就会建议你输入 Apple,Applebee 等等。

77897 次浏览

尝试使用 http://google.com/complete/search?output=json&q=YOURSEARCHEDTERM或 XML 输出 http://google.com/complete/search?output=toolbar&q=YOURSEARCHEDTERM

Http://answers.oreilly.com/topic/1526-how-to-use-the-google-suggest-api-to-come-up-with-topics-for-answers/

我还发现非常有趣的工具,它使用谷歌搜索 API,它是基于 Python 和 Flask 建议Keytips 的谷歌字母汤方法工具

嗨,我是作者的 过度建议的工具提到了 JonnyPea。没有 正式的谷歌建议 API: 我和其他人使用的 URL 只是我们在谷歌周围发现的黑客行为。这里有一些建议:

  • 看看我在 Bitbucket 上的应用程序源代码(注意: 我是一个业余程序员,所以我的代码冷被改进 很多)
  • 不要从同一个 IP 调用 API 数千次,否则将被禁用。

[更新]

对不起,源代码不再可用

正如@Harvest316所说,您可以使用这些网址来获得建议,但是如果您希望获得针对具体国家的建议,则需要在网址中添加 & gl = 。例如,如果我搜索印度,它将是

Http://suggestqueries.google.com/complete/search?output=toolbar&hl=en&q=yoursearchterm&gl=in

有一个可以工作的 API ,可以从 Google 建议(以及 YouTube、 Bing 和 App Store)中获取数据: http://keywordtool.io/api

使用这个 API,你不需要担心来自同一个 IP 的请求数量等等。

谷歌没有一个官方的 API 来共享自动完成数据,此外,它经常隐藏出现在谷歌的关键字,从谷歌关键字计划建议。

注意这个 API 是通过付费订阅和 每月280元起

工作范例摘要:

来自 这个问题的工作实例:

Http://suggestqueries.google.com/complete/search?output=toolbar&hl=en&q=theory



来自 这个问题的工作实例:

Http://suggestqueries.google.com/complete/search?output=firefox&q=theory




来自 Mhawksey的评论以上工作示例:

Http://google.com/complete/search?client=chrome&q=theory

这里 client=chrome可以改变为其他浏览器客户端,例如 Firefox,它看起来像:

Http://google.com/complete/search?client=firefox&q=theory




来自 Mahoor13的评论以上工作示例:

Google.com/complete/search?output=toolbar&q=theory




Dhiraj-Pandey 回答“如果你想国家特定的建议,你需要添加 & gl = 在网址”。< strong > 这只适用于工具栏的链接!

因此,举例来说,印度工作国家的具体例子是:

Google.com/complete/search?output=toolbar&q=theory&gl=in




使用 %20+分隔单词。例如:

Http://suggestqueries.google.com/complete/search?output=toolbar&hl=en&q=a%20mykeyword

或者

Http://suggestqueries.google.com/complete/search?output=toolbar&hl=en&q=a+mykeyword




也可以从 给你得到 YQL 的两个建议(第一个建议 chuck norris,第二个 steven seagal) :

select * from xml where url in (
‘http://google.com/complete/search?output=toolbar&q=chuck+norris’,
‘http://google.com/complete/search?output=toolbar&q=steven+seagal’
)

使用以上代码给出:

Http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20xml%20where%20url%20in%20%28%27http%3a%2f%2fgoogle.com%2fcomplete%2fsearch%3foutput%3dtoolbar%26q%3dchuck%2bnorris%27%2c%27http%3a%2f%2fgoogle.com%2fcomplete%2fsearch%3foutput%3dtoolbar%26q%3dsteven%2bseagal%27%29&format=xml&diagnostics=false




一些来自谷歌的关于建议的信息: “一个 href =”http://www.google.com/support/enterprise/static/gsa/docs/admin/70/gsa _ doc _ set/xml _ reference/query _  rel = “ norefrer”> http://www.google.com/support/enterprise/static/gsa/docs/admin/70/gsa_doc_set/xml_reference/query_suggestion.html