---
title: "/postal-codes"
method: GET
path: "/v1/postal-codes"
tags: ["Reference Data"]
---

# /postal-codes

`GET /v1/postal-codes`

## Request

- Base URL: `https://api.companydata.dk` (the document declares no server; this is the origin it was published from)
- URL: `https://api.companydata.dk/v1/postal-codes`
- Auth: HTTP bearer

List all Danish postal codes, sorted numerically by postal code.

`municipality_code` filters to postal codes observed in that
municipality (registered company addresses; postal codes that straddle
municipal borders appear for every municipality they touch).

## Query parameters

- `municipality_code` string, nullable: Filter by municipality code

## Response `200`

Successful Response

- AppRoutersReferencePostalCodeListResponse: Response with list of postal codes.
  - `data` PostalCode[], required: List of postal codes
    - `code` string, required: 4-digit postal code
    - `name` string, required: Postal code district name
    - `municipality_code` string, nullable: Municipality code
    - `municipality_name` string, nullable: Municipality name
  - `meta` object, required: Response metadata

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/companydata/apis/companydata-dk-api.md) · [All operations](https://skmtc.dev/companydata/apis/companydata-dk-api/llms.txt) · [OpenAPI document](https://skmtc.dev/companydata/apis/companydata-dk-api/revisions/1cc6c361ae64?raw)
