Learn R Programming

wikiTools (version 1.2.8)

httrGetJSON: httrGetJSON Retrieve responses in JSON format using httr::GET. It is a generic function to use for request these Wikimedia metrics API: https://wikimedia.org/api/rest_v1/ https://www.mediawiki.org/wiki/XTools/API/Page (xtools.wmflabs.org)

Description

httrGetJSON Retrieve responses in JSON format using httr::GET. It is a generic function to use for request these Wikimedia metrics API: https://wikimedia.org/api/rest_v1/ https://www.mediawiki.org/wiki/XTools/API/Page (xtools.wmflabs.org)

Usage

httrGetJSON(url)

Value

A JSON response. Please check httr::stop_for_status(response)

Arguments

url

The URL with the query to the API.

Author

Angel Zazo, Department of Computer Science and Automatics, University of Salamanca