API Live.getCounters not working with siteId= all?

Hi,

New to the community but not to Piwik. Lovin’ it! I’m getting more and more into the api and getting great results.

I want to use the Live.getCounters statistics, but where all other calls work with idSite=all it’s not working here, is that right? Would be awesome to get all the live visitors of all websites… Otherwise i have to make lot’s of API calls am i right?

Hope there is a solution for just one call.

Cheers,

“Silver”

Hi Silver,

Correct, it’s a known issue see: Bug in calling method Live.getCounters (and similar methods) when number of sites more than 1 · Issue #8533 · matomo-org/piwik · GitHub

please leave a comment there to make your voice heard :slight_smile:

Yes i have made a comment there some API methods (eg. Goals.getGoals, Live.getCounters) are broken for multiple idSites · Issue #8574 · matomo-org/piwik · GitHub hope it gets fixxed.