什麼是 Bing 影片搜尋 API?What is the Bing Video Search API?

Bing 影片搜尋 API 可讓您輕鬆地將影片搜尋功能新增至服務和應用程式。The Bing Video Search API makes it easy to add video searching capabilities to your services and applications. 使用 API 傳送使用者搜尋查詢,您即可取得並顯示類似於 Bing 影片的相關高品質影片。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. Bing Web 搜尋 API 可以傳回其他類型的 Web 內容,包括網頁、影片、新聞和影像。The Bing Web Search API can return other types of web content, including webpages, videos, news and images.

Bing 影片搜尋 API 功能Bing Video Search API features

功能Feature 說明Description
即時建議搜尋字詞Suggest search terms in real-time 使用 Bing 自動建議 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 為 Bing 影片搜尋 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

Bing 影片搜尋 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. 建立具備 Bing 搜尋 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

Bing 影片搜尋 API 的互動式示範會說明如何自訂搜尋查詢,並搜尋 Web 上的影片。The Bing Video Search API interactive demo shows how you can customize a search query and search the web for videos.

當您準備好要呼叫 API 時,請建立認知服務 API 帳戶When you are ready to call the API, create a Cognitive services API account. 如果您沒有 Azure 訂用帳戶,可以建立免費帳戶If you don't have an Azure subscription, you can create an account for free.

使用快速入門來快速開始使用您的第一個 API 要求。Use the quickstart to quickly get started with your first API request.

另請參閱See also