qstringआवश्यक
q
https://api.sandbase.ai/v1/api/bing/imagesBing Images results for a keyword: image URLs, thumbnails, titles, sizes and source pages.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
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.
coffee to review for a mood board or article.source and domain.related_searches and suggested_searches.domain and position across results.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.
| Name | Type | Required | Description |
|---|---|---|---|
q | string | Yes | q |
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&…"
}
]
}
| Field | Meaning |
|---|---|
images_results[].original | URL of the full-size image file. |
images_results[].thumbnail | URL of a small preview image hosted by Bing. Some results do not include it. |
images_results[].title / images_results[].description | Text shown for the image result. They are often the same, and long text may end with an ellipsis. |
images_results[].size | Image dimensions as a string in the form 1200×800. It reads width then height. |
images_results[].source / images_results[].domain | source is the web page that contains the image. domain is the site name of that page. |
images_results[].position | Rank of the image in the result list, starting at 1. |
images_results[].link | Link to the Bing image detail page for this result. |
images_results[].source_logo | URL of a small logo image for the source site. |
related_searches[].name | Text of a related search query. |
suggested_searches[].name / suggested_searches[].link / suggested_searches[].thumbnail | A suggested search term, the Bing Images URL for that search, and a small preview image for it. |
q, the keyword to search for. Pass it as plain text.images_results. The response shown has no pagination field.$0.015 per successful call. Failed calls are not charged.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
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"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
qstringआवश्यकq
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Bing Images Searchयह API Bing | $0.015 प्रति कॉल | JSON |
Bing | $0.015 प्रति कॉल | JSON |
Bing | $0.01 प्रति कॉल | JSON |
Bing | $0.01 प्रति कॉल | JSON |
Bing | $0.01 प्रति कॉल | JSON |
Bing | $0.015 प्रति कॉल | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/bing/images पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.015 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: q (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Bing Images Search SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Bing API access के लिए आवेदन करने की आवश्यकता नहीं है।