Errors

Attention.

Access tokens will not be accepted in URL parameters starting February 13, 2019. To continue working with the Yandex.Metrica API, set up authorization by passing the token in the HTTP header.

The outdated authorization method will be temporarily disabled on January 23, January 30, and February 6 for maintenance. Authorization using URL parameters will be unavailable on these dates.

This section contains the format of the response with a description of the error, as well as the list of errors which are returned by API methods, compatible with Google Analytics Core Reporting API (v3).

Error format


{
    "error" : {
        "code" :  < int > ,
        "message" :  < string > 
    }
}
Parameters Description
error no description
error
code HTTP-error code
message Error description

Error types

Error type Description
invalidParameter (400)

Incorrect value of request parameter specified.

The locationType and location fields contain information on which parameter an error was detected in.

badRequest (400) Error in request. For example, an invalid combination of dimensions and metrics was specified.
invalidCredentials (401) Action of authorization token has expired or token is invalid.
quotaExceeded (403) Exceeded quota on number of parallel requests.
backendError (503) Server has returned an error message.