Yandex Cloud
Поиск
Связаться с намиПодключиться
  • Истории успеха
  • Документация
  • Блог
  • Все сервисы
  • Статус работы сервисов
    • Доступны в регионе
    • Инфраструктура и сеть
    • Платформа данных
    • Контейнеры
    • Инструменты разработчика
    • Бессерверные вычисления
    • Безопасность
    • Мониторинг и управление ресурсами
    • ИИ для бизнеса
    • Бизнес-инструменты
  • Все решения
    • По отраслям
    • По типу задач
    • Экономика платформы
    • Безопасность
    • Техническая поддержка
    • Каталог партнёров
    • Обучение и сертификация
    • Облако для стартапов
    • Облако для крупного бизнеса
    • Центр технологий для общества
    • Партнёрская программа
    • Поддержка IT-бизнеса
    • Облако для фрилансеров
    • Обучение и сертификация
    • Блог
    • Документация
    • Мероприятия и вебинары
    • Контакты, чаты и сообщества
    • Идеи
    • Тарифы Yandex Cloud
    • Промоакции и free tier
    • Правила тарификации
  • Истории успеха
  • Документация
  • Блог
Проект Яндекса
© 2025 ТОО «Облачные Сервисы Казахстан»
Yandex Search API
  • Начало работы
  • Управление доступом
  • Правила тарификации
    • Аутентификация в API
        • Overview
          • Overview
          • Search
          • SearchByImage
  • Аудитные логи Audit Trails
  • История изменений

В этой статье:

  • HTTP request
  • Body parameters
  • Response
  • ImageInfo
  1. Справочник API
  2. API
  3. REST (англ.)
  4. ImageSearch
  5. SearchByImage

Web Search API, REST: ImageSearch.SearchByImage

Статья создана
Yandex Cloud
Обновлена 30 октября 2025 г.
  • HTTP request
  • Body parameters
  • Response
  • ImageInfo

HTTP requestHTTP request

POST https://searchapi.api.yandexcloud.kz/v2/image/search_by_image

Body parametersBody parameters

{
  "site": "string",
  "folderId": "string",
  // Includes only one of the fields `url`, `data`, `id`
  "url": "string",
  "data": "string",
  "id": "string",
  // end of the list of possible fields
  "page": "string",
  "familyMode": "string"
}

Field

Description

site

string

Restricts the search to the specific website.

folderId

string

ID of the folder.

url

string

Required field. The image url to use for the search.

Includes only one of the fields url, data, id.

data

string (bytes)

Required field. The image data to use for the search.

Includes only one of the fields url, data, id.

id

string

Required field. CBIR ID of the image to use for the search.

Includes only one of the fields url, data, id.

page

string (int64)

The number of a requested page with search results.

familyMode

enum (FamilyMode)

Rule for filtering search results and determines whether any documents should be excluded.

  • FAMILY_MODE_UNSPECIFIED
  • FAMILY_MODE_NONE: Filtering is disabled. Search results include any documents regardless of their contents.
  • FAMILY_MODE_MODERATE: Moderate filter (default value). Documents of the Adult category are excluded from search results
    unless a query is explicitly made for searching resources of this category.
  • FAMILY_MODE_STRICT: Regardless of a search query, documents of the Adult category
    and those with profanity are excluded from search results.

ResponseResponse

HTTP Code: 200 - OK

{
  "images": [
    {
      "url": "string",
      "format": "string",
      "width": "string",
      "height": "string",
      "passage": "string",
      "host": "string",
      "pageTitle": "string",
      "pageUrl": "string"
    }
  ],
  "page": "string",
  "maxPage": "string",
  "id": "string"
}

Field

Description

images[]

ImageInfo

The images found.

page

string (int64)

The number of the page with search results.

maxPage

string (int64)

id

string

CBIR ID of the image used for the search.

ImageInfoImageInfo

Field

Description

url

string

Image URL.

format

enum (ImageFormat)

Image format.

  • IMAGE_FORMAT_UNSPECIFIED
  • IMAGE_FORMAT_JPEG: JPG format.
  • IMAGE_FORMAT_GIF: GIF format.
  • IMAGE_FORMAT_PNG: PNG format.

width

string (int64)

Image width.

height

string (int64)

Image height.

passage

string

Text passage.

host

string

Document host.

pageTitle

string

Document title.

pageUrl

string

Document URL.

Была ли статья полезна?

Предыдущая
Search
Следующая
Overview
Проект Яндекса
© 2025 ТОО «Облачные Сервисы Казахстан»