I wonder if there is a way to extract the data from PIWIK per 5 minutes intervals instead of 1 day? I red the Analytic API user guide and found that
You can use the Analytics API to programmatically request reports (number of visits, page URLs, page titles, user settings, search engines, keywords, referrer websites, user browsers, etc.) for a list of websites, and a given date and period (day, week, month, year).
so it seems that there is no way to use minutes unit for period selections.