Portugal Postal Code API

Look up codigo postals in Portugal with PostalDataPI — sub-10ms responses, one API key for 70+ countries.

Country Code

PT

Format

NNNN-NNN

Example

1000-001

About Portugal codigo postals

Portugal uses 7-digit postal codes formatted as NNNN-NNN. Lisbon codes start with 1, Porto with 4.

Local term: codigo postal | Regex pattern: ^\d{4}-?\d{3}$

API Usage Examples

cURL

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

Python

from postaldatapi import PostalDataPI

client = PostalDataPI(api_key="YOUR_API_KEY")
result = client.lookup("1000-001", country="PT")
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('1000-001', { country: 'PT' });
console.log(result.placeName, result.latitude, result.longitude);

$0.000028 per query

Same price for Portugal and all 70+ countries. No tiers, no per-country pricing.

Portugal Postal Code API | PostalDataPI