Request format

The service is accessed using a GET request to the address https://search-maps.yandex.ru/v1/. Required request parameters are text, lang, and apikey.

In the response, the server returns the found objects sorted by relevance to the query. A maximum of 500 objects can be retrieved per search query.

https://search-maps.yandex.ru/v1/
 ? [apikey=<key>]
 & [text=<search query>]
 & [type=<object types>]
 & [lang=<response language>]
 & [ll=<search area center>]
 & [spn=<search area size>]
 & [bbox=<search area coordinates>]
 & [rspn=<do not search outside the search area>]
 & [results=<number of results in the response>]
 & [skip=<number of results to skip>]
 & [callback=<function name>]
apikeyThe key for accessing the service. You can get and manage keys in the Developer's Dashboard.
text

Text of the search query. For example, the name of a geographical feature, address, coordinates, business name, or phone number.

Examples (without URL encoding):

text=swan lake

text=55.750788,37.618534

text=Saint Petersburg, ul. Blohina, 15

text=+7 495 739-70-70

text=Yandex, Ltd.

type

Types of results returned. Possible values:

  • geo — Toponyms.
  • biz — Businesses.
  • omitted — Automatically detect the type based on the query text.

Example:

type=biz

langPreferred response language. Set as the locale ID in the format lang=language_region, where
  • language — Two-letter language code. Specified in ISO 639-1 format. Sets the language for displaying the names of found objects.
  • region — Two-letter country code. Specified in ISO 3166-1 format. It determines regional specifics such as units of measurement (for indicating the distance to a found object).
    Note. For the regions RU, UA and TR, distance is shown in kilometers; for US, it is shown in miles.

Supported values:

  • ru_RU — Russian
  • uk_UA — Ukrainian
  • be_BY — Belarusian
  • en_RU — United States
  • en_US — American English
  • tr_TR — Turkish

If the parameter has a locale value that is not in this list, the service selects the language closest to the one set.

Example: lang=uk_UA.

ll

The center of the search area. Defined by the longitude and latitude, separated by a comma. The longitude and latitude are indicated in degrees, represented as decimals.

It is used together with the spn parameter, which defines the size of the search area.

It is ignored during reverse geocoding.

Example: ll=37.618920,55.756994&spn=0.552069,0.400552

spn

The size of the search area. Defined using the span of the longitude and latitude, separated by a comma. The spans are indicated in degrees, represented as decimals.

It is used together with the ll parameter, which defines the center of the search area.

It is ignored during reverse geocoding.

Example: ll=37.618920,55.756994&spn=0.552069,0.400552

bbox

An alternative method for setting the search area (see ll+spn).

The borders of the search area are defined as the geographical coordinates of the lower-left and upper-right corners of the area (in the order "longitude, latitutude").

Note. If bboxand ll+spn are both set at the same time, the bbox parameter takes priority.

Example: bbox=36.83,55.67~38.24,55.91

rspn

Indicates “strict” restriction of the search area.

If nothing was found in the search area (set using the ll + spn or bbox parameters), the service tries to find results outside of it. You can use the rspn parameter to disable searching outside of the defined area.

Possible values:

  • 0 — Do not restrict search. Used by default.
  • 1 — Do not search outside of the defined area.
results

The number of objects to return. By default, 10. The maximum value is 500.

Example: results=25.

skip

The number of objects to skip in the response (starting from the first one). The maximum value is 1000.

Example: skip=25.

callback

The name of the JavaScript function to pass the response to (by JSONP convention).

Example: callback=my_response_handler

apikeyThe key for accessing the service. You can get and manage keys in the Developer's Dashboard.
text

Text of the search query. For example, the name of a geographical feature, address, coordinates, business name, or phone number.

Examples (without URL encoding):

text=swan lake

text=55.750788,37.618534

text=Saint Petersburg, ul. Blohina, 15

text=+7 495 739-70-70

text=Yandex, Ltd.

type

Types of results returned. Possible values:

  • geo — Toponyms.
  • biz — Businesses.
  • omitted — Automatically detect the type based on the query text.

Example:

type=biz

langPreferred response language. Set as the locale ID in the format lang=language_region, where
  • language — Two-letter language code. Specified in ISO 639-1 format. Sets the language for displaying the names of found objects.
  • region — Two-letter country code. Specified in ISO 3166-1 format. It determines regional specifics such as units of measurement (for indicating the distance to a found object).
    Note. For the regions RU, UA and TR, distance is shown in kilometers; for US, it is shown in miles.

Supported values:

  • ru_RU — Russian
  • uk_UA — Ukrainian
  • be_BY — Belarusian
  • en_RU — United States
  • en_US — American English
  • tr_TR — Turkish

If the parameter has a locale value that is not in this list, the service selects the language closest to the one set.

Example: lang=uk_UA.

ll

The center of the search area. Defined by the longitude and latitude, separated by a comma. The longitude and latitude are indicated in degrees, represented as decimals.

It is used together with the spn parameter, which defines the size of the search area.

It is ignored during reverse geocoding.

Example: ll=37.618920,55.756994&spn=0.552069,0.400552

spn

The size of the search area. Defined using the span of the longitude and latitude, separated by a comma. The spans are indicated in degrees, represented as decimals.

It is used together with the ll parameter, which defines the center of the search area.

It is ignored during reverse geocoding.

Example: ll=37.618920,55.756994&spn=0.552069,0.400552

bbox

An alternative method for setting the search area (see ll+spn).

The borders of the search area are defined as the geographical coordinates of the lower-left and upper-right corners of the area (in the order "longitude, latitutude").

Note. If bboxand ll+spn are both set at the same time, the bbox parameter takes priority.

Example: bbox=36.83,55.67~38.24,55.91

rspn

Indicates “strict” restriction of the search area.

If nothing was found in the search area (set using the ll + spn or bbox parameters), the service tries to find results outside of it. You can use the rspn parameter to disable searching outside of the defined area.

Possible values:

  • 0 — Do not restrict search. Used by default.
  • 1 — Do not search outside of the defined area.
results

The number of objects to return. By default, 10. The maximum value is 500.

Example: results=25.

skip

The number of objects to skip in the response (starting from the first one). The maximum value is 1000.

Example: skip=25.

callback

The name of the JavaScript function to pass the response to (by JSONP convention).

Example: callback=my_response_handler