Hi MediaWiki API mailing list!

I have a question about how the pageview metrics for Wikimedia commons images accumulate– are they the total view count of that image anywhere, or just when embedded in commons?

More detail:

I'm working with WikiLovesAfrica on a project to calculate how many times each image has been viewed over a period of time, and I've been prototyping data collection using the following endpoint (with the mwviews.api  PageviewsClient):

https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/commons.wikimedia.org/all-access/all-agents/File%3AIMAGE_FILENAME/monthly/2014010100/2019011800

My assumption is that since commons images are hosted from the commons, the returned value will be the total view count of that image, wherever it is being embedded, including all wikis. Is that correct?

If it's not the across-wiki count, is there a way to get that across-wiki count?

All the best,
--
J. Nathan Matias : Princeton University : CivilServant : MIT Media Lab : @natematias : blog