hrecht / censusapi

R package to retrieve U.S. Census data and metadata via API
https://www.hrecht.com/censusapi/
169 stars 30 forks source link

Error 204 with Population Estimates #54

Closed aeonstone closed 5 years ago

aeonstone commented 5 years ago

I'm trying to pull in data on places using the pep/population API call. I have updated censusapi to the latest version but the error message doesn't display much info. I'm not actually sure if this is an error with censusapi or something on the Census side of things.

df.pop_cities2 <- getCensus(name = "pep/population",
    vintage = 2018,
    vars = c("GEONAME", "DATE_CODE", "DATE_DESC", "POP"),
    region = "place:*",
    regionin = "state:46")

And here is the error code I get

Error: 204, no content was returned. See ?listCensusMetadata to learn more about valid API options.

I tried it with multiple states and get the same error. Any thoughts? Am I doing this wrong somehow? Thanks.

aeonstone commented 5 years ago

Sorry. I should have done more digging. I knew the 2018 data had been released but it looks like the city and town estimates are not out yet.