Connecting to API Yandex ID

Using API Yandex ID, you can load user data automatically from their Yandex account. This makes logging in to your website easier, because the user won't have to create a new account and fill out additional forms.

To set up authorization using API Yandex ID, prepare your app for working with the OAuth 2.0 protocol:

  1. Register your app in the service Yandex OAuth.

  2. Set up app access to Yandex ID. To do this, obtain the user's consent to work with the app and use one of the following methods to request an OAuth token:

    • To boost conversion and make logging in easier, enable the instant authorization widget script on your website. If you don't like the widget appearance, you can use the script for enabling a personal button.

      Tip

      Use the widget to improve conversion on your website.

    • Set up token request via the API in your app. In this case, the user will have to enter a confirmation code. Using this method, you can enable authorization on various platforms, including console applications and multimedia devices, such as Smart TV.

      You can display the link to request access as an HTML button with the Yandex logo.

    • If the app is at the development or testing stage, you can use a debug token. You don't need a verification code to get a debug token.

    • For mobile devices, use the SDK Yandex ID libraries.

  3. Get information about the user to use it further in your app - for example, to set up their personal account.