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

Live API: getLastVisitsDetails limit Parameter does not work #1810

Closed
anonymous-matomo-user opened this issue Nov 11, 2010 · 3 comments
Closed
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.
Milestone

Comments

@anonymous-matomo-user
Copy link

The getLastVisitsDetails of the LIVE Modul is limited to 25 rows by default.
I need to get all data for a specific date.
So I tried several things:

  1. Set the limit parameter to -1 which does not work.
  2. Set the limit paramter to 1000 just returns the first 50 entries.
  3. Setting the limit to the number of visits for the period (e.g. 256) also just return the first 50 entries.

http://localhost/piwik/index.php?module=API&method=Live.getLastVisitsDetails&idSite=1&period=day&date=2010-09-01&limit=100&format=xml&token_auth=****

We are using Piwik 1.0.

@robocoder
Copy link
Contributor

I believe this is a timezone problem, rather than a "limit" problem. See #1769.

@anonymous-matomo-user
Copy link
Author

Replying to vipsoft:

I believe this is a timezone problem, rather than a "limit" problem. See #1769.

Sorry, but I think this is not a timezone problem.
I searched the net for an "open" piwik installation with the live module enabled and found this one
http://bwrcs.eecs.berkeley.edu/piwik/index.php?module=API&method=Live.getLastVisitsDetails&idSite=1&format=xml&token_auth=anonymous&limit=1000

At the moment of the requesting the live visitors the getVisits method returned 772 visits. But the Live.getLastVisitsDetails request just returns the last 50 rows.

I can see that the berkeley research page is not using piwik 1.0, but we have the same issue in our 1.0 installation.

@robocoder
Copy link
Contributor

My mistake. This is subject to the "API_datatable_default_limit" setting in global.ini.php.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. worksforme The issue cannot be reproduced and things work as intended.
Projects
None yet
Development

No branches or pull requests

3 participants