Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Search API
    • Overview
        • GET requests
        • Response format
    • XML response
    • HTML response
    • Generative response
    • Quotas and limits
  • Access management
  • Pricing policy
  • Audit Trails events

In this article:

  • Request format
  • Request parameters
  • Example of a search query
  1. Concepts
  2. API v1
  3. Searching by images
  4. GET requests

GET requests

Written by
Yandex Cloud
Updated at November 20, 2024
  • Request format
    • Request parameters
    • Example of a search query

Yandex Search API allows you to search for images using the Yandex Images index with set parameters and get search results in XML format. You submit the search parameters as an HTTP request using the GET method. Yandex Search API generates a response as an XML document.

Currently, image search is only available for queries received via API v1.

To use the search, when signing up for the service, specify the list of IP addresses you will use to run queries to the service and select the appropriate search type. Based on the selected search type, specify the appropriate domain name in your query:

  • yandex.ru: For the Russian search type
  • yandex.com.tr: For the Turkish search type
  • yandex.com: For the International search type

To run a query, you need a service account with the search-api.executor role and a relevant API key you created.

Request format

https://yandex.<domain>/images-xml
  ? [folderid=<folder_ID>]
  & [apikey=<API_key>]
  & [text=<search_query_text>]
  & [groupby=<result_grouping_options>]
  & [p=<page_number>]
  & [fyandex=<family_search_filter>]
  & [site=<website_domain_name>]
  & [itype=<image_format>]
  & [iorient=<image_orientation>]
  & [isize=<image_size>]
  & [icolor=<image_color>]

Request parameters

  • folderid: Folder ID of the service account you will use to submit queries. This is a required parameter.

  • apikey: Service account API key. This is a required parameter.

  • text: Search query text. e.g., funny+cats. This is a required parameter.

    Warning

    If you have any special characters in parameter values, replace them with the respective escaped sequences based on percent-encoding. For example, use %3D instead of the equals sign (=), and + instead of a space.

  • groupby: Result grouping settings. The groups-on-page parameter sets the number of result groups displayed per search result page. This is an optional parameter. If not specified, the default value is 20. One result group contains one document.
    For example, to display five result groups per page, specify groupby=attr=ii.groups-on-page=5.

  • p: Number of the requested search result page. Page numbering starts from zero (0 stands for page 1). This is an optional parameter. By default, the first page with search results is returned.

  • fyandex: Using the Family search filter when generating a search response. This is an optional parameter. If the parameter is not set, the filter is not used. The possible values are:

    • 0: Family search filter disabled.
    • 1: Family search filter enabled.
  • site: Searching for images on a particular website only. For example, to search only on somepics.ru, specify site=somepics.ru. This is an optional parameter. If the parameter is not set, the search is performed on all websites in the search base.

  • itype: Searching for images in a particular format. This is an optional parameter. If the parameter is not set, the search is performed for images in all formats. The possible values are:

    • jpg: Searching for images in JPG format.
    • gif: Searching for images in GIF format.
    • png: Searching for images in PNG format.
  • iorient: Searching for images with a particular orientation. This is an optional parameter. If the parameter is not set, the search is performed for images with any image orientation. The possible values are:

    • horizontal: Searching for images with horizontal orientation.
    • vertical: Searching for images with vertical orientation.
    • square: Searching for images with square aspect ratio.
  • isize: Searching for images of a particular size. This is an optional parameter. If the parameter is not set, the search is performed for images of all sizes. The possible values are:

    • enormous: Searching for very large images (larger than 1,600 × 1,200 pixels).
    • large: Searching for large images (from 800 × 600 to 1,600 × 1,200 pixels).
    • medium: Searching for medium images (from 150 × 150 to 800 × 600 pixels).
    • small: Searching for small images (from 32 × 32 to 150 × 150 pixels).
    • tiny: Searching for icons (up to 32 × 32 pixels).
    • wallpaper: Searching for desktop wallpapers.
  • icolor: Searching for images containing a particular color. This is an optional parameter. If the parameter is not set, the search is performed for images with any colors. The possible values are:

    • gray: Black and white
    • color: Color
    • red: Red
    • orange: Orange
    • yellow: Yellow
    • green: Green
    • cyan: Cyan
    • blue: Blue
    • violet: Violet
    • white: White
    • black: Black

Example of a search query

The following request will return the third page of image search results for the funny cats query. The search type is Russian (yandex.ru). Yandex Search API will return results for medium-sized color images in JPG format with horizontal image orientation found on somepics.ru. The Family search filter will be applied. The page will contain three groups of search results.

https://yandex.ru/images-xml?folderid=b1gt6g8ht345********&apikey=your_service_account_API_key********&text=funny+cats&groupby=attr=ii.groups-on-page=3&p=2&fyandex=1&site=somepics.ru&itype=jpg&iorient=horizontal&isize=medium&icolor=color

See also

  • Image search response format
  • Running search queries via API v1

Was the article helpful?

Previous
POST requests
Next
Response format
Yandex project
© 2025 Yandex.Cloud LLC