textstringerforderlich
text
https://api.sandbase.ai/v1/api/yandex/imagesYandex Images results for a keyword: image URLs, thumbnails, sizes and source pages.
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
This API returns Yandex Images results for a keyword. Each result has the full image URL, a thumbnail, the image size and the page it came from. It needs one input, text, the search query.
source domain of each result.size.width and size.height to find images that are large enough for print or banners.link back to the page that hosts it.curl -X POST "https://api.sandbase.ai/v1/api/yandex/images" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "coffee"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
text | string | Yes | text |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"images_results": [
{
"link": "https://www.ixbt.com/live/offtopic/espresso-flet-uayt-latte-makiato-kak-razobrat…",
"original": "https://img.ixbt.site/live/images/original/32/75/48/2024/10/16/13debe3369.jpg",
"position": 1,
"size": {
"bytes": 52497,
"height": 501,
"width": 877
},
"snippet": "Эспрессо",
"source": "ixbt.com",
"thumbnail": "https://avatars.mds.yandex.net/i?id=3792c6e26c505c0c57105cad26b374d0e32045bf-154…",
"title": "Эспрессо, флэт уайт, латте макиато. Как разобраться в видах кофе? / Оффтопик / i"
}
]
}
| Field | Meaning |
|---|---|
images_results[] | List of image results for the query, in the order returned. |
images_results[].position | Rank of the result in the list, starting at 1. |
images_results[].original | URL of the full-size image file. |
images_results[].thumbnail | URL of a smaller preview image hosted on a Yandex domain. |
images_results[].link | URL of the web page that contains the image. |
images_results[].source | Domain name of the site that hosts the page, for example en.wikipedia.org. |
images_results[].title | Title of the source page. Long titles may be cut off. |
images_results[].snippet | Short text shown with the image, such as a caption or page description. |
images_results[].size.width / images_results[].size.height | Width and height of the original image. |
images_results[].size.bytes | File size of the original image, as given by the bytes key. |
text is the only parameter and it is required. Pass the search phrase as a plain string, for example coffee.$0.015 per successful call. Failed calls are not charged.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
curl -X POST "https://api.sandbase.ai/v1/api/yandex/images" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text": "coffee"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
textstringerforderlichtext
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
Es wurde keine gespeicherte Antwort veröffentlicht. Führen Sie die API in Playground aus, um die Antwort zu prüfen.
Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
Yandex Images SearchDiese API Yandex | $0.015 pro Aufruf | JSON |
Yandex | $0.01 pro Aufruf | JSON |
Yandex | $0.015 pro Aufruf | JSON |
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/yandex/images mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
$0.015 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Erforderlich: text (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. Yandex Images Search läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Yandex API beantragen.