Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Yandex Images Search

เอกสาร API
https://api.sandbase.ai/v1/api/yandex/images

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

ราคา
$0.015USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 0 ไม่บังคับ

Playground

อินพุต
text
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

API README

Yandex Images Search API

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.

Use cases

  • Collect image URLs and source pages for a keyword to build a reference set for a design or content project.
  • Check which sites rank for a keyword in image search by reading the source domain of each result.
  • Filter results by size.width and size.height to find images that are large enough for print or banners.
  • Trace where an image appears online by following link back to the page that hosts it.

Request

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.

Parameters

NameTypeRequiredDescription
textstringYestext

Example response

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"
    }
  ]
}

Response fields

FieldMeaning
images_results[]List of image results for the query, in the order returned.
images_results[].positionRank of the result in the list, starting at 1.
images_results[].originalURL of the full-size image file.
images_results[].thumbnailURL of a smaller preview image hosted on a Yandex domain.
images_results[].linkURL of the web page that contains the image.
images_results[].sourceDomain name of the site that hosts the page, for example en.wikipedia.org.
images_results[].titleTitle of the source page. Long titles may be cut off.
images_results[].snippetShort text shown with the image, such as a caption or page description.
images_results[].size.width / images_results[].size.heightWidth and height of the original image.
images_results[].size.bytesFile size of the original image, as given by the bytes key.

Notes

  • text is the only parameter and it is required. Pass the search phrase as a plain string, for example coffee.
  • Results are not in English only. Titles and snippets keep the language of the source page.
  • To search video results for the same keyword, use Yandex Videos Search.

Pricing

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

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
Yandex$0.015 ต่อการเรียกJSON
Yandex$0.01 ต่อการเรียกJSON
Yandex$0.015 ต่อการเรียกJSON

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ Yandex Images Search API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/yandex/images โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Yandex Images Search API ราคาเท่าไร?

$0.015 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

Yandex Images Search API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: text (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Yandex Images Search API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Yandex ไหม?

ไม่จำเป็น Yandex Images Search ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Yandex API แยกต่างหาก