Presets

Presets (preset) automatically set the metrics and dimensions that are required for a report.

For example, to get data for a report on browsers, use the tech_browsers preset:

https://api-metrica.yandex.net/stat/v1/data.csv?id=44147844&preset=tech_browsers&limit=5

You can use presets with all the API methods.

In a request, presets can be used together with metrics and dimensions. In this case, an explicitly defined parameter takes priority over a preset parameter.

Use presets to create Yandex Metrica reports that are available in the web interface:

Preset usage examples

For examples, see the Examples.Presets section.

Previous