Description Usage Arguments Value License See Also Examples
Lists the 1000 most viewed pages for a given project and timespan (month or day).
1 2 3 4 5 6 7 | wx_top_viewed_pages(
project,
access_method = c("all", "desktop", "mobile web", "mobile app"),
granularity = c("daily", "monthly"),
start_date = "20191101",
end_date = "20191231"
)
|
project |
The name of any Wikimedia project formatted like
|
access_method |
If you want to filter by access method, use one of: "desktop", "mobile app", or "mobile web". If you are interested in pageviews regardless of access method, use "all" (default). |
granularity |
The time unit for the response data. As of today, supported values are daily (default) and monthly. |
start_date |
The date of the first day to include, in YYYYMMDD format.
Can also be a |
end_date |
The date of the last day to include, in YYYYMMDD format.
Can also be a |
A tibble data frame with the following columns:
date
Date
; beginning of each month if granularity = "monthly"
project
project
page_name
page name; NOTE: in wikitext, the first letter of the target page is automatically capitalized
views
number of page-views (see meta:Research:Page view for more information on what is considered a page-view)
rank
views
-based ranking
Data retrieved from the API endpoint is available under the CC0 1.0 license.
Other traffic data & metrics:
wx_page_views()
,
wx_project_views()
,
wx_unique_devices()
1 | wx_top_viewed_pages("en.wikipedia")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.