B
B
bbaggins2017-08-15 11:00:23
API
bbaggins, 2017-08-15 11:00:23

How to pass several pages to the 'filters' parameter of the Ya.Metrika API?

Friends, hello everyone!
Tell me how in Yandex Metrica to make a selection not on one page, but on several? Those. how to pass several pages to the 'filters' parameter.
$url = ' https://api-metrika.yandex.ru/stat/v1/data ';
$params = [
'ids' => '0000000000000',
'oauth_token' => '0000000000000000000000000000000000000000',
'metrics' => 'ym:pv:pageviews',
'dimensions' => 'ym:pvfilters:date', 'dimensions' => 'ym:pvfilters:date',
' ' => rawurldecode("ym:pv:URL==' https://yandex.ru/ '"),
'date1' => '30daysAgo',
'date2' =>
Or loop through each page you need and do the consolidation?

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