powered by
This function retrieves the content length of a file to be downloaded from the API.
get_content_length(api, file_to_download)
An integer vector of content lengths, named by the file names.
An endpoint to the dataset variants.
A character vector of file names to download.
api <- get_topic("Postal") files <- get_latest_files(api)$csv purrr::map( files, get_content_length, api = api) |> tibble::as_tibble()
Run the code above in your browser using DataLab