textstringwajib
text
https://api.sandbase.ai/v1/api/yandex/imagesYandex Images results for a keyword: image URLs, thumbnails, sizes and source pages.
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
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.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
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"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
textstringwajibtext
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Yandex Images SearchAPI ini Yandex | $0.015 per panggilan | JSON |
Yandex | $0.01 per panggilan | JSON |
Yandex | $0.015 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/yandex/images dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
$0.015 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Wajib: text (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. Yandex Images Search berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Yandex secara terpisah.