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

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

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

Web Search API, REST: ImageSearch.Search

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

HTTP requestHTTP request

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

Body parametersBody parameters

{
  "query": {
    "searchType": "string",
    "queryText": "string",
    "familyMode": "string",
    "page": "string",
    "fixTypoMode": "string"
  },
  "imageSpec": {
    "format": "string",
    "size": "string",
    "orientation": "string",
    "color": "string"
  },
  "site": "string",
  "docsOnPage": "string",
  "folderId": "string",
  "userAgent": "string"
}

Field

Description

query

SearchQuery

Required field. Search query.

imageSpec

ImageSpec

Searching for images with a particular size, orientation, format or color.

site

string

Searching for images on a particular website only.

docsOnPage

string (int64)

Number of results per search result page.

folderId

string

ID of the folder.

userAgent

string

User-Agent request header value.

SearchQuerySearchQuery

Field

Description

searchType

enum (SearchType)

Required field. Search type that determines the domain name that will be used for the search queries.

  • SEARCH_TYPE_UNSPECIFIED
  • SEARCH_TYPE_RU: Russian search type (default), yandex.ru search domain name will be used.
  • SEARCH_TYPE_TR: Turkish search type, yandex.tr search domain name will be used.
  • SEARCH_TYPE_COM: International search type, yandex.com search domain name will be used.
  • SEARCH_TYPE_KK: Kazakh search type, yandex.kz search domain name will be used.
  • SEARCH_TYPE_BE: Belarusian search type, yandex.by search domain name will be used.
  • SEARCH_TYPE_UZ: Uzbek search type, yandex.uz search domain name will be used.

queryText

string

Required field. Search query text

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.

page

string (int64)

The number of a requested page with search results

fixTypoMode

enum (FixTypoMode)

Typos autocorrections mode

  • FIX_TYPO_MODE_UNSPECIFIED
  • FIX_TYPO_MODE_ON: Automatically correct typos (default value).
  • FIX_TYPO_MODE_OFF: Autocorrection is off.

ImageSpecImageSpec

Field

Description

format

enum (ImageFormat)

Searching for images in a particular format.

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

size

enum (ImageSize)

Searching for images of a particular size.

  • IMAGE_SIZE_UNSPECIFIED
  • IMAGE_SIZE_ENORMOUS: Very large images (larger than 1,600 × 1,200 pixels).
  • IMAGE_SIZE_LARGE: Large images (from 800 × 600 to 1,600 × 1,200 pixels).
  • IMAGE_SIZE_MEDIUM: Medium images (from 150 × 150 to 800 × 600 pixels).
  • IMAGE_SIZE_SMALL: Small images (from 32 × 32 to 150 × 150 pixels).
  • IMAGE_SIZE_TINY: Icons (up to 32 × 32 pixels).
  • IMAGE_SIZE_WALLPAPER: Desktop wallpapers.

orientation

enum (ImageOrientation)

Searching for images with a particular orientation.

  • IMAGE_ORIENTATION_UNSPECIFIED
  • IMAGE_ORIENTATION_VERTICAL: Horizontal orientation.
  • IMAGE_ORIENTATION_HORIZONTAL: Vertical orientation.
  • IMAGE_ORIENTATION_SQUARE: Square aspect ratio.

color

enum (ImageColor)

Searching for images containing a particular color.

  • IMAGE_COLOR_UNSPECIFIED
  • IMAGE_COLOR_COLOR: Color images.
  • IMAGE_COLOR_GRAYSCALE: Black and white images.
  • IMAGE_COLOR_RED: Red is the main color of the image.
  • IMAGE_COLOR_ORANGE: Orange is the main color of the image.
  • IMAGE_COLOR_YELLOW: Yellow is the main color of the image.
  • IMAGE_COLOR_GREEN: Green is the main color of the image.
  • IMAGE_COLOR_CYAN: Cyan is the main color of the image.
  • IMAGE_COLOR_BLUE: Blue is the main color of the image.
  • IMAGE_COLOR_VIOLET: Violet is the main color of the image.
  • IMAGE_COLOR_WHITE: White is the main color of the image.
  • IMAGE_COLOR_BLACK: Black is the main color of the image.

ResponseResponse

HTTP Code: 200 - OK

{
  "rawData": "string"
}

Field

Description

rawData

string (bytes)

Required field. Search results in XML format.

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

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