Postal Codes Dataset for Denmark, DK

Postal Codes Dataset for Denmark, DK including name of the city, town, or place, various administrative divisions and alternative city names.

Report an issue
Downloads
918
Last updated
Rows
1,089
Size
89.1 kB
Format
csv
License
CC-BY-4.0

Data Files

1 file

postal-codes-dk-sample

Postal Codes Dataset for Denmark (DK)

This dataset contains Danish postal codes with their postal district, region and municipality (kommune), and a representative coordinate per postal code. It covers every region and every municipality, including Christiansø.

Column definitions, row count, size and last-updated date are in datapackage.yaml.

Data Sources

  • Postal districts and municipality admin data: © Klimadatastyrelsen (the Danish government data agency, earlier named SDFI), from the national address and geography registers served by DAWA / Dataforsyningen and Datafordeler, CC BY 4.0. Postal codes originate from PostNord/PostDanmark.
  • Regions and municipalities (names and codes): Source: Statistics Denmark, StatBank.dk/folk1a, used under Statistics Denmark's terms (equivalent to CC BY 4.0).
  • Coordinates: the visual center of each postal code's polygon in the same register.

Changes made to the source data: where a postal code spans more than one municipality in the source register, the first-listed municipality is used for admin_name2/admin_code2, except for a few codes that were deliberately re-pointed to a different listed municipality so that every municipality is represented by at least one row (Christiansø, Glostrup, Herlev, Hvidovre, Mariagerfjord, Rødovre and Sorø never appear first in the source ordering for any code).

Not endorsed by, or affiliated with, Klimadatastyrelsen or PostNord.

Known limitations

  • Many postal codes span more than one municipality in the source register; each row carries only one of them.
  • admin_name3, admin_code3 and alternative_city_name are not populated.
  • Coordinates are a per-code visual center point, not a street or address-level location.

Usage

The dataset files are available in CSV format and can be accessed and downloaded using the links provided in datapackage.yaml.

postal_code and admin_code2 must be read as text (dtype=str) – a naive pd.read_csv() can otherwise strip leading zeros.

For other inquiries, contact datahub@datopian.com

API access

Access dataset files directly from scripts, code, or AI agents.

Each file has a stable URL (r-link) that you can use directly in scripts, apps, or AI agents. These URLs are permanent and safe to hardcode.

  1. Fetch datapackage.yaml to inspect schema and resources
  2. Download data resources listed in datapackage.yaml
  3. Read README.md for full context
/logistics/postal-codes-dk/3 files
  • ATTRIBUTION.txthttps://datahub.io/logistics/postal-codes-dk/_r/-/ATTRIBUTION.txt
  • README.mddocumentationhttps://datahub.io/logistics/postal-codes-dk/_r/-/README.md
  • datapackage.yamlmetadata & schemahttps://datahub.io/logistics/postal-codes-dk/_r/-/datapackage.yaml