textstringrequerido
text
https://api.sandbase.ai/v1/api/yandex/imagesYandex Images results for a keyword: image URLs, thumbnails, sizes and source pages.
Su salida aparecerá aquí
Complete las entradas y luego haga clic en Ejecutar.
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.
Empiece a construir
Endpoint de la API de la plataforma con autenticación unificada y seguimiento de uso.
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"
}'Configure su clave de API de SandBase en el entorno de su servidor. Las solicitudes usan autenticación Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserve su clave en el servidor. No la exponga en código del navegador.
textstringrequeridotext
Respuesta de ejemplo guardada para esta API; no se realiza ninguna solicitud en vivo al verla.
No se ha publicado ninguna respuesta guardada. Ejecute la API en Playground para inspeccionar su respuesta.
Explorar más
| API | Precio | Respuesta |
|---|---|---|
Yandex Images SearchEsta API Yandex | $0.015 por llamada | JSON |
Yandex | $0.01 por llamada | JSON |
Yandex | $0.015 por llamada | JSON |
Preguntas
Envía una solicitud POST a https://api.sandbase.ai/v1/api/yandex/images con tu clave API de SandBase en el encabezado Authorization (Bearer) y los parámetros como un cuerpo JSON. También puedes probarlo en el Playground de esta página sin escribir código.
$0.015 por llamada, facturado desde tu saldo de SandBase. Solo se te cobra por las llamadas que haces; no hay suscripción.
Requeridos: text (string). La tabla de Parámetros y el Playground de esta página enumeran todos los campos.
Una respuesta JSON devuelta en la misma solicitud HTTP (sincrónica). El README de esta página incluye una respuesta de ejemplo.
No. Yandex Images Search funciona a través de SandBase, así que una sola clave API de SandBase cubre este endpoint y todas las demás APIs y modelos del catálogo. No necesitas solicitar acceso a la API de Yandex por separado.