获取搜索常见问题的API

问题描述 投票:0回答:2

我正在尝试查找是否可以在 Google Cloud Platform 的 API 或其他搜索引擎 API 中获得搜索的“人们也问过”。

例如,当您在 Google 中进行搜索时,有一个名为“人们也问过”的部分。我尝试找到一个 API 来获取本节中的信息。我想要问题和答案。

enter image description here

我没有发现任何东西,但我很确定它存在。

你能帮我创建它吗?

api google-cloud-platform bing-api
2个回答
0
投票

您指的是常规的谷歌搜索,如https://www.google.com/search?q=Dracaena%20fragrans?这是您正在寻找的自动完成 API 吗?

如果我在该页面上打开网络监视器(谷歌浏览器有它),那么我就能够找到一些类似于您可能正在寻找的请求(参见下图)。

network monitor in chrome

话虽如此,我看到这个 API 正在被使用:

https://www.google.com/complete/search?q=Dracaena%20fragrans%20&cp=18&client=psy-ab&xssi=t&gs_ri=gws-wiz&hl=en-UA&authuser=0&psi=gpjbX9nAL5K7UNGAmMAK.1608226950136&dpr=1

但不确定在哪里寻找 API 规范。 也许在这里


0
投票

我会使用 kwrds.ai API,它有一个很棒的人们提问工具:

curl --location 'https://paa.api.kwrds.ai/people-also-ask?keyword=facet&search_country=US&search_language=en&X-API-KEY=demo-demo'

响应类似于以下内容:

{
  "results": [
    "What are facets in healthcare?",
    "Can surgery fix facet joints?",
    "What is the use of facet?",
    "Do muscle relaxers help facet joint pain?",
    "What is the new treatment for facet joint pain?",
    "What is a facet example?",
    "What are the three major facets?",
    "What kind of doctor treats facet joint pain?",
    "What do you mean by facets?",
    "What is the synonym of facet?",
    "What does facet mean in medical terms?",
    "Is a facet a disability?",
    "What are the facets of the back?",
    "What is the best position to sleep in with facet joint syndrome?",
    "What are the 6 facets?",
    "What is facet search example?",
    "What is facet damage of the spine?",
    "What are examples of facets in the body?",
    "Is a facet joint serious?",
    "Can facet joint be cured?",
    "What are all the facets in life?",
    "How do you fix a facet?",
    "Is walking good for facet pain?",
    "What is an example of a faceted?",
    "What is a facet of a person?",
    "What exercises should you avoid with facet joint pain?",
    "How painful is a facet joint?",
    "What is the best painkiller for facet joint pain?",
    "What are facets in the spine?",
    "What is a facet of a bone?",
    "How do you fix facet disease?"
  ]
}

这应该给你所有的人也从谷歌搜索引擎结果页面提出问题。他们有一个非常可靠的 API 和一个免费的入门套餐。

享受吧!

© www.soinside.com 2019 - 2024. All rights reserved.