pstringzorunlu
p
https://api.sandbase.ai/v1/api/yahoo/imagesYahoo Images results for a keyword: image URLs, thumbnails, sizes and source pages.
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
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.
dimensions to find large images for mockups or presentations.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.
| Name | Type | Required | Description |
|---|---|---|---|
p | string | Yes | p |
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&…"
}
]
}
| Field | Meaning |
|---|---|
images_results[].original | URL of the full-size image file. |
images_results[].thumbnail | URL of a small preview version of the image. |
images_results[].dimensions | Image size as a widthxheight string, for example 1200x800. |
images_results[].source | URL of the web page that hosts the image. |
images_results[].title | Title of the result. Long titles may end with an ellipsis. |
images_results[].position | Rank of the image in the results, starting at 1. |
images_results[].link | Yahoo Images link for this result. |
related_searches[].name / suggested_searches[].name | Search phrase that Yahoo offers for the query. |
related_searches[].link / suggested_searches[].link | Yahoo Images link that runs the related or suggested search. |
related_searches[].thumbnail / suggested_searches[].thumbnail | Preview image URL for the related or suggested search. |
dimensions is a string, so split it on x to get width and height as numbers.original for the image file and source for the page it appears on. link points to the Yahoo results page.$0.015 per successful call. Failed calls are not charged.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
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"
}'SandBase API anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
pstringzorunlup
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
Yayınlanmış bir kaydedilmiş yanıt yok. Yanıtını incelemek için API'yi Playground'da çalıştırın.
Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
Yahoo Images SearchBu API Yahoo | $0.015 çağrı başına | JSON |
Yahoo | $0.01 çağrı başına | JSON |
Yahoo | $0.01 çağrı başına | JSON |
Yahoo | $0.015 çağrı başına | JSON |
Sorular
SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/yahoo/images adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.015, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
Gerekli: p (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.
Hayır. Yahoo Images Search, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Yahoo API erişimi için ayrıca başvuru yapmanız gerekmez.