Description Usage Arguments See Also Examples
Retrieve pageview counts for a particular project.
1 2 3 4 5 6 7 8 9 10 |
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 "automated". "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. |
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.
1 2 3 4 5 | # Basic call
enwiki_1_october_pageviews <- project_pageviews()
# Break it down to hourly
enwiki_hourly <- project_pageviews(granularity = "hourly", end = "2015100123")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.