• Stars
    star
    127
  • Rank 281,175 (Top 6 %)
  • Language
    Python
  • Created over 12 years ago
  • Updated over 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

This is a Python API for getting zipcodes

Ziptastic

We have moved to GetZiptastic.com!


Important

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/)

Notes

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

Usage

v2

This is the new updated version and requires that you pass in the country code as well.

Example: http://zip.getziptastic.com/v2/US/48867

v1

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