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)
httrGetJSON(url)
A JSON response. Please check httr::stop_for_status(response)
The URL with the query to the API.
Angel Zazo, Department of Computer Science and Automatics, University of Salamanca