VisitsSummary.getVisits for multiple sites

Hi,

I use piwik to track multiple websites. I’m trying to get a combined report of the number of visits per month for all of the sites. Using method=VisitsSummary.getVisits&idSite=all&date=last12&period=month is:
a) Extremely slow (~30 seconds for 6 websites that are being tracked for 4 months with ~100 visitors per month each)
b) Doesn’t combine sites data to a single “result” node
c) Isn’t available in json format
This forces me parse the output of the API to merge all visits.

Is there a way to get this data using the API?
Is there an open bug related to this issue?

Thanks

  1. speed: it’s because the reports are processed when you ask for them, increase timeout in General Settings and eanble: How to Set up Auto-Archiving of Your Reports - Analytics Platform - Matomo

  2. not possible to combine

  3. the MultiSites.getAll API will be faster: http://demo.piwik.org/index.php?module=API&method=MultiSites.getAll&period=day&date=yesterday&format=json