diff --git a/R/get_eurostat_json.R b/R/get_eurostat_json.R index 94ffdecc..3cf9f528 100755 --- a/R/get_eurostat_json.R +++ b/R/get_eurostat_json.R @@ -133,7 +133,7 @@ eurostat_json_url <- function(id, filters, lang){ # prepare url url_list <- list(scheme = "http", hostname = "ec.europa.eu", - path = file.path("eurostat/wdds/rest/data/v1.1/json", + path = file.path("eurostat/wdds/rest/data/v2.1/json", lang[1], id), query = filters2) class(url_list) <- "url"