Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API method getPageUrls doesn't return all the pages #13619

Closed
MatG01 opened this issue Oct 16, 2018 · 3 comments
Closed

API method getPageUrls doesn't return all the pages #13619

MatG01 opened this issue Oct 16, 2018 · 3 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@MatG01
Copy link

MatG01 commented Oct 16, 2018

I recently switched from Matomo 2.x to 3.6 and I have this problem, which worked under 2.x

This API call
https://example.com/piwik/index.php?module=API&method=Actions.getPageUrls&token_auth=xxxxx&idSite=1&flat=1&filter_sort_column=nb_hits&showColumns=label,nb_hits&format=JSON&period=range&date=2018-09-01,2018-10-01&filter_limit=-1&segment=pageUrl=@%2Fpage%2F
used to give me all the the hits on URLs /page/... (about 30000 URLs)
Now I only get around 400 URLs labeled "/page/page1", "/page/page2" a.s.o.
Additionally I get one entry labeled "/page/ - Others" which seemingly is the accumulation of all the missing URLs. How can I get rid of this accumulation and get the complete set of raw data instead?

I'm aware of the filter_truncate parameter, which does a similar thing by returning an accumulating entry labeled "Others". However, the label I get is a bit different, and I'm not using the filter_truncate parameter.

Many thanks in advance for any advice.

@oscarfroberg
Copy link

I am also having similar issues. I'm using method=Actions.getPageUrls&idSite=1&period=range&date=last30&format=JSON but getting significantly less results than from the GUI.

@tsteur
Copy link
Member

tsteur commented Dec 3, 2018

@oscarfroberg you need to set filter_limit=-1. @MatG01 check out https://matomo.org/faq/how-to/faq_54/

@tsteur tsteur closed this as completed Dec 3, 2018
@tsteur tsteur added the answered For when a question was asked and we referred to forum or answered it. label Dec 3, 2018
@oscarfroberg
Copy link

oscarfroberg commented Dec 3, 2018

Sigh. Here's the full request:

?module=API&method=Actions.getPageUrls&idSite=263&date=last30&period=range&filter_limit=-1&filter_sort_column=nb_hits&token_auth=[TOKEN]&format=json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

3 participants