ZIP Code API mapping visualization

U.S. & Canadian ZIP Code API

Real-time access to ALL 40,000+ U.S. ZIP Codes and ALL 890,000+ Canadian Postal Codes via REST API. Power address validation, store locators, distance calculators, and geolocation features with 99.9% accurate data updated monthly from USPS and Canada Post.

USPS & Canada Post Licensed
Upated Monthly
100% Money-Back Guarantee
No Contract, Cancel Anytime
40,000+
All U.S. ZIP Codes
890,000+
All Canadian Postal Codes
23
Years Trusted
99.9%
Uptime SLA

How It Works

Get started with ZIP-Codes.com API in three simple steps

Total Time: 5 Minutes
1

Create Free Account

Sign up in seconds with just your email. No credit card required, no commitments. Your account is activated instantly with 250 free API lookups to get started.

No Credit Card Required
2

Get Your API Key

Your unique API key is generated instantly upon signup. Access it anytime from your account dashboard. Use this key to authenticate all your API requests securely via HTTPS.

Instant Access
3

Start Calling the API

Copy our ready-made code examples in your preferred language and start making API calls. Get real-time ZIP code data in JSON or XML format with sub-second response times.

Working in 5 Minutes
Start Your Free Tier - 250 Lookups

No credit card required • Instant activation • Cancel anytime

Popular Use Cases

See how developers use our API to solve real-world problems

ZIP Code Validation

Verify ZIP codes in real-time during checkout or form submission. Reduce failed deliveries and improve data quality by catching invalid addresses before they enter your system.

if (validateZIP(userInput)) {
  processOrder();
} else {
  showError();
}
E-commerce SaaS
Try in Playground

Autofill City & State

Enhance user experience by automatically populating city and state fields as users type their ZIP code. Reduce form abandonment and speed up checkout with smart autofill.

onZIPChange(zip) {
  data = getZIPDetails(zip);
  fillCity(data.city);
  fillState(data.state);
}
Forms Registration
Try in Playground

Store Locator

Build "find locations near you" features for retail stores, restaurants, or service providers. Search by ZIP code and radius to show customers their nearest locations with accurate distances.

zips = findInRadius(userZIP, 25);
stores = matchStores(zips);
displayMap(stores);
showList(stores);
Retail Restaurants
Try in Playground

Distance Calculator

Calculate accurate distances between ZIP codes for shipping cost estimates, delivery time predictions, or logistics planning. Get distances in miles instantly for any two locations.

distance = calculateDistance(
  fromZIP, toZIP
);
shippingCost = distance * rate;
Logistics Delivery
Try in Playground

Shipping Zone Calculator

Determine shipping zones and rates based on distance from your warehouse or fulfillment center. Create tiered pricing zones (local, regional, national) automatically based on ZIP code proximity.

zones = defineZones(warehouseZIP);
if (distance < 50) zone = "Local";
else if (distance < 500) zone = "Regional";
rate = zones[zone].price;
E-commerce Fulfillment
Try in Playground

Demographic Data Lookup

Access detailed demographic information for any ZIP code including population, income levels, age distribution, and housing data. Perfect for market research, targeting, and business intelligence.

demographics = getZIPDetails(zip);
if (demographics.income > 75000) {
  targetPremiumProducts();
}
Marketing Real Estate
Try in Playground

Need a custom use case? Our API is flexible enough to handle specialized applications. View Developer Guide →

Simple, Transparent Pricing

No hidden fees. No contracts. Cancel anytime.

Free Version
Free
$0
per month
250
lookups/month
Start Free
Starter
$9.95
per month
1,000
lookups/month
Select Plan
Most Popular
Professional
$19.95
per month
10,000
lookups/month
Select Plan
Business
$29.95
per month
50,000
lookups/month
Select Plan
Pro Version
Enterprise
$39.95
per month
100,000
lookups/month
Select Plan
What's Included in Every Plan
No Rate Limits

Credit-based only

No Overage Fees

Stops at limit

Cancel Anytime

No contracts

30-Day Money-Back

Risk-free

Billing Information
  • Billed monthly on your signup anniversary date
  • Credits reset automatically each billing cycle
  • Upgrade or downgrade anytime from your account
  • Email alerts at 75%, 90%, and 100% usage
  • All plans include all 8 API endpoints

Frequently Asked Questions

Everything you need to know about the ZIP Code API

The API provides comprehensive location data for both U.S. ZIP codes and Canadian postal codes:

QuickGetZipCodeDetails (fast lookup):

  • ZIP Code
  • City
  • State/Province
  • County
  • Latitude & Longitude

GetZipCodeDetails (complete data):

  • All fields from QuickGetZipCodeDetails above
  • Plus: Demographics, time zones, area codes, CBSA/MSA data, FIPS codes, and 60+ additional fields

Distance & Radius endpoints provide:

  • Accurate distance calculations between locations
  • Lists of ZIP codes within specified radius
  • Coordinates for custom mapping

View complete field list and all endpoints →

99.9% accuracy for ZIP code validation. Our database maintains all current active ZIP codes and postal codes, updated monthly from official sources.

Data sources:

  • U.S. ZIP Codes: USPS-licensed data, updated monthly on the 1st
  • Canadian Postal Codes: Canada Post-licensed data, updated monthly
  • 23 years of continuous updates - we've never missed a monthly update

Validation effectiveness: Our API can quickly determine whether a ZIP code is currently valid or identify fake/inactive codes. If a ZIP code isn't in our database, it's not currently in active status with the postal service.

All updates are applied automatically - completely transparent to API users with no action required on your part.

The free tier includes 250 API lookups per month - forever! This isn't a limited-time trial that expires.

What you get:

  • 250 free lookups every month - resets automatically on your signup date
  • Full API access - all endpoints available (lookup, distance, radius search)
  • No credit card required - just your email to create an account
  • Instant activation - API key generated immediately
  • Never expires - keep the free tier as long as you want

How it works: Sign up, get your API key, and start making calls immediately. Your 250 credits reset monthly on your signup anniversary date. Upgrade to a paid plan anytime if you need more credits.

Create your free account now →

We use credit-based pricing with no rate limits - you pay only for the lookups you need:

  • Free: 250 lookups/month - $0
  • Starter: 1,000 lookups/month - $9.95
  • Basic: 4,000 lookups/month - $14.95
  • Professional: 10,000 lookups/month - $19.95 (Most Popular)
  • Business: 50,000 lookups/month - $29.95
  • Enterprise: 100,000 lookups/month - $39.95
  • Premium: 500,000 lookups/month - $49.95
  • Ultimate: 1,000,000 lookups/month - $79.95
  • Mega: 2,000,000 lookups/month - $129.95

Key benefits:

  • No overage fees - API stops when credits exhausted (with email alerts)
  • Monthly billing - billed on your signup anniversary date
  • Cancel anytime - no long-term contracts
  • Upgrade/downgrade anytime - change plans instantly from your account

View detailed pricing comparison →

Yes! Complete coverage of 892,959 Canadian postal codes.

What's included:

  • All FSAs (Forward Sortation Areas - first 3 characters)
  • Full 6-character codes (format: A1A 1A1)
  • Same endpoints as U.S. - just pass a Canadian postal code instead
  • Same accuracy standards - Canada Post-licensed data
  • Monthly updates - synchronized with Canada Post releases

How to use: Simply pass the Canadian postal code in the same parameter where you'd use a U.S. ZIP code. The API automatically detects the format and returns the appropriate data.

Example: QuickGetZipCodeDetails/A0A1E0 works exactly like QuickGetZipCodeDetails/90210

Note: When mentioning Canada Post postal code data in your application, please include "OM" (Official Mark) attribution as required by Canada Post licensing.

The API stops responding with an error message: "Credit limit has been reached."

Credit management system:

  • Email alerts at 75%, 90%, and 100% usage - never be surprised
  • No overage charges - we stop service rather than billing extra
  • Check anytime - use the GetCreditInfo endpoint to monitor balance
  • Credits reset monthly - automatically on your billing anniversary date

What to do when credits run out:

  • Wait for reset - credits replenish automatically next billing cycle
  • Upgrade your plan - instant access to higher credit tier
  • Contact us - we can help if you need immediate additional access

Your account remains active and data is preserved - you simply can't make new API calls until credits reset or you upgrade.

No rate limits! Our API uses a credit-based system instead of throttling your requests.

What this means for you:

  • Make requests as fast as you want - no "requests per second" restrictions
  • Batch processing friendly - process thousands of addresses without delays
  • Only limit is your credit balance - use them however you want throughout the month
  • No complicated throttling logic - simpler integration for your applications

Example: With a 10,000 credit plan, you could make all 10,000 requests in the first hour of the month, or spread them evenly throughout 30 days - it's entirely up to you.

This makes our API ideal for both real-time applications (form validation) and batch operations (database cleansing).

Yes! Cancel anytime directly from your account dashboard - no phone calls or emails required.

How cancellation works:

  • Cancel instantly - one click in your account settings
  • Effective date - cancellation takes effect on your next renewal date
  • Keep access - continue using your paid plan until the billing period ends
  • Automatic downgrade to free - reverts to free tier (250 credits/month) after cancellation
  • No cancellation fees - no penalties or charges

Example: Sign up January 15th, upgrade to $19.95 plan, decide to cancel February 1st. You keep full access until March 15th (your renewal date), then automatically revert to the free 250 credits/month.

No contracts, no commitments:

  • Full control, no surprises - your subscription renews until you cancel
  • Reactivate anytime - upgrade back to a paid plan whenever you want
  • Your data and API key remain active on the free tier

We believe in earning your business every month, not locking you into long-term contracts.

No credit card required! Create a free account with just your email address.

How it works:

  1. Sign up - provide only your email address
  2. Get instant access - API key generated immediately
  3. Start testing - 250 free lookups every month, forever
  4. Upgrade when ready - add payment method only if you need more credits

Why we do this: We want you to try the API risk-free and see the value before asking for payment. No surprise charges, no "forgot to cancel" bills - just honest, straightforward service.

Need more than 250 lookups? Paid plans require a credit card (Visa, MasterCard, or American Express) for recurring monthly billing. You'll be charged on your signup anniversary date each month.

Create your free account now →

Monthly updates on the 1st of every month - synchronized with USPS and Canada Post releases.

Update process:

  • Completely automatic - no action required from you
  • Transparent to API users - your code keeps working without changes
  • Zero downtime - updates applied seamlessly
  • 23 years of reliability - never missed a monthly update

What gets updated:

  • New ZIP codes and postal codes as they're assigned
  • Deactivated or discontinued codes removed
  • Boundary changes and relocations
  • City name changes and corrections
  • Demographic data refreshed quarterly

Data sources:

  • U.S.: USPS-licensed data
  • Canada: Canada Post-licensed data

You always get the most current data available - automatically. No downloads, no version management, no maintenance required on your end.

Yes! Change your plan anytime directly from your account dashboard.

How upgrades work:

  • Instant upgrade - takes effect immediately
  • Prorated billing - pay only the difference for the remaining days in your billing cycle
  • Credits added instantly - start using your new credit limit right away
  • Same renewal date - billing anniversary doesn't change

Example upgrade: You're on the 10,000 credit plan ($19.95/month) halfway through your billing cycle. Upgrade to 50,000 credits ($29.95/month) - pay $10 difference now, get immediate access to 50,000 credit tier.

How downgrades work:

  • Takes effect next billing cycle - keeps your current plan active until renewal
  • No refunds for early downgrade - you paid for the full month, keep access
  • Set it and forget it - automatic change on your renewal date

Example downgrade: You're on 50,000 credits but only using 5,000/month. Downgrade to 10,000 credits - keep your 50,000 credit access until renewal, then automatically switch to $19.95/month plan.

All plan changes are handled in your account dashboard with clear confirmation - no phone calls or support tickets required.

For recurring monthly billing, we accept major credit cards:

  • Visa
  • Mastercard
  • American Express

Why credit cards only? The API uses recurring monthly billing based on your signup anniversary date. Credit cards provide the most reliable automated billing experience.

Enterprise invoicing: For high-volume enterprise accounts, we can arrange invoice-based billing. This must be coordinated in advance - contact us to discuss your requirements.

Payment methods NOT accepted:

  • PayPal - not supported for recurring subscriptions
  • Checks - not accepted due to recurring nature of service
  • Mail-in payments - credit card required for all standard plans

Billing schedule: You're charged monthly on your signup anniversary date. For example, sign up January 15th → charged February 15th, March 15th, April 15th, etc.

Security: All credit card processing is handled by industry-standard secure payment processors. We never store your full card number.

Yes! We offer a 30-day money-back guarantee.

Refund policy:

  • 30-day window - request a refund within 30 days of purchase
  • Usage-based refunds - refund amount depends on credits used
  • Simple process - request through your account or contact us
  • Processed quickly - refunds typically processed within 3-5 business days

How refund amounts are calculated:

  • Used less than 50% of credits: 100% refund
  • Used more than 50% of credits: Refund based on unused portion

Example scenarios:

  • Purchased 10,000 credits for $19.95, used 2,000 (20%) → Full $19.95 refund
  • Purchased 10,000 credits for $19.95, used 7,000 (70%) → Refund for unused 30%

Why we offer refunds: We're confident in our API's quality and want you to feel comfortable trying it risk-free. If it doesn't meet your needs, we'll make it right.

Note: The free tier (250 credits/month) has no charges and therefore no refunds applicable.

Yes! All API documentation is fully public and accessible without an account.

What you can explore before signing up:

  • Interactive API Playground - test endpoints with live data using demo key
  • Complete API Reference - all endpoints, parameters, and response formats documented
  • Developer Guide - implementation examples and best practices
  • Code examples - working samples in 5 programming languages
  • Interactive demos - see real-world use cases in action

Resources available:

Try before you buy: Use the API Playground with our demo key (DEMOAPIKEY) to test all endpoints. See actual response times, data format, and error handling before creating an account.

We believe in complete transparency - you should know exactly what you're getting before signing up.

Yes, there are some important restrictions to protect the integrity of the service and comply with licensing agreements.

Prohibited uses:

  • Reselling the data - you cannot sell, sublicense, or redistribute the raw data to third parties
  • Scraping or redistribution - systematic downloading of the entire database is prohibited
  • Spam or unsolicited marketing - using the data for mass marketing without proper consent is not allowed
  • Creating competing databases - you cannot use our data to build a competing ZIP code service

Permitted uses:

  • Your own applications - integrate into your websites, apps, or internal systems
  • Customer-facing features - address validation, store locators, shipping calculators
  • Data enrichment - enhance your existing customer or address databases
  • Analytics and reporting - use for business intelligence and geographic analysis
  • SaaS platforms - embed in your software that you provide to end users

Key principle: You can use the API to power your applications and services, but you cannot resell the underlying data itself.

Licensing requirements:

  • Canada Post OM: If displaying Canadian postal code data, include "OM" (Official Mark) attribution
  • USPS data: Our USPS license covers your use through our API

For detailed terms and conditions, see our Terms of Service. If you have questions about a specific use case, contact us - we're happy to clarify.

Decades of Trust: We're the ZIP Code Data Experts

Our Experts

James Harris

Lead Data Architect - 23 Years Experience

Good data doesn't just happen - it takes real people who care about getting things right. James and our team manually verify every source. No running scripts and calling it done. We maintain high standards because you're counting on this data to run your business.

When something doesn't look right, we dig into it. That's the difference experience makes.

More About Our Team →

We Stand Behind Our Work

Our 100% Money Back Guarantee!

Our mission: Provide the most accurate, comprehensive, and trustworthy ZIP Code data in the industry - so you can make confident business decisions based on reliable intelligence.

Since 2003, we have maintained 99.9% accuracy through rigorous verification, expert curation, and committment to data quality.

We believe that good data matters, and so does good service. When you need help, you'll talk to an actual person - not a ticket system or an endless email thread. Call us and we'll pick up the phone. Email us, and we will respond promptly. It's a simple thing, but it makes a difference when you're on a deadline or troubleshooting an issue.

Learn Why Many Place Their Trust In Us →

Trusted by Thousands of Companies

Background image for Our Customers say it best

Our Customers say it best!

Actual customer emails from verified purchases.

★★★★★ 4.9 out of 5 from 500+ verified customers
100% Verified Reviews
6 Fortune 500 Clients
10-20+ Year Customers

Sources & References


Our API delivers trusted, licensed data from official postal authorities and federal agencies in the United States and Canada. All data is validated, normalized, and enhanced by ZIP-Codes.com for maximum accuracy and usability. Data last updated on December 1, 2025.

Primary Data Sources

  1. U.S. Postal Service [Last Updated: 12/1/2025], https://www.usps.com
    • ZIP Code™ Address Data [Monthly Updates]
    • Official ZIP code definitions, city names, and delivery information
    • Carrier route data and mail delivery geography
    • ZIP+4 code assignments and address ranges
  2. Canada Post Corporation [Last Updated: 12/1/2025], https://www.canadapost.ca
    • Postal Code™ Address Data [Monthly Updates]
    • Official postal code definitions and municipality designations
    • Forward Sortation Area (FSA) geographic boundaries
  3. ZIP-Codes.com Proprietary Data Enhancements [Updated: 12/1/2025], https://www.zip-codes.com
    • Geocoding coordinates (latitude/longitude) validated from multiple authoritative sources
    • Data normalization and quality assurance processes
    • Cross-reference tables linking ZIP codes to statistical areas
    • Continuous accuracy improvements based on validation and user feedback
    • API infrastructure, caching, and performance optimization
  4. U.S. Census Bureau [Updated: Varies], https://www.census.gov
    • U.S. Census Office of Management and Budget [Updated: As Released]
    • U.S. Census 2020 Demographic & Housing Characteristics (DHC) [Decennial] [Updated: 5/25/2023]
    • U.S. Census 2011-2023 American Community Survey 5-year estimates (ACS) [Annually] [Updated: As Released]
    • U.S. Census Business Patterns (CBD) [Annually] [Updated: As Released]
    • U.S. Census American National Standards Institute (ANSI) Codes [Updated: As Released]
    • Core-Based Statistical Areas (CBSA), Metropolitan Statistical Areas (MSA) [Updated: As Released]
    • Federal Information Processing Standards (FIPS) Codes [Updated: As Released]
  5. Statistics Canada [Updated: Varies], https://www.statcan.gc.ca
    • Postal Code Conversion File (PCCF) Census Geography Linkage [Updated: As Released]
    • Census 2021 Geographic Boundary Files [Updated: 2021]
    • Census Dissemination Geography Unique Identifiers (DGUIDs) [Updated: 2021]
    • Census Metropolitan Areas (CMA), Census Agglomerations (CA) [Updated: 2021]
    • Census Divisions (CD), Census Subdivisions (CSD) [Updated: 2021]
    • Dissemination Areas (DA), Dissemination Blocks (DB) [Updated: 2021]
    • Census Tracts (CT), Economic Regions (ER) [Updated: 2021]
    • Federal Electoral Districts [Updated: 2021]
    • Population Centres (PC), Designated Places (DPL) [Updated: 2021]
    • Census Population and Dwelling Counts [Census Cycle, estimates updated annually]
  6. U.S. Geological Survey [Updated: Varies], https://www.usgs.gov
    • Geographic Names Information System (GNIS)
    • Place name validation and geographic feature identification
  7. Centers for Medicare & Medicaid Services [Updated: Annually, As Released], https://www.cms.gov
    • Healthcare service area designations
    • Rural-Urban Commuting Area (RUCA) codes

Related Resources

United States Resources
Canadian Resources
Licensing & Legal Information

U.S. Postal Service: Portions of data are provided by the United States Postal Service and are © 2025. ZIP-Codes.com is a non-exclusive licensee of the United States Postal Service. ZIP Code™ is a trademark of the U.S. Postal Service.

Canada Post Corporation: Postal Code™ is a trademark of Canada Post Corporation. Portions of postal code data are © 2025 Canada Post Corporation. All rights reserved.

Statistics Canada: Census geography data adapted from Statistics Canada's Census geographic boundary files. Statistics Canada information is used with the permission of Statistics Canada. Users are forbidden to copy the data and redisseminate them, in an original or modified form, for commercial purposes, without permission from Statistics Canada.

Trusted by Businesses & Government Agencies

USPS Licensed
Official Data Provider

Canada Post Licensed
Authorized Partner

23 Years
Update History

Monthly Updates
Always Current

Ready to Get Started?

Start your free tier with 250 lookups every month. No credit card required.

Join 10,000+ developers using our API

4.9/5 Rating 99.9% Uptime 23 Years Trusted