Accessing the API

The Yandex Partner interface uses OAuth access tokens to authorize applications. Each token gives the application access to user data. The statistics API and the in-app advertising API use different OAuth tokens:

  • To get a token for statistics, use one of the following methods:

    • Follow the link and log in to the account that you registered with in the Yandex Advertising Network.
    • In the Yandex Advertising Network interface, click the API icon on the right and select Receive an OAuth token for the Statistics API.
  • To get a token for in-app advertising, in the Yandex Advertising Network interface, click the API icon on the right and select Receive an OAuth token for the Block Configuration API.

Using tokens

The tokens received should be passed in every API call.

You can pass the token in the HTTP Authorization header and specify its type before the value:

Authorization: OAuth e78cf1a0ebbb19...