API Documentation

Check mail delivery status for a Swedish zip code from PostNord and CityMail.

GET /zip/:postalCode

Returns delivery status for the given zip code from both PostNord and CityMail as JSON.

Parameters

ParameterTypeDescription
postalCodestringSwedish postal code, e.g. 11234

Example request

GET /zip/11234

Example response

{
  "zip": "11234",
  "today": true,
  "citymail": {
    "delivery": "2026-04-01",
    "today": true
  },
  "postnord": {
    "delivery": "2026-04-01",
    "today": true
  }
}

Response fields

FieldTypeDescription
zipstringThe queried postal code
todaybooleantrue if either carrier delivers today
citymail.deliverystringNext CityMail delivery date (YYYY-MM-DD)
citymail.todaybooleantrue if CityMail delivers today
postnord.deliverystringNext PostNord delivery date (YYYY-MM-DD)
postnord.todaybooleantrue if PostNord delivers today

GET /img/:postalCode

Returns a 200×200 PNG image with a transparent background, showing the PostNord and CityMail logos. Each logo is shown in color if that carrier delivers today, or greyscale otherwise, with the next delivery date (day/month) beside it.

Parameters

ParameterTypeDescription
postalCodestringSwedish postal code, e.g. 11234

Example request

GET /img/11234

Example response

Example delivery status badge for zip 11234

Caching

Responses from both endpoints are cached per postal code until midnight Swedish time (Europe/Stockholm).