Zip Code Lookup API? [closed]

拜拜、爱过 提交于 2019-11-28 23:22:59

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.

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.

This Zip Code API provides the following functions:

  • Distance Between Zip Code API
  • Zip Codes in Radius API
  • Zip Code to City and State API and Zip Code to Latitude/Longitude API
  • Zipcode based on City and State

They have a cross reference database of zipcode, to lat/long-itude, and the weather station.

I am not aware of anything freely available, you will likely need to pay to compile this

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!