Lists the 100 most edited pages for a given project.

wx_top_edited_pages(
  project,
  editor_type = c("all", "anonymous", "user", "bot", "bot group"),
  page_type = c("all", "content", "non-content"),
  granularity = c("daily", "monthly"),
  start_date = "20191201",
  end_date = "20200101"
)

Arguments

project

The name of any Wikimedia project formatted like {language code}.{project name}, for example en.wikipedia. You may pass en.wikipedia.org and the .org will be stripped off. For projects like Wikimedia Commons (without language codes), use commons.wikimedia. For projects like www.mediawiki.org, you can use that full string, or just use mediawiki or mediawiki.org.

editor_type

If you want to filter by editor-type, use one of "anonymous", "group-bot" (registered accounts belonging to the bot group), "name-bot" (registered accounts not belonging to the bot group but having bot-like names) or "user" (registered account not in bot group nor having bot-like name). If you are interested in edits regardless of their editor type, use "all-editor-types" (default).

page_type

If you want to filter by page-type, use one of: "content" (edits made in content namespaces) or "non-content" (edits made in non-content namespaces). If you are interested in editors regardless of their page type, 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 Date or a POSIXt object, which will be auto-formatted.

end_date

The date of the last day to include, in YYYYMMDD format. Can also be a Date or a POSIXt object, which will be auto-formatted.

Value

A tibble data frame with the following columns:

project

project

date

Date; beginning of each month if granularity = "monthly"

page_name

page name; NOTE: in wikitext, the first letter of the target page is automatically capitalized

edits

number of edits

rank

edits-based ranking

License

Data retrieved from the API endpoint is available under the CC0 1.0 license.

See also

Examples

# Top edited articles on German Wikivoyage: wx_top_edited_pages("de.wikivoyage", page_type = "content")
#> # A tibble: 1,825 x 5 #> project date page_name edits rank #> <chr> <date> <chr> <int> <int> #> 1 de.wikivoyage 2019-12-01 Makedonien 13 1 #> 2 de.wikivoyage 2019-12-01 Anchorage 8 2 #> 3 de.wikivoyage 2019-12-01 Zeewolde 8 3 #> 4 de.wikivoyage 2019-12-01 Spremberg 7 4 #> 5 de.wikivoyage 2019-12-01 Heilbäder und Kurorte in Thüringen 6 5 #> 6 de.wikivoyage 2019-12-01 Heilbäder und Kurorte in Hessen 5 6 #> 7 de.wikivoyage 2019-12-01 Yonkers 5 7 #> 8 de.wikivoyage 2019-12-01 Sinntal 4 8 #> 9 de.wikivoyage 2019-12-01 EuroAirport Basel-Mulhouse-Freiburg 3 9 #> 10 de.wikivoyage 2019-12-01 Flughafen Lugano 3 10 #> # … with 1,815 more rows