Matomo doesn't even collect per page info, so I'm not exactly sure how this would really be doable here. Although this is a bit out of my expertise. Do you have any suggestions here, since you are the developer of PageViewInfoGA?
Oops, I didn't know that. Then, we could still implement siteviews and mostviewed APIs as a PageViewService subclass can choose which statistics it supports. If there is no data for that too, I would agree this task is not a doable thing.
Matomo doesn't collect enough information for doing this to be fully worthwhile in my opinion, as it wouldn't provide the best stats that are actually useful to users. Nothing beyond what MatomoAnalytics can already do. So I'm not really sure how to go about this task.
I have a question: When I google it, there are search results describing pageviews of Matomo. Is it what you said the instance of Miraheze especially does not collect pageviews by the policy? (I'm sorry for not having experience with Matomo)