Canada Postal Code API
Look up postal codes in Canada with PostalDataPI — sub-10ms responses, one API key for 70+ countries.
Country Code
CA
Format
ANA NAN
Example
K1A 0A6
About Canada postal codes
Canada uses 6-character alphanumeric postal codes in ANA NAN format. The first three characters (FSA -- Forward Sortation Area) identify a geographic region. The last three (LDU) narrow to a specific address range.
Local term: postal code | Regex pattern: ^[A-Z]\d[A-Z]\s?\d[A-Z]\d$
API Usage Examples
cURL
curl -X POST https://postaldatapi.com/api/lookup \
-H "Content-Type: application/json" \
-d '{"zipcode": "K1A 0A6", "country": "CA", "apiKey": "YOUR_API_KEY"}'Python
from postaldatapi import PostalDataPI
client = PostalDataPI(api_key="YOUR_API_KEY")
result = client.lookup("K1A 0A6", country="CA")
print(result.place_name, result.latitude, result.longitude)Node.js
import { PostalDataPI } from 'postaldatapi';
const client = new PostalDataPI({ apiKey: 'YOUR_API_KEY' });
const result = await client.lookup('K1A 0A6', { country: 'CA' });
console.log(result.placeName, result.latitude, result.longitude);$0.000028 per query
Same price for Canada and all 70+ countries. No tiers, no per-country pricing.