API VisitsSummary.getVisits access bug


When using the API, VisitsSummary.get returns just what I’m looking for but any other VisitsSummary methods (I’ve tried getVisits and getUniqueVisitors) get me an error: “you can’t access this resource as it requires an ‘view’ access for the website id”.

I’m using the &token_auth query string with an admin token. I’ve tried with another user I granted rights to view my website, same problem.

Thanks for your help

Hi there, it’s possible that there is a bug. Can you reproduce this issue on our demo.piwik.org ? (idsite = 3 is publicly viewable) Can you create a bug report @ Issues · matomo-org/piwik · GitHub ?

Hi matthieu and thanks for the answer.
I tested on the demo url and it worked… http://demo.piwik.org/index.php?module=API&method=VisitsSummary.getUniqueVisitors&idSite=3&period=day&date=2015-8-01&format=PHP&token_auth=

How do I configure the publicy viewability (?) of a site?

See How do I make Piwik report data public and viewable by anyone? - Analytics Platform - Matomo