T144865: Add pageview stats to the action API would add an abstract pageview service (see T144865#2633788) after which it would be trivial to make WikimediaPageViewInfo non-Wikimedia-specific, so after discussion with @Legoktm I'd like to use that extension for the API module, and rename it to make clear it can be used on other wikis.
Extension renames suck, but this one has not been deployed anywhere yet, and is WMF-only, so it should not be that bad.