Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

Yahoo Images Search

APIドキュメント
https://api.sandbase.ai/v1/api/yahoo/images

Yahoo Images results for a keyword: image URLs, thumbnails, sizes and source pages.

料金
$0.015USD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 1 件 · 任意 0 件

プレイグラウンド

入力
p
出力準備完了

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

API README

Yahoo Images Search API

Returns Yahoo Images search results for a keyword. Each result has the full image URL, a thumbnail, the pixel dimensions, the source page and a title. The only input is the search term in p.

Use cases

  • Collect image URLs and source pages for a keyword to review where pictures of a topic appear online.
  • Filter results by dimensions to find large images for mockups or presentations.
  • Build a keyword list from the related and suggested searches for image research.
  • Show thumbnail previews of a search term in an internal tool without hosting the images.

Request

curl -X POST "https://api.sandbase.ai/v1/api/yahoo/images" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"p": "coffee"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
pstringYesp

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "images_results": [
    {
      "dimensions": "1200x800",
      "link": "https://images.search.yahoo.com/search/images;_ylt=A2RROKuTkelq1AIABYGJzbkF;_ylu…",
      "original": "https://neurosciencenews.com/files/2023/06/coffee-brain-caffeine-neuroscincces.j…",
      "position": 1,
      "source": "https://neurosciencenews.com/coffee-readiness-caffeine-23543/",
      "thumbnail": "https://tse2.mm.bing.net/th/id/OIP.zMFtlEEJqLUrX3QgDoG-qwHaE8?r=0&pid=Api&h=220&…",
      "title": "Beyond Caffeine: How the Coffee Experience Enhances Brain Readiness ..."
    }
  ],
  "related_searches": [
    {
      "link": "https://images.search.yahoo.com/search/images;_ylt=A2RROKuTkelq1AIAGYGJzbkF;_ylu…",
      "name": "coffee Drink Types",
      "thumbnail": "https://tse2.mm.bing.net/th?q=Coffee+Drink+Types&r=0&pid=Api&mkt=en-US&cc=US&set…"
    }
  ],
  "suggested_searches": [
    {
      "link": "https://images.search.yahoo.com/search/images;_ylt=A2RROKuTkelq1AIA9oCJzbkF;_ylu…",
      "name": "coffee Art",
      "thumbnail": "https://tse2.mm.bing.net/th?q=Coffee+Art&r=0&pid=Api&mkt=en-US&cc=US&setlang=en&…"
    }
  ]
}

Response fields

FieldMeaning
images_results[].originalURL of the full-size image file.
images_results[].thumbnailURL of a small preview version of the image.
images_results[].dimensionsImage size as a widthxheight string, for example 1200x800.
images_results[].sourceURL of the web page that hosts the image.
images_results[].titleTitle of the result. Long titles may end with an ellipsis.
images_results[].positionRank of the image in the results, starting at 1.
images_results[].linkYahoo Images link for this result.
related_searches[].name / suggested_searches[].nameSearch phrase that Yahoo offers for the query.
related_searches[].link / suggested_searches[].linkYahoo Images link that runs the related or suggested search.
related_searches[].thumbnail / suggested_searches[].thumbnailPreview image URL for the related or suggested search.

Notes

  • dimensions is a string, so split it on x to get width and height as numbers.
  • Use original for the image file and source for the page it appears on. link points to the Yahoo results page.
  • To search for video instead of images, call Yahoo Videos Search.

Pricing

$0.015 per successful call. Failed calls are not charged.

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
Yahoo$0.015 / 回JSON
Yahoo$0.01 / 回JSON
Yahoo$0.01 / 回JSON
Yahoo$0.015 / 回JSON

質問

FAQ

Yahoo Images Search API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/yahoo/images に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

Yahoo Images Search API の料金はいくらですか?

1回あたり $0.015、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

Yahoo Images Search API はどのパラメータを受け付けますか?

必須: p (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

Yahoo Images Search API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

Yahoo の開発者アカウントまたは API key は必要ですか?

いいえ。Yahoo Images Search は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Yahoo の API アクセスを別途申請する必要はありません。