coronavirus-dashboard-api-R-sdk icon indicating copy to clipboard operation
coronavirus-dashboard-api-R-sdk copied to clipboard

MSOA queries

Open JonnoB opened this issue 3 years ago • 0 comments

I am trying to extract MSOA data using the api. As a trial I have used data I downloaded using the download data page https://coronavirus.data.gov.uk/details/download . For the puposes of the experiment I am trying to download data for Barnet council, at msoa level, for the variable newCasesBySpecimenDateRollingRate, as a csv file. When using the tool I get the following link which successfully downloads.

However, when I try and use the API query I get the error message "Error in curl::curl_fetch_memory(url, handle = handle) : Timeout was reached: [api.coronavirus.data.gov.uk] Operation timed out after 10001 milliseconds with 0 bytes received" I have got this message for a wide range of different msoa options


query_filters <- c(
      'areaType=msoa',
"areaCode=E09000003"
)

cases_and_deaths = list(
  date = "date",
  areaName = "areaName",
  areaType = "areaType",
  areaCode = "areaCode",
  newCasesByPublishDate = "newCasesBySpecimenDateRollingRate"
)


data <- get_data(
  filters = query_filters, 
  structure = cases_and_deaths
)

changing the area type to utla or ltla does not result in an error. Does the api work for msoa? choosing options form the recently added vaccination data also produces an error, https://coronavirus.data.gov.uk/details/whats-new even though this data is definately provided in msoa format.

Any help or clarification would be appreciated.

JonnoB avatar Jul 20 '21 12:07 JonnoB