Bing Image Search API とはWhat is the Bing Image Search API?
警告
Bing Search API は、Cognitive Services から Bing Search Services に移行されます。Bing Search APIs are moving from Cognitive Services to Bing Search Services. 2020 年 10 月 30 日 以降、Bing Search の新しいインスタンスは、こちらに記載されているプロセスに従ってプロビジョニングする必要があります。Starting October 30, 2020, any new instances of Bing Search need to be provisioned following the process documented here. Cognitive Services を使用してプロビジョニングされた Bing Search API は、次の 3 年間、または Enterprise Agreement の終わり (どちらか先に発生した方) までサポートされます。Bing Search APIs provisioned using Cognitive Services will be supported for the next three years or until the end of your Enterprise Agreement, whichever happens first. 移行手順については、Bing Search Services に関するページを参照してください。For migration instructions, see Bing Search Services.
Bing Image Search API では、アプリケーションで Bing の画像検索機能を使用できます。The Bing Image Search API enables you to use Bing's image search capabilities in your application. この API に検索クエリを送信すると、bing.com/images のように高品質の画像を取得できます。By sending search queries to the API, you can get high-quality images similar to bing.com/images.
Bing Image Search API では画像のみの検索結果が提供されますが、他の利用できる Bing Search API を組み合わせたり使用したりして Web 上のさまざまな種類のコンテンツを見つけることができます。While the Bing Image Search API provides image-only search results, you can combine or use the other available Bing Search APIs to find many types of content on the web.
Bing Image Search の機能Bing Image Search features
特徴量Feature | 説明Description |
---|---|
検索用語をリアルタイムで提案するSuggest search terms in real-time | Bing Autosuggest API を使用して、入力時に候補検索用語を表示することで、アプリのエクスペリエンスを向上します。Improve your app experience by using the Bing Autosuggest API to display suggested search terms as they're typed. |
画像の結果をフィルター処理して制限するFilter and restrict image results | クエリ パラメーターを編集して、Bing から返される画像をフィルター処理します。Filter the images that Bing returns by editing query parameters. |
サムネイルのクロップ、サイズ変更、表示Crop, resize, and display thumbnails | Bing Image Search から返された画像のサムネイル プレビューを編集して表示します。Edit and display thumbnail previews for the images returned by Bing Image Search. |
ユーザー検索クエリをピボットして展開するPivot & expand user search queries | Bing で提案された検索用語をクエリに含めて表示することで、検索機能を拡張できます。Expand your search capabilities by including and displaying Bing-suggested search terms to queries. |
注目の画像を取得するGet trending images | 世界で注目を集めている画像の検索をカスタマイズします。Customize a search for trending images from around the world. |
ワークフローWorkflow
Bing Image Search API は RESTfulWeb サービスです。HTTP 要求を作成して JSON を解析できる任意のプログラミング言語から簡単に呼び出すことができます。The Bing Image 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 API または SDK のいずれかを使用してサービスを使用できます。You can use the service using either the REST API, or the SDK.
- Bing Search API が利用できる Cognitive Services 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.
- 有効な検索クエリを使用して API に要求を送信します。Send a request to the API, with a valid search query.
- 返された JSON メッセージを解析して API 応答を処理します。Process the API response by parsing the returned JSON message.
次のステップNext steps
まず、Bing Image Search API の対話型のデモを試してみてください。First, try the Bing Image Search API interactive demo. このデモは、検索クエリをすばやくカスタマイズし、Web で画像を検索する方法を示しています。This demo shows how you can quickly customize a search query and scour the web for images.
最初の API 要求をすぐに開始する場合は、次のページを参照することをお勧めします。To quickly get started with your first API request, you can learn to:
- REST API を使用して Bing に検索クエリを送信する方法。またはSend search queries to Bing using the REST API, or
- SDK を使用して Bing から返される画像を要求してフィルター処理する方法。Request and filter the images Bing returns using the SDK.
関連項目See also
Bing Search API の価格の詳細。Pricing details for the Bing Search APIs.
Bing Image Search API v7 のリファレンス セクションには、API のエンドポイント、ヘッダー、API 応答、およびクエリ パラメーターに関する情報が含まれています。The Bing Image Search API v7 reference section contains information on the API's endpoints, headers, API responses, and query parameters.
Bing の利用と表示の要件に関するトピックでは、Bing Search API を使用して得られるコンテンツと情報の許可される使用方法が指定されています。The Bing Use and Display Requirements specify acceptable uses of the content and information gained through the Bing search APIs.
「Bing Image Search API で Web から画像を取得する」の記事では、Web から画像を検索して取得する方法について説明しています。The Getting images from the web with the Bing Image Search API article describes how to search and get images from the web.
検索クエリの送信と使用に関する記事では、クエリの作成、カスタマイズ、およびピボット検索の方法について説明しています。The Sending and working with search queries article describes how to make, customize, and pivot search queries.
その他の提供されている API については、Bing Search API ハブ ページをご覧ください。Visit the Bing Search API hub page to explore the other available APIs.