RU Русская версия

How to get a Yandex Maps API key for your website

A step-by-step guide with screenshots: a free JavaScript API key in 10 steps. The key is issued to your own Yandex account, so access to it stays with you.

  • 10 stepsguide
  • 4 minread

Published by Sergey Polyakov

Sites that work with customers in Russia usually show Yandex Maps rather than Google Maps: Yandex has more detailed coverage of Russian cities, addresses, and businesses, and it is a Russian service, which keeps visitor data within the country. To show a Yandex map on your site without ads or extra buttons, you need a Yandex Maps JavaScript API key. The key is issued to the site owner’s Yandex account, so you keep access to it even if you change contractors.

Below are all the steps with screenshots. You need a Yandex account and your site address. The key is free.

The Yandex Maps developer dashboard is in Russian, as are the screenshots. In the text, button and field names are given in English translation, in the order you see them on screen.

Tip

Use a company account rather than an employee’s personal account. If the employee leaves, the key stays with the company.

1. Sign in to the Yandex Maps API dashboard

Open the Yandex Maps API dashboard. If you are not signed in to Yandex yet, the Yandex ID page opens. Sign in with your account by email, phone, or QR code. If you do not have an account, click the button to create a Yandex ID.

Yandex ID sign-in page

2. Find the JavaScript API product

On the dashboard home page, scroll down to the All products block. In the Maps section, find the card “JavaScript API: interactive map for a website”.

Yandex Maps API dashboard home page, All products block

3. Click Connect

Hover over the JavaScript API card: a Connect button appears at the bottom. Click it.

Choose JavaScript API specifically. The Geocoder and other products are separate services with their own keys and will not work for a map on a site.

Connect button on the JavaScript API card

4. Choose your country

Yandex asks for the country where you are a tax resident. Choose your country and click Continue. The country cannot be changed later, so double-check your choice. Plans and payment options depend on the country; this guide shows the free plan for Russia.

Country selection dialog with Russia selected

5. Choose the free plan

The plans page opens. A paid plan is selected at the top by default. Scroll down and select the Free plan.

Free plan selected

6. Accept the terms and connect

Scroll back up. In the block on the right, the Total line should show 0. Check the box “I accept the Yandex Maps API terms of use” and click Connect.

Total is 0, terms accepted, Connect button

7. Check that the key was created

The JavaScript API product page opens with the status Active and the free plan. At the bottom, in the Keys block, a key named Key #1 appears with the status Not configured. It will not work on a site yet: first you need to enter the site address.

JavaScript API connected, Key #1 with the status Not configured

8. Open the key settings

In the left menu, choose Keys. In the key row, click the three dots on the right and choose Configure.

Key menu with the Configure item

9. Enter the site address

The Key settings panel opens on the right.

  • In the Key name field, enter a clear name, such as the site address.
  • In the HTTP Referer restriction field, enter the site domain without https:// and without a trailing slash, for example example.com.
  • Click Add field below it and enter the same address with www, for example www.example.com.
  • Leave the IP address restriction field empty.

Click Save.

Key settings: name and two addresses in the HTTP Referer restriction

10. Copy the key

The key status changes to Active. Copy the key value with the button showing two squares next to it. This key goes into the map code on the site, or you send it to your developer.

Key with the status Active, copy button next to the value

The key starts working 15 minutes after setup. If you add the map to your site earlier, Yandex responds with an error and the map does not appear.

Good to know

  • Without a site address, the key does not work. The new version of the JavaScript API accepts only keys with an HTTP Referer restriction filled in.
  • Changes take effect in 15 minutes. This applies both to a new key and to editing the addresses in its settings.
  • The key can be shared. It is not a password: the key value is visible in the page code, and the site address restriction is what protects it. Your key will not work on another site.
  • The free plan has a daily request limit. The limit and your usage are shown on the product page in the dashboard. If the limit is exceeded regularly, Yandex blocks access, so switch plans there with the Change plan button as traffic grows. If the site has more than 100,000 visitors a day, the Yandex terms require you to contact Maps API support before you start.
  • Terms of free use. The site must be open to all visitors. The Yandex logo and the Open in Maps button on the map must not be hidden.
  • A new site or subdomain. If the site moves to a new address, add it to the key restrictions the same way as in step 9.

Next step: how to style the map to match your site design.

Yandex documentation

  1. JavaScript API quick start: getting a key, Yandex Maps API (in Russian).
  2. Setting up API key restrictions, Yandex Maps API (in Russian).
  3. JavaScript API: features and plans, Yandex Maps API (in Russian).
  4. Terms of free API use, Yandex (in Russian).
  5. Yandex Maps API terms of use, Yandex (in Russian).
  6. Yandex Maps API dashboard.

More articles

Step-by-step guides: domain, hosting, email, maps, and MODX setup.

All articles

Let’s talk

Need a map on your site? Let us know, and we will set it up with your key and style it to match your site.

  • Emailinfo@studiops.ru
  • Messaging app
  • OfficeBalashikha, Moscow Region, Russia
    Mon–Fri, 8 a.m.–5 p.m. Moscow time (UTC+3)
What can we help with?