Method calls

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.

Note.

Requests to the Yandex.Metrica API are transmitted over the HTTPS protocol.

Requests use the following format:

<method_type> https://api-.yandex.net/<API_section>/<version>/<method_name>.<result_format>?<parameters>

<method_type> ― GET, POST, PUT or DELETE.

<API_section> ― Name of the section of the API where the action is performed.

<version> ― Number of the current version of the API.

<method_name> ― URL of the resource that the action applies to.

<response_format> — Optional. It sets the format for results. By default, data is sent in JSON format.

<parameters> — Required and optional request parameters.