Skip to main content

Quick Start

Get up and running with PostalDataPI in under 5 minutes.

1. Create an Account

Sign up at postaldatapi.com using Google, GitHub, or Microsoft. Every new account includes 1,000 free queries -- no credit card required.

2. Get Your API Key

After signing in, navigate to the API Keys section of your dashboard and create a new key. Copy the key and keep it safe -- it will only be shown once.

3. Make Your First Request

All PostalDataPI endpoints accept POST requests with a JSON body. Every request must include your apiKey.

curl -X POST https://postaldatapi.com/api/lookup \
-H "Content-Type: application/json" \
-d '{"zipcode": "90210", "apiKey": "YOUR_API_KEY"}'

Response

{
"city": "Beverly Hills",
"state": "California",
"ST": "CA",
"performance": {
"totalTime": "3ms"
},
"rateLimit": {
"enabled": false
},
"balance": 4.99
}

4. Try Other Countries

PostalDataPI supports 70+ countries. Pass a country parameter with any ISO 3166-1 alpha-2 code:

# German postal code
curl -X POST https://postaldatapi.com/api/lookup \
-H "Content-Type: application/json" \
-d '{"zipcode": "10115", "country": "DE", "apiKey": "YOUR_API_KEY"}'

# UK postcode
curl -X POST https://postaldatapi.com/api/lookup \
-H "Content-Type: application/json" \
-d '{"zipcode": "SW1A", "country": "GB", "apiKey": "YOUR_API_KEY"}'

What's Next?