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.015美元/次呼叫
方法
POST
回應
JSON
參數
1 個必填 · 0 個選填

Playground

輸入
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.015JSON
Yahoo每次呼叫 $0.01JSON
Yahoo每次呼叫 $0.01JSON
Yahoo每次呼叫 $0.015JSON

問題

常見問題

我要如何使用 Yahoo Images Search API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/yahoo/images。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

Yahoo Images Search API 的費用是多少?

每次 $0.015,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

Yahoo Images Search API 接受哪些參數?

必要:p (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Yahoo Images Search API 會回傳什麼?

在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。

我需要 Yahoo 開發者帳號或 API 金鑰嗎?

不需要。Yahoo Images Search 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Yahoo API 存取權。