https://schoenfeld-solutions.github.io/open-postal-codes/api/v1
D-A-CH post code files
Open Postal Codes
Versioned CSV, JSON, and XML files for Germany, Austria, and Switzerland, delivered through a static file API with manifest hashes, compressed downloads, and stable v1 paths.
Recommended paths
Choose the shortest route for your task: inspect the manifest, download primary CSV files, or verify the published contract.
Start with the API index
Get file URLs, media types, byte counts, record counts, gzip hashes, and SHA-256 checksums.
DownloadsPick a country file
Use CSV for imports, JSON for application code, and XML for systems that require document-style exchange.
ContractReview the v1 schema
Confirm field order, country-specific post code length, `state`, rankings, source, and evidence count.
Quickstart
The API is a static file API. No token, account, or server-side negotiation is required.
curl -fsS https://schoenfeld-solutions.github.io/open-postal-codes/api/v1/index.json
curl -fsS -O https://schoenfeld-solutions.github.io/open-postal-codes/api/v1/de/post_code.csv
curl -fsS https://schoenfeld-solutions.github.io/open-postal-codes/api/v1/ch/post_code.csv.gz | gzip -dc
Country coverage
Each country publishes CSV, JSON, and XML files with the same record set and the same v1 field contract.
Downloads
The table is enhanced from the live manifest when available. Static links remain visible for direct access.
| File | Format | Records | Size | Gzip | SHA-256 |
|---|---|---|---|---|---|
| de/post_code.csv | CSV | 9,486 | Manifest | .gz | Manifest |
| at/post_code.csv | CSV | 3,879 | Manifest | .gz | Manifest |
| ch/post_code.csv | CSV | 4,833 | Manifest | .gz | Manifest |
Schema
CSV uses the field order below. JSON and XML publish the same fields with booleans and ranks typed naturally in JSON.
| Field | Meaning |
|---|---|
| code | Post code; DE has five digits, AT and CH have four digits. |
| city | City or place label associated with the post code. |
| country | ISO country code: DE, AT, or CH. |
| state | Bundesland for DE and AT; canton for CH. |
| county | Lower administrative area when available. |
| time_zone | Windows time zone identifier; D-A-CH uses W. Europe Standard Time. |
| is_primary_location | True for the highest-ranked row within a country and post code. |
| location_rank | Rank of this place within the same post code. |
| postal_code_rank | Rank of this post code within the same normalized place. |
| source | Either postal_boundary or address_fallback. |
| evidence_count | Accepted address evidence count behind the row. |
Quality signals
The repository validates contract shape, record floors, source metadata, manifest hashes, and gzip outputs before publication.