Postal code · CAP

San Marino postal codes

San Marino postal codes have the format 4789#, for example 47890. zipcodestack has 26 postal codes for San Marino.

Format
4789#
Example
47890
Codes in our database
26
Local name
CAP

San Marino postal code format

Pattern4789# (# digit, @ letter)
Examples47890, 47891, 47895, 47899
Regex^(?:4789\d)$
Official lookupwww.poste.it

Format and regex from Google's address metadata (libaddressinput). The regex checks the shape of a code, not whether it exists.

Sample postal codes

47890478914789247893478944789547896478974789847899

Neighbouring countries

San Marino postal codes: FAQ

What is the postal code format in San Marino?

San Marino postal codes follow the pattern 4789# (# = digit, @ = letter). Examples: 47890, 47891, 47895, 47899.

What regex validates San Marino postal codes?

^(?:4789\d)$ matches the official format (from Google's address metadata). It checks the shape only; whether a code exists needs a lookup in a postal code database such as the zipcodestack API.

What are postal codes called in San Marino?

In San Marino the postal code is called CAP.

How many postal codes are there in San Marino?

The zipcodestack database contains 26 postal codes for San Marino, each with place name, region and coordinates.

Postal code API

Look up San Marino postal codes by API

zipcodestack looks up, validates and searches postal codes in 149 countries: city, state, coordinates, distances and radius search, as JSON.

/v1/search documentation International postal code API All documentation

300 free requests every month. No credit card required.

GET https://api.zipcodestack.com/v1/search?codes=47890&country=sm

{
  "results": {
    "47890": [{
      "postal_code": "47890",
      "country_code": "SM",
      "city": "…",
      "state": "…",
      "latitude": …,
      "longitude": …
    }]
  }
}

Free postal code tools

Start using our ZIP Code API for free today!

Get 300 requests / month for free