An API Client for Wikimedia Traffic Data

Pageview data from the 'Wikimedia' sites, such as 'Wikipedia' <>, from entire projects to per-article levels of granularity, through the new RESTful API and data source <>.

An API client library for Wikimedia traffic data.

Author: Oliver Keyes
License: MIT
Status: Stable

Build Status downloads

pageviews provides data from the new Wikimedia RESTful API for pageview data. It allows you to retrieve per-article, per-project, and top-1000 pageview data covering a wide range of times and with filtering around the user's class and platform.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.


For the stable release:


For the developer release:



Version 0.3.0


  • Article titles are now percent-encoded before the GET request is sent. Thanks to Thomas Willi for providing the bug report.
  • Support for "all" as a months option is deprecated since nobody will be able to use it until early 2017. Thanks to Jeremiah Lewis for the bug report.


  • pageview_timestamps is now used internally, meaning you can pass a date, time or character string to the API calls and it'll try to work out what you want. Thanks to Jeremiah Lewis for the patch.

Version 0.2.0


  • A new function, "pageview_timestamps", which allows you to format R Date/Time objects for the start and end parameters in pageviews functions.


  • Error messages clarified to report when a request fails due to an absence of data (thanks to ThomasWilli for reporting it).

Version 0.1.1


  • Updated the formatting logic to factor in changes to the JSON provided by the server.

Version 0.1.0

Initial release

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.5.0 by Os Keyes, a year ago

Report a bug at

Browse source code at

Authors: Os Keyes [aut, cre] , Jeremiah Lewis [ctb]

Documentation:   PDF Manual  

MIT + file LICENSE license

Imports jsonlite, httr, curl

Suggests testthat, knitr, rmarkdown, WikipediR, WikidataR

Imported by wikipediatrend.

Suggested by WikidataR, WikipediR.

See at CRAN