Number of edits for given page(s) and timespan. Note: Due to performance of the data-serving backend, this API endpoint limits the queryable timespan to one year (whether in daily or monthly granularity).
wx_page_edits( project, page_name, editor_type = c("all", "anonymous", "user", "bot", "bot group"), granularity = c("daily", "monthly"), start_date = "20191101", end_date = "20200101" )
| project | The name of any Wikimedia project formatted like
|
|---|---|
| page_name | The title of any article in the specified project.
The function takes care of replacing spaces with underscores and
URI-encoding, so that non-URI-safe characters like %, / or ? are accepted
-- e.g. "Are You the One?" becomes "Are_You_the_One%3F". Internally this
is done with a non-exported |
| 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). |
| 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:
projectproject
page_namepage name
dateDate
editsNumber of edits made to the page
For "monthly" granularity, the start_date and end_date need to contain
the full month.
For example, start_date = "20191101" and
end_date = "20191231" would only give the monthly total for 2019-11. To
include 2019-12, use end_date = "20200101".
Frustratingly, start_date = "20191201" and end_date = "20191231" does
not yield 2019-12 monthly total. Use end_date = "20200101" for that.
Data retrieved from the API endpoint is available under the CC0 1.0 license.
Other content data & metrics:
wx_edited_pages(),
wx_mediareqs_file(),
wx_mediareqs_referer(),
wx_most_requested_files(),
wx_new_pages(),
wx_project_edits(),
wx_top_edited_pages(),
wx_total_pages()
if (FALSE) { wx_page_edits( "en.wikipedia", c("Animal Crossing: New Horizons", "Animal Crossing"), granularity = "monthly", start_date = "20190101", end_date = "20191231" ) }