R
R
rinaz222019-12-13 17:39:31
API
rinaz22, 2019-12-13 17:39:31

How to get popular pages through Yandex Metrics API?

Hello! I have an online store. I want to know which products are the most popular and for this I want to use Yandex metrics, namely to get popular products, i.e. products with the highest number of visits.
How can I get this data via API?
The goods have a trace. url:
site.ru/product?name=airpods

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Araik, 2019-12-14
@NinjaNickName

https://yandex.ru/dev/metrika/
Yandex.Metrika API documentation
Example Content analytics. Material report:

dimensions=ym:s:publisherArticle
metrics=ym:s:publisherviews
filters=(ym:s:publisherArticle!n)
sort=-ym:s:publisherviews

https://api-metrika.yandex.net/stat/v1/data?ids=44...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question