This is a Python API for getting zipcodes
We recommend using GeoIP to determine the country code of your visitor as a suggestion when they are filling out your form. (http://pointlessrants.com/posts/python-geoip-python-geoip-cities-tutorial/)
We are now using the geonames.org database for postal codes. There are many more countries we support.
Available country codes: AD, AR, AS, AT, AU, BD, BE, BG, BR, CA, CH, CZ, DE, DK, DO, ES, FI, FO, FR, GB, GF, GG, GL, GP, GT, GU, GY, HR, HU, IM, IN, IS, IT, JE, JP, LI, LK, LT, LU, MC, MD, MH, MK, MP, MQ, MX, MY, NL, NO, NZ, PH, PK, PL, PM, PR, PT, RE, RU, SE, SI, SJ, SK, SM, TH, TR, US, VA, VI, YT, ZA
This is the new updated version and requires that you pass in the country code as well.
This version only supports US postal codes and can be accessed like this...
Example: http://zip.getziptastic.com/48867 and http://zip.getziptastic.com/?zip=48867