Norwegian Postal Codes API

5790 postal codes. JSON over HTTPS. No auth.

GET/list

All postal codes.

curl https://postalcodes.trydig.io/list

GET/code/:postalCode

Single entry by code. 404 if missing.

curl https://postalcodes.trydig.io/code/0001
{"code":"0001","city":"Oslo","lat":59.9116,"lon":10.7545}

GET/list/city/:city

All codes in a city. Case-insensitive.

curl https://postalcodes.trydig.io/list/city/Bergen

GET/nearest?lat=&long=&length=

Top N nearest codes by Haversine distance. Longitude accepted as long or lon. length 1–5, defaults to 5. Includes distanceKm.

curl "https://postalcodes.trydig.io/nearest?lat=59.91&long=10.75&length=3"

AI agents: see /llms.txt for machine-readable docs.