waxer-package: waxer: Wikimedia Analytics Query Service (AQS) API

Description Definitions Wikimedia projects Author(s) See Also

Description

This is an R wrapper for the Wikimedia Analytics Query Service (AQS). The REST API provides cacheable and straightforward access to Wikimedia content and data, in machine-readable formats. This particular wrapper is for the /metrics endpoint.

Definitions

Editor type

The editor_type parameter in functions allows you to filter the type of editors having performed the related action. Can be anonymous for users not logged in, bot group for logged in users that are part of the bot group, bot for logged in users whose name contains bot (high probability of being a bot, even if counter examples exists), and user for logged-in users not in bot group nor bot sets. Finally, you can use all to not filter by editor type.

Page type

The page_type parameter in functions allows you to filter for the type of page over which the action is performed. Can be content for pages belonging in content namespaces, also known as "main" namespaces. This page type is also referred to as articles, and for most wikis includes pages in namespace 0 only. Can also be non-content for pages in namespaces not considered content (talk pages, user pages etc). Finally, you can use all to not filter by page type.

Wikimedia projects

The package comes bundled with a list of active Wikibooks, Wikinews, Wikipedia, Wikiquote, Wikisource, Wikiversity, Wikivoyage, and Wiktionary wikis.

1
wikis <- read.csv(system.file("extdata/wikis.csv", package = "waxer"))

The columns are:

language

e.g. "English", "Arabic"

language_code

e.g. "en", "ar"

project_code

e.g. "wikipedia", "wikibooks"

url

e.g. "en.wikipedia.org", "ar.wikibooks.org"

direction

e.g. "left-to-right", "right-to-left"

This dataset was generated from the Wikimedia site matrix.

Author(s)

Maintainer: Mikhail Popov mikhail@wikimedia.org

Other contributors:

See Also

Useful links:


bearloga/waxer documentation built on Nov. 28, 2020, 11:28 p.m.