您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

什么是必应视频搜索 API?What is the Bing Video Search API?

使用必应视频搜索 API,可以轻松地将视频搜索功能添加到服务和应用程序中。The Bing Video Search API makes it easy to add video searching capabilities to your services and applications. 使用此 API 发送用户搜索查询时,可以获取并显示与必应视频类似的相关高质量视频。By sending user search queries with the API, you can get and display relevant and high-quality videos similar to Bing Video. 将此 API 用于只包含视频的搜索结果。Use this API for search results that only contain videos. 必应 Web 搜索 API 可以返回其他类型的 Web 内容,包括网页、视频、新闻和图像。The Bing Web Search API can return other types of web content, including webpages, videos, news and images.

必应视频搜索 API 功能Bing Video Search API features

FeatureFeature 说明Description
实时建议搜索词Suggest search terms in real-time 在用户键入时通过必应自动建议 API 显示建议的搜索词改善应用体验。Improve your app experience by using the Bing Autosuggest API to display suggested search terms as they're typed.
筛选和限制视频结果Filter and restrict video results 通过编辑查询参数筛选返回的视频。Filter the videos returned by editing query parameters.
缩略图的裁剪、重设大小和显示Crop, resize, and display thumbnails 编辑和显示必应视频搜索 API 返回的视频的缩略图预览。Edit and display thumbnail previews for the videos returned by Bing Video Search API.
获取热门视频Get trending videos 从全世界搜索热门视频。Search for trending videos from around the world.
获取视频见解Get video insights 自定义一个从全世界搜罗热门视频的搜索。Customize a search for trending videos from around the world.

工作流Workflow

必应视频搜索 API 是一项 RESTful Web 服务,可以轻松地通过任何编程语言进行调用,只要该语言能够发出 HTTP 请求和分析 JSON 即可。The Bing Video Search API is a RESTful web service, making it easy to call from any programming language that can make HTTP requests and parse JSON. 可以通过 REST APISDK 使用此服务。You can use the service using either the REST API, or the SDK.

  1. 创建可以访问必应搜索 API 的认知服务 API 帐户Create a Cognitive Services API account with access to the Bing Search APIs. 如果没有 Azure 订阅,可以免费创建一个帐户If you don't have an Azure subscription, you can create an account for free.
  2. 使用有效的搜索查询向 API 发送请求。Send a request to the API, with a valid search query.
  3. 通过分析返回的 JSON 消息处理 API 响应。Process the API response by parsing the returned JSON message.

后续步骤Next steps

必应视频搜索 API 交互演示介绍如何自定义搜索查询并在 Web 中搜索视频。The Bing Video Search API interactive demo shows how you can customize a search query and search the web for videos.

通过快速入门完成第一个 API 请求的快速入门。Use the quickstart to quickly get started with your first API request.

另请参阅See also