Page MenuHomePhabricator

Gather visitation stats via action API
Closed, InvalidPublic

Description

Context

Wikimedia publishes keys stats across all its projects. for example: https://stats.wikimedia.org/#/en.wikipedia.org

my understanding is these are available and sourced via the action api.

Goal

gather useful visitation and usage stats which are available in the action api.

Acceptance criteria:

collect the following

  • page views to home page and/or instance overall (at whatever frequency and historic depth is available)
  • unique device visits to home page and/or instance overall
  • page views by country
  • edited pages

Event Timeline

RickiJay-WMDE changed the subtype of this task from "Spike" to "Task".Aug 21 2024, 9:01 PM

my understanding is these are available and sourced via the action api.

Some of these metrics might be availible in some form from the action api, such as active users etc.
However many metrics (such as page views) that are linked on that site are generated elsehwere, far outside of MediaWiki.
The basic metrics can indeed be retrieved from the api https://www.mediawiki.org/wiki/API:Siteinfo#Statistics
such as https://github.com/addshore/wikibase.world/blob/1fac6bd32c25c997029a4b0216939418412c6aa4/cmd/tidy-world.js#L510

So possibly the only one from the described checklist you can retrieve is edited pages

Leif_WMDE renamed this task from Gather visitation stats via action API to Gather visitation stats via action API.Nov 24 2025, 4:13 PM
Leif_WMDE closed this task as Invalid.