Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Search API
  • Getting started
  • Access management
  • Pricing policy
    • Authentication in the API
        • Overview
          • Overview
          • Search
          • SearchByImage
  • Audit Trails events
  • Release notes

In this article:

  • HTTP request
  • Body parameters
  • SearchQuery
  • ImageSpec
  • Response
  1. API reference
  2. API
  3. REST
  4. ImageSearch
  5. Search

Web Search API, REST: ImageSearch.Search

Written by
Yandex Cloud
Updated at October 3, 2025
  • HTTP request
  • Body parameters
  • SearchQuery
  • ImageSpec
  • Response

HTTP requestHTTP request

POST https://searchapi.api.cloud.yandex.net/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.

Was the article helpful?

Previous
Overview
Next
SearchByImage
© 2025 Direct Cursus Technology L.L.C.