Is it possible to set Period or Date argument with time?


Hi everyone,

I’ve been working with the piwik api for quite a few days and I wanted to know if it was possible to pass argument period or date (like in the method Actions.getPageUrls) that would be something else than only ‘days’ unit. I want to check the visit on my page from the last date I confirmed something on a web page (that last date’s format would be YYYY-MM-DD HH:MM:SS) and set the period to one month before that confirmation date (so for example period would be a month and the confirmation date is 2015-08-05 18:40:00 i want to check for a month period until 2015-07-05 18:40:00).

Thank you very much in advance for any help you could provide me !

If anything is unclear please notify it to me !

Edit : i just thought about that, I may have another way out so i should ask for so: is it possible to get all the timestamp of actions on a given URL ? (like get every date (YYYY-MM-DD HH:MM:SS) for every nb_hits on my page)

(Matthieu Aubry) #2

Hi there,

Check the “date” parameter documentation at: Reporting API Reference: API Reference - Matomo Analytics (formerly Piwik Analytics) - Developer Docs - v3