VisitsSummary.getVisits for multiple sites


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?


  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: