url_all_results {priceR} | R Documentation |
Generate a World Bank API URL that will return all results for a given indicator in JSON format
Description
results and returns JSON format
Usage
url_all_results(original_url)
Arguments
original_url |
A World Bank API URL. E.g. "http://api.worldbank.org/v2/country". |
Value
A character vector
Examples
# Provide a World Bank API URL and `url_all_results` will convert it into one with all results
# for that indicator
## Not run:
original_url <- "http://api.worldbank.org/v2/country" # Note: no ?format=json on url
url_all_results(original_url)
## End(Not run)
# "http://api.worldbank.org/v2/country?format=json&per_page=304"
[Package priceR version 1.0.1 Index]