An API Client for Wikimedia Traffic Data

Pageview data from the 'Wikimedia' sites, such as 'Wikipedia' < https://www.wikipedia.org/>, 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

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:

install.packages("pageviews")

For the developer release:

devtools::install_github("ironholds/pageviews")

News

Version 0.3.0

BUG FIXES

  • 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.

FEATURES

  • 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.

NEW FEATURES

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

DEVELOPMENT

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

BUG FIXES

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

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.

install.packages("pageviews")

0.3.0 by Oliver Keyes, a year ago


https://github.com/ironholds/pageviews


Report a bug at https://github.com/ironholds/pageviews


Browse source code at https://github.com/cran/pageviews


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


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports jsonlite, httr, curl

Suggests testthat, knitr, rmarkdown, WikipediR, WikidataR


Suggested by WikidataR, WikipediR.


See at CRAN