Looking for a Google Analytics alternative (to interact with)

Hi! I’m looking for an alternative to Google Analytics. Something easier to understand and - most of all - easier to interact with, programmatically.

Beyond counting how many pageviews / sessions / visists etc my sites do, I have a pretty simple need: I want an api to get 'the most viewed pages in the last xx days".

Currently Im using my own counter, a little piece of software I want to get rid of (it would need to be optimized, but I don’t have the time to rewrite it).

Any suggestion? I’ve seen there are a few plugins for Fathom, Plausible, Matomo, but I don’t know if they can be queried just like I need to do.

Thanks
Francesco

Maybe a Self hosted Instance of https://umami.is/ or https://ackee.electerious.com/

Did you have a look at Matomo?
Pretty easy implementation and a Kirby plugin as well. Free and self hosted for basic usage.

I think most of these platforms come with an API.

But at least the Plausible and Fathom Kirby plugins don’t access the API but just include an iframe in the Panel, so they do not provide what you are looking for.

Thanks - that was exactly my doubt. Searching among the plugins, I discovered this one too from @bnomei that could also work for my case… Pageview Counter | Kirby CMS Plugins