Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Zip Code Lookup API? [closed]

I need an API to give me the zip code of a location when someone enters a location like Los Angeles, California. I have seen many APIs that give you the details by the zip code, but I need the reverse.

like image 369
Anonymous Avatar asked Aug 20 '11 02:08

Anonymous


People also ask

What is a ZIP code API?

A ZIP code API, also known as a ZIP code lookup, makes it possible to programmatically look up information using a ZIP code as a unique identifier. In North America, all major shipping carriers including USPS, Canada Post, FedEx, DHL, and UPS maintain various APIs with corresponding documentation.

Why is a ZIP code discontinued?

If there are no longer any customers for that Zip Code, such as a large business that has gone out of business or moved to another area.

What is ZIP code validation?

ZIP Code™ validation is the process of checking a postal address to make sure the ZIP is valid and matches the location in the address.

Are ZIP codes close to each other?

ZIP codes are not as geographically scattered as area codes in the US, but they are not a coordinate system. The only exception is that the ZIP+4 codes are sub-sections of the larger ZIP code. You can assume that any ZIP+4 codes that have the same ZIP code are close to each other.


2 Answers

Check out the API from SmartyStreets.

As with the USPS address information API (mentioned above), you provide an address, the API provides the verified, standardized address along with the complete ZIP Code (5-digit code, Plus 4 Code, and Delivery Point).

Feel free to experiment with the free demo.

The advantages of this API over the USPS API are numerous. Also, the USPS API is meant specifically "to facilitate USPS shipping transactions only". SmartyStreets utilizes official, current USPS data.

**UPDATE: It's also now free for low-usage users.

***UPDATE: SmartyStreets now offers an address API and a ZIP Code API.

In the interest of full disclosure, I'm a software developer at SmartyStreets.

like image 100
mdwhatcott Avatar answered Oct 20 '22 07:10

mdwhatcott


USPS has an address information api. You give it an address and it gives you the zip code. And as the commenters said, you need to provide an address, because many cities have multiple zip codes.

like image 43
Jon7 Avatar answered Oct 20 '22 07:10

Jon7