Sand AISand AI MAGI-2MAGI-2 artık SandBase'de: yerel sesli 1080p videoŞimdi deneyin

Bing Images Search

API dokümanları
https://api.sandbase.ai/v1/api/bing/images

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

Fiyat
$0.015USD / çağrı
Yöntem
POST
Yanıt
JSON
Parametreler
1 gerekli · 0 isteğe bağlı

Oynatma Alanı

Girdi
q
ÇıktıHazır

Çıktınız burada görünecek

Girdileri tamamlayın, ardından Çalıştır'a tıklayın.

API README

Bing Images Search API

This API returns Bing Images results for a search keyword. Each result has the full image URL, a thumbnail, a title, the image size and the page it came from. It needs one input, the search term q.

Use cases

  • Collect image candidates for a topic such as coffee to review for a mood board or article.
  • Find the source pages that host an image by reading source and domain.
  • Build a list of related search terms for a keyword from related_searches and suggested_searches.
  • Check which sites rank for an image query by comparing domain and position across results.

Request

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

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

Parameters

NameTypeRequiredDescription
qstringYesq

Example response

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

{
  "images_results": [
    {
      "description": "Beyond Caffeine: How the Coffee Experience Enhances Brain Readiness ...",
      "domain": "neurosciencenews.com",
      "link": "https://www.bing.com/images/search?view=detailV2&ccid=zMFtlEEJ&id=35451614604F69…",
      "original": "https://neurosciencenews.com/files/2023/06/coffee-brain-caffeine-neuroscincces.j…",
      "position": 1,
      "size": "1200×800",
      "source": "https://neurosciencenews.com/coffee-readiness-caffeine-23543/",
      "source_logo": "https://th.bing.com/th/id/ODF.G8TseB84io3WwAFhXBBUuA?w=12&h=12&c=7&rs=1&p=0&r=0&…",
      "thumbnail": "https://th.bing.com/th/id/OIP.zMFtlEEJqLUrX3QgDoG-qwHaE8?w=258&h=180&c=7&r=0&o=7…",
      "title": "Beyond Caffeine: How the Coffee Experience Enhances Brain Readi…"
    }
  ],
  "related_searches": [
    {
      "name": "Coffee Mugs"
    }
  ],
  "suggested_searches": [
    {
      "link": "https://www.bing.com/images/search?q=Coffee+Art&FORM=RESTAB",
      "name": "Coffee Art",
      "thumbnail": "https://th.bing.com/th?q=Coffee+Art&w=42&h=42&c=7&rs=1&p=0&r=0&o=7&pid=1.7&rm=3&…"
    }
  ]
}

Response fields

FieldMeaning
images_results[].originalURL of the full-size image file.
images_results[].thumbnailURL of a small preview image hosted by Bing. Some results do not include it.
images_results[].title / images_results[].descriptionText shown for the image result. They are often the same, and long text may end with an ellipsis.
images_results[].sizeImage dimensions as a string in the form 1200×800. It reads width then height.
images_results[].source / images_results[].domainsource is the web page that contains the image. domain is the site name of that page.
images_results[].positionRank of the image in the result list, starting at 1.
images_results[].linkLink to the Bing image detail page for this result.
images_results[].source_logoURL of a small logo image for the source site.
related_searches[].nameText of a related search query.
suggested_searches[].name / suggested_searches[].link / suggested_searches[].thumbnailA suggested search term, the Bing Images URL for that search, and a small preview image for it.

Notes

  • The only input is q, the keyword to search for. Pass it as plain text.
  • The result list is in images_results. The response shown has no pagination field.
  • To search video results for the same keyword, call Bing Videos Search.
  • To get a written answer for a question instead of images, call Bing Copilot Answer.

Pricing

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

Daha fazlasını keşfedin

İlgili APIs

Tüm APIs
APIFiyatYanıt
Bing$0.015 çağrı başınaJSON
Bing$0.015 çağrı başınaJSON
Bing$0.01 çağrı başınaJSON
Bing$0.01 çağrı başınaJSON
Bing$0.01 çağrı başınaJSON
Bing$0.015 çağrı başınaJSON

Sorular

SSS

Bing Images Search API'sini nasıl kullanırım?

SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/bing/images adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.

Bing Images Search API'sinin fiyatı nedir?

çağrı başına $0.015, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.

Bing Images Search API'si hangi parametreleri kabul eder?

Gerekli: q (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.

Bing Images Search API'si ne döndürür?

Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.

Bir Bing geliştirici hesabına veya API anahtarına ihtiyacım var mı?

Hayır. Bing 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. Bing API erişimi için ayrıca başvuru yapmanız gerekmez.