Analyzing Wikipedia Pageviews with R: Statistics Articles Lose More Than Half Their Readers in Four Years
Using R and the Wikimedia REST API, the author found that human pageviews for 45 statistics articles fell 56%, from 26.1 million in the 2021–22 academic year to 11.5 million in 2025–26. Over the same period, pageviews for mathematics and science articles declined 37%, those for general-interest articles fell 23%, and English Wikipedia overall dropped 4%. The article also explains that `agent = "user"` should be used to exclude bot traffic and that breaks in pageview time series caused by article renames must be addressed. The data can show only that visits decreased; it cannot determine whether readers switched to AI assistants or search summaries.
Why read this
AI score 71
The article demonstrates how to retrieve and clean Wikimedia pageview data using R, while also explaining how bot traffic and page renames can distort long-term trends.
AI Trends