EPSG:4326 · PostGIS · OpenAPI v1

Geospatial and postal data for Portugal, built for production.

Official administrative boundaries (CAOP), CTT postal codes, accent-tolerant fuzzy search, and tenant-isolated custom zones over PostGIS.

GET /api/v1/regions/point?lat=38.7117&lng=-9.1367200 OK · PostGIS ST_Intersects
{
  "type": "FeatureCollection",
  "features": [
    {
      "id": "110658",
      "properties": {
        "level": "parish",
        "name": "Santa Maria Maior",
        "municipalityName": "Lisboa",
        "districtName": "Lisboa",
        "nuts3Name": "Grande Lisboa"
      },
      "geometry": { "type": "MultiPolygon", "coordinates": [...] }
    }
  ]
}

Structured official datasets, ready in one API

Every boundary uses WGS 84 (EPSG:4326) with pre-computed postal-to-parish spatial joins and cached responses.

Administrative Hierarchy (CAOP & Eurostat)

Full Portuguese divisions across NUTS I, II, III, Districts, Municipalities, and Parishes with standard and HD polygon resolutions.

CTT Postal Codes & Reverse Geocoding

4- and 7-digit CTT postal code lookups linked directly to parishes, plus coordinate-to-region ST_Intersects queries.

Accent-Tolerant Search

PostgreSQL pg_trgm and unaccent indexing matches queries like 'evora' or 'braganca' instantly.

Per-Key Isolation & Origin Rules

Separate API keys for internal sites or external clients with AllowedOrigins, CIDR IP allowlists, and custom polygons.

Integrate in seconds

Authenticate every /api/v1 request with X-API-KEY or generate an ephemeral 24-hour Demo key in the Playground.

curl -sS "https://api.portugalgeoapi.pt/api/v1/postal-codes/1000-001" \
  -H "X-API-KEY: pga_demo_your_api_key"

Need a dedicated API key for your site or project?

Review Demo, Basic, Pro, and Enterprise request limits and send a direct access request with no automated gateway setup required.

Explore Plans & Contact