Skip to content

Get data from the Wikimedia REST API

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

clessn/wikirest

Repository files navigation

wikirest

Lifecycle: experimental CRAN status R-CMD-check Codecov test coverage

The goal of wikirest is to get data from the Wikimedia REST API.

Installation

You can install the development version of wikirest from GitHub with:

# install.packages("devtools")
devtools::install_github("clessn/wikirest")

Example

library("wikirest")

get_most_viewed_per_country(
  country = "CA",
  access = "all-access",
  date = "2022-01-01",
  tidy = TRUE
) |>
  utils::head()
#> # A tibble: 6 × 9
#>   country access     year  month day   article          project views_ceil  rank
#>   <chr>   <chr>      <chr> <chr> <chr> <chr>            <chr>        <int> <int>
#> 1 CA      all-access 2022  01    01    Main_Page        en.wik…     212200     1
#> 2 CA      all-access 2022  01    01    Betty_White      en.wik…     156900     2
#> 3 CA      all-access 2022  01    01    Special:Search   en.wik…      57900     3
#> 4 CA      all-access 2022  01    01    Journey_(band)   en.wik…      36300     4
#> 5 CA      all-access 2022  01    01    Wikipédia:Accue… fr.wik…      27900     5
#> 6 CA      all-access 2022  01    01    Arnel_Pineda     en.wik…      26000     6

Usage

For API documentation, terms of service and licensing information, see wikimedia.org/api/rest_v1/.

About

Get data from the Wikimedia REST API

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages