J
J
Julia Shestakova2015-09-02 18:43:14
Yandex.Metrica
Julia Shestakova, 2015-09-02 18:43:14

How to filter data through Yandex metrics api?

Making a request for popular content

https://api-metrika.yandex.ru/stat/v1/data?preset=popular&id={id}&oauth_token={token}&pretty=1

but it is not possible to filter the data in any way.
How to make sure that as a result there are only those pages that contain a certain substring in the address (in the 2ur domain)?
upd:
solution found

https://api-metrika.yandex.ru/stat/v1/data.json?&pretty=1&id={id}&oauth_token={token}&dimensions=ym:pv:URLPathLevel3&&metrics=ym:pv:pageviews&filters=ym:pv:[email protected]'{заданная_подстрока}'

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question