Yandex.Maps Geocoder API

Geocoding / API Key Intermediate HTTPS
Varies by plan (check documentation)

Overview

Yandex.Maps Geocoder converts addresses into geographic coordinates and vice versa, with strong coverage for Russia and CIS countries. The API supports forward geocoding (address to coords), reverse geocoding (coords to address), and returns structured address components. It is a good alternative to Google Maps for applications targeting Eastern European and Central Asian regions.

💡

Beginner Tip

Set the format=json parameter to get a JSON response instead of the default XML. Use geocode for a street address and include your API key as the apikey parameter.

Available Data

IP address details
latitude and longitude
city and country
timezone
ISP information

Example Response

JSON Response
{
  "status": "success",
  "data": {
    "result": "Data from Yandex.Maps Geocoder",
    "description": "Use geocoding to get an object's coordinates from its address",
    "timestamp": "2025-01-15T10:00:00Z"
  }
}

Field Reference

GeoObjectCollection.featureMember List of matching geographic objects found for the query.
GeoObject.Point.pos Longitude and latitude of the result as a space-separated string.
GeoObject.metaDataProperty.GeocoderMetaData.kind Type of geographic object, such as house, street, or locality.
GeoObject.metaDataProperty.GeocoderMetaData.precision Precision level of the match, e.g. exact, street, or city.
GeoObject.metaDataProperty.GeocoderMetaData.text Full formatted address string of the matched location.

Implementation Example

const url = "https://yandex.com/dev/maps/geocoder";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
  headers: {
  "X-API-Key": "YOUR_API_KEY"
  }
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

403 Forbidden The API key is invalid, expired, or does not have geocoding permissions.
Create a project in the Yandex Developer Console and enable the Geocoder API for your key.
Zero results (featureMember is empty) The address could not be found in the Yandex database.
Try simplifying the address, removing building numbers, or switching to a city-level query first.
XML response instead of JSON The format parameter was omitted or set incorrectly.
Add format=json to your query string to receive a JSON response.

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 15/20
🔒 Security 15/15
🛠 Developer XP 12/20
✓ Reliability 10/15

Partially tested on Apr 5, 2026

Technical Specifications

Auth API Key
HTTPS REQUIRED
CORS UNKNOWN
Category Geocoding
Difficulty Intermediate
Verified: 2026-04-07

Similar APIs

View All →