library(httr)
# only have the one display_name to work with
users <- c("siebh","siebh")
raw_data <- vector(length = length(users))
for(i in seq_along(users)){
raw_data[i] = list(
GET(
paste0(
"http://api.openstreetmap.org/api/0.6/changesets?display_name=",users[i])
)
)
Sys.sleep(0.5) # argument depends on server timeout policy
}
raw_data
#> [[1]]
#> Response [https://www.openstreetmap.org/api/0.6/changesets?display_name=siebh]
#> Date: 2023-11-11 07:50
#> Status: 200
#> Content-Type: application/json; charset=utf-8
#> Size: 36.2 kB
#>
#>
#> [[2]]
#> Response [https://www.openstreetmap.org/api/0.6/changesets?display_name=siebh]
#> Date: 2023-11-11 07:50
#> Status: 200
#> Content-Type: application/json; charset=utf-8
#> Size: 36.2 kB
Created on 2023-11-10 with [reprex v2.0.2]