project_pageviews {pageviews} | R Documentation |
Retrieve Per-Project Pageview Counts
Description
Retrieve pageview counts for a particular project.
Usage
project_pageviews(
project = "en.wikipedia",
platform = "all",
user_type = "all",
granularity = "daily",
start = "2015100100",
end = NULL,
reformat = TRUE,
...
)
Arguments
project |
the name of the project, structured as |
platform |
The platform the pageviews came from; one or more of "all", "desktop", "mobile-web" and "mobile-app". Set to "all" by default. |
user_type |
the type of users. one or more of "all", "user", "spider" or "bot". "all" by default. |
granularity |
the granularity of data to return; do you want hourly or daily counts? Set to "daily" by default. |
start |
the start |
end |
the end |
reformat |
Whether to reformat the results as a |
... |
further arguments to pass to httr's GET. |
See Also
old_pageviews
, for 2008-2016 data, top_articles
for the top articles
per project in a given date range, and article_pageviews
for per-article pageviews.
Examples
# Basic call
enwiki_1_october_pageviews <- project_pageviews()
# Break it down to hourly
enwiki_hourly <- project_pageviews(granularity = "hourly", end = "2015100123")