# Looking up hundreds of ZIP codes

**URL:** <https://boards.straightdope.com/t/looking-up-hundreds-of-zip-codes/835988>\
**Category:** Factual Questions\
**Created:** [June 24, 2019, 8:39pm UTC](https://boards.straightdope.com/t/looking-up-hundreds-of-zip-codes/835988 "2019-06-24T20:39:29Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![Reply](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/reply/32/15952_2.png) [@Reply](https://boards.straightdope.com/u/Reply)\
**Post date:** [June 27, 2019, 5:08pm UTC](https://boards.straightdope.com/t/looking-up-hundreds-of-zip-codes/835988/21 "2019-06-27T17:08:18Z")

</div>

> [@Space\_Vegetable](#):
>
> A simpler option is to use [Geocodio](https://www.geocod.io/). You can upload a spreadsheet of addresses lacking zip codes, and it will add them, as well as latitude and longitude and lots of other info. It can handle data where all the address info is one big field, or when it’s split up into city, state, etc. It’s free for up to 2500 lookups a day.
> 
> I used it to add county names and census tract codes (the latter an extra-cost option) to 3500 addresses a few weeks ago, for a project where I needed to classify addresses by neighborhoods within a city. I paid $2.22 total. Highly recommended.

Much easier to use! It gave me different ZIP codes than the USPS did, though 😕 For example, Google and the USPS agree that the NYSE is 10005 and the Empire State Building is 10118, but Geocodio says both are 10004. I am not sure if that would actually make a difference in mailing.

---

<div class="post-metadata">

**Author:** ![Johnny\_L.A](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/johnny_l.a/32/1084_2.png) [@Johnny\_L.A](https://boards.straightdope.com/u/Johnny_L.A)\
**Post date:** [June 27, 2019, 6:16pm UTC](https://boards.straightdope.com/t/looking-up-hundreds-of-zip-codes/835988/22 "2019-06-27T18:16:35Z")

</div>

> [@Space\_Vegetable](#):
>
> A simpler option is to use [Geocodio](https://www.geocod.io/).

I must have done something wrong. I have this:

```auto

0003402	[company name] [secondary name] PO BOX 31413	[secondary address]	BILLINGS	MT

```

It returned: Savannah, GA 31413

I think it may be that I don’t know how to define the fields. Like, it said 3. Address, when the primary address is in column 4.

---

<div class="post-metadata">

**Author:** ![Johnny\_L.A](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/johnny_l.a/32/1084_2.png) [@Johnny\_L.A](https://boards.straightdope.com/u/Johnny_L.A)\
**Post date:** [June 27, 2019, 7:01pm UTC](https://boards.straightdope.com/t/looking-up-hundreds-of-zip-codes/835988/23 "2019-06-27T19:01:50Z")

</div>

I replied to Geocodio’s email, and they said:

> [@](#):
>
> [T]his is indeed a bug in our end. It appears that we are interpreting the PO Box Number as a zip code. We will get that resolved.
> 
> In the meantime, I would recommend removing “PO BOX” entries from your list (keeping the city/state) as PO Boxes will be geocoded to the zip-code accuracy level either way.

Anyway… **Reply** ’s script (thanks for the PMs, by the way!) got me about 2/3 of the ZIP codes. I looked up the rest on USPS and Google. One problem is that the member is giving us bad cities. Like, ‘Oh, it’s Alaska? Just put Anchorage.’ Or: ‘Where in Washington? Just put Tukwila.’ So Google Sheets and Geocodio won’t be any help there. But now that I’ve got most of the ZIP codes (there were about a dozen I couldn’t find myself), I have a program that looks at previous data and gets the address information from there if the account numbers match. I shouldn’t have so many ZIPs to look up for this data again. But we’re hoping a company will resume sending their 100,000 account file. If they do, the ZIPs will _definitely_ have to be looked up. A lot of them have been bad in the past.

Anyway, thanks again for the help.

[Previous page](https://boards.straightdope.com/t/looking-up-hundreds-of-zip-codes/835988.md?page=1)
