Skip to contents

Get JSON from an API

Usage

getJSON(url)

Arguments

url

character(1). Uniform Resource Locator (URL).

Value

list.

Note

Updated 2020-01-05.

Examples

## Access the UCSC Genome Browser API.
url <- "https://api.genome.ucsc.edu/list/ucscGenomes"
json <- getJSON(url)
names(json)
#> [1] "downloadTime"      "downloadTimeStamp" "dataTime"         
#> [4] "dataTimeStamp"     "ucscGenomes"