Countries API - CountriesDB

San Marino

ISO 3166-1 country codes and official ISO 3166-2 subdivisions for San Marino. Use them in forms, validation, and CountriesDB integrations.

About San Marino codes

Need San Marino (SM) for a checkout form, shipping zone, or backend validation? This page summarizes the ISO 3166-1 country codes and official subdivisions developers use with CountriesDB.

This guide lists 9 official ISO 3166-2 subdivisions for San Marino. These are the same codes CountriesDB serves through widgets and the Backend Data API.

For production, use the CountriesDB country/subdivision widget or fetch San Marino from the Data API and validate codes server-side instead of copying values from this page.

ISO codes

  • Alpha-2SM
  • Alpha-3SMR
  • Numeric674
  • Independenttrue
  • StatusOfficially assigned

Official subdivisions (9)

Official ISO 3166-2 codes for San Marino. Use these values in region/state selects and server-side validation, not informal or marketing region names.

CodeNameType
SM-01Acquavivamunicipality
SM-06Borgo Maggioremunicipality
SM-02Chiesanuovamunicipality
SM-07Città di San Marinomunicipality
SM-03Domagnanomunicipality
SM-04Faetanomunicipality
SM-05Fiorentinomunicipality
SM-08Montegiardinomunicipality
SM-09Serravallemunicipality

Frequently asked questions

What is the ISO 3166-1 code for San Marino?
San Marino uses ISO 3166-1 alpha-2 SM, alpha-3 SMR, and numeric 674. These codes show up in forms, shipping, banking, and APIs.
How many official ISO 3166-2 subdivisions does San Marino have?
CountriesDB lists 9 official ISO 3166-2 subdivisions for San Marino (states, provinces, regions, or equivalent). Use them when you validate region selects and shipping zones.
How do I use San Marino country and subdivision data in a form?
Use the CountriesDB widget or Data API to fill country and subdivision selects for San Marino, then validate submitted codes with the Validation API so alpha-2 and ISO 3166-2 values stay consistent.

Use San Marino in your app

Add CountriesDB country and subdivision selects with the widget docs, or call the Backend Data API for San Marino (SM) and validate submissions with the Validation API. Guides stay in sync with the same dataset your project keys already use. widget docs.