httrGetJSON {wikiTools} | R Documentation |
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)
Arguments
url |
The URL with the query to the API. |
Value
A JSON response. Please check httr::stop_for_status(response)
Note
Used in m_Pageviews
Author(s)
Angel Zazo, Department of Computer Science and Automatics, University of Salamanca
[Package wikiTools version 1.2.7 Index]