Skip to content

MSOA queries #5

@JonnoB

Description

@JonnoB

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions