I'm searching for some kind of database which would allow me to determine the county from an existing US address (consisting of number, street, city, zip and state).

Obviously that would require some sort of database including street names and ranges, city, county and state; however I have not been able to find anything of the sort.

I'd appreciate any help. Thanks!

  • Maybe Google Maps/Places API, if they have this feature? Nov 26, 2015 at 16:26

3 Answers 3


The 2010 Zip Code Tabulation Area, provided by the Census Bureau, in text format with the county number it is located in can be found here:


Converting the county number to its proper name can be done using this text database from the Census Bureau:


The commercially available option that includes a free download for personal use in .xls is here, it has the county name and zip code:


  • It seems I need the ZCTA code for an address in order to get to the county number and name with those tables, however I have only the ZIP code of the address. What am I missing here?
    – Askaga
    Nov 25, 2015 at 15:40
  • 1
    the zip to county table is better than this answer. huduser.gov/portal/datasets/usps_crosswalk.html but that does not work either because some zips cross county lines. Nov 27, 2015 at 6:09

The Census Geocoder can perform this lookup. This service also has an API that you can use. The documentation (PDF) might be helpful. For example, this query:



            "street":"740 Park Avenue",
            "city":"New York City",
            "benchmarkDescription":"Public Address Ranges - Census 2010 Benchmark",
            "vintageDescription":"Census2010 Vintage - Census2010 Benchmark",
            "matchedAddress":"740 Park Ave, NEW YORK, NY, 10021",
               "city":"NEW YORK",
               "Census Blocks":[
                     "NAME":"Block 2002",

Are you familiar with Python? The geopy library in combination with Open Street maps and Google maps does a tremendous jobs. It is very easy to analyze thousands of addresses as if you would put them in a google maps search box. The API gives you the political units such as country, state and city. If you like I can share a script that can handle excel sheets as input files.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.