ACS data download at zip code level

Could someone point out the URL for downloading the ACS either single year or 5-year average data at the zip code level?  There are about 45000 zip codes in the US so I expect to see the data file with about 45000 rows.

Thank you!

Min

Parents
  • Assuming you already know which table(s) you want, you can get ZCTA (ZIP Code Tabulation Areas) for 2016 5 year ACS by
    going to Factfinder.Census.gov,
    clicking on "advanced search",
    then "show me all",
    then click "Geographies" on the left side,
    select "5 Digit ZIP Code Tabulation Area- 860" (ZCTA) (ignore that fact that "5 digit ZIP code" is an option, as it is not available for ACS and therefore won't give you any options to select ACS data if you choose it),
    then select "ALL 5 Digit ZIP Code Tabulation Areas in the United States and Puerto Rico",
    click the "Add to your selections" button,
    click close (for the geographic selection window).

    You will then see ALL the tables available, and you can filter these by entering a "topic or table name".

    I would suggest that you play around using a smaller set of ZCTAs (like all within a county or a smaller state) before you try downloading ALL of them, just so you can explore the file download options and make sure you can open it and get what you expect in the program you are going to read it into. All or which will be less unwieldy with a smaller data set.
  • Hi Peter,

    I am not able to find ZCTA geography level data via API (base URL: api.census.gov/.../acs1)
    However, I do see the data at ZCTA level on factfinder website.
    Is this not available via API?

    But I could see the data at ZCTA level for ACS 5 year Detailed tables - 2011 (https://api.census.gov/data/2011/acs/acs5)

    Did they discontinue ZCTA level data API after that?
    Could you please help me here.

Reply Children
  • ZCTAs are not included in the 1-year data release, because only ~250 ZCTAs (out of ~33000) surpass the 65,000 population threshold required for inclusion in the 1-year data release.

    Change "acs1" to "acs5" in your example and you should have better results.
  • HI Joe,

    Thanks for your inputs.
    I could see data at ZCTA level for 5 year estimates.

    Regards,
    Shiva
  • Hi Joe,

    I have one more question.
    Is it possible to retrieve data of all the features (called variables in the website. Example: B01001_001E) in one API call.
    As of now, I guess, we need to call API one by one for each variable.

    For example, Below API call retrieves total population estimate (B01001_001E) for ZCTA=33141
    api.census.gov/.../acs5

    But if I replace B01001_001E with wildcard * to retrieve data for all variables, it does not work.
    I understand if we use *, there will be lot of data. But is this not supported?
    Could you please help me here?

    Thanks & Regards,
    Shiva
  • I'm afraid I'm not extremely experienced using the API; perhaps someone else here can advise?

    I lead a project called Census Reporter, which provides an alternative web presentation for the current ACS (that is, there's no historic data, and each year, we update it when new ACS data is released) -- we have an API which was designed for our own needs, but we welcome public access to the API, as long as their use doesn't interfere with our ability to run our site, which mostly manifests as an upper limit to the number of geographies which are returned in a single query.

    You can get all variables for a single table from our site, for about 3500 geographies at a time. (I can't remember exactly where the threshold is set.) For example, this is all of B01001 for ZCTA 33141 api.censusreporter.org/.../latest

    See github.com/.../API.md for more information.