I am trying to download IPUMS data for all states in the U.S. using the R function get_pums. However, I receive the following error message when running the code.
Error: Your API call has errors. The API message returned is There was an error while running your query. We've logged the error and we'll correct it ASAP. Sorry for the inconvenience..
This only occurs when I request all states either manually or with the "all" command for states. I tried the code below with each state name as well, but I receive the same error. The code works for individual states. Has anyone else run into this problem?
all_pums <- get_pums( variables = c("PUMA", "SEX", "AGEP", "SCHL", "FFSP", "ST", "AGEP", "CIT", "COW", "DDRS", "DEAR", "DEYE", "DOUT", "DPHY", "DRAT", "DRATX", "DREM", "LANX", "MAR", "SCH", "SCHL", "ESR", "DIS", "ESP", "NATIVITY", "NOP", "OC", "POWPUMA", "RAC1P", "RACAIAN", "RACASN", "RACBLK", "RACNH", "RACNUM", "RACWHT", "RACPI", "RACSOR"), state = "all", survey = "acs5", year = 2019)
I would just go to http://usa.ipums.org and download the extract that I need as a csv file. I think that's a bit softer on the IPUMS website if you do it once rather than keep banging it with API requests and then jump through the hoops with bind_rows(). But you do you.