In order to use the AppMetrica API, you need to get an access token from the Yandex.OAuth service. The token must be sent with all method requests in the HTTP Authorization header.


curl -X GET \ \
  -H 'Authorization: OAuth 05dd3dd84ff948fdae2bc4fb91f13e22bb1f289ceef0037'
Copied to clipboard
Attention. Sending the token in the URL parameters is not supported.

If an API method is called without a token, or the request includes an invalid token, the server returns the HTTP status 401 Unauthorized.

Obtaining the OAuth token

To get an access token:

  1. In the Platforms section, select Web services and click Set URL for development.
  2. In the Accesses section, select AppMetrica (appmetrica) and enable all access rights:

  3. Get a debugging token using the link that looks like this:<app ID>
    The ID is available in the application properties (click the name of the application to open its properties).

For more information, see OAuth documentation.