【问题标题】:How to obtain Bing search Api and AppID for a website [closed]如何获取网站的必应搜索 API 和 AppID [关闭]
【发布时间】:2012-08-02 05:04:21
【问题描述】:

我已经创建了我想在其中使用 bing 搜索 API 的网站。为此它需要 AppID 但我没有得到 AppID。我尝试通过创建 windows live ID 在(天蓝色市场)上创建 AppId。我创建了客户端 ID 并注册了应用程序。谁能建议我如何获取必应搜索 API 的 AppID?

【问题讨论】:

  • 请联系 AppID (Microsoft) 的供应商以获得他们的服务支持。

标签: php bing-api app-id


【解决方案1】:

要使用新的Bing Search API,您需要使用您的帐户密钥进行身份验证。 AppID 是旧的身份验证方法,即将被弃用Bing Search API 2.0。您可以在 account information 页面上找到您的帐户密钥。

您可以在this question 中查看实现当前 Bing 搜索 API 的示例。

【讨论】:

  • 我试过这段代码,但如果你有解决方案,我会收到以下错误,请回复我api.datamarket.azure.com/Bing/Search/… 警告:file_get_contents(api.datamarket.azure.com/Bing/Search/…) [function.file-get-contents]: failed to open流:第 46 行 /home/rahulr/public_html/searchere/mig.php 中的连接被拒绝警告:第 52 行 /home/rahulr/public_html/searchere/mig.php 中的 foreach() 提供的参数无效
  • 如果您通过我发布的链接注册,则它仅用于网络搜索。如果您想搜索图片,请确保您已注册此服务:datamarket.azure.com/dataset/bing/search