Introduction

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.

You can use the Logs API to get non-aggregated data that is collected by Yandex.Metrica. This API is for Yandex.Metrica users who want to process their own statistics and use the data for unique analytical tasks.

You can use Yandex ClickHouse for storing and managing the data you receive from the Logs API.

To use this API, you must get authorization using an access token. The access token must be specified in every API request.

The total volume of data that can be transmitted in requests (including logs that haven't been deleted from storage) is 10 GB per Yandex.Metrica counter.

Statistics for the current day might not be complete. We recommend getting data for the previous day or an earlier period.