httrGetJSON: httrGetJSON Retrieve responses in JSON format using...

View source: R/wiki_utils.R

httrGetJSONR 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


wikiTools documentation built on April 3, 2025, 9:38 p.m.