Countries API - CountriesDB

Samoa

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

About Samoa codes

Need Samoa (WS) 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 11 official ISO 3166-2 subdivisions for Samoa. These are the same codes CountriesDB serves through widgets and the Backend Data API.

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

ISO codes

  • Alpha-2WS
  • Alpha-3WSM
  • Numeric882
  • Independenttrue
  • StatusOfficially assigned

Official subdivisions (11)

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

CodeNameType
WS-AAA'anadistrict
WS-ALAiga-i-le-Taidistrict
WS-ATAtuadistrict
WS-FAFa'asaleleagadistrict
WS-GEGaga'emaugadistrict
WS-GIGagaifomaugadistrict
WS-PAPalaulidistrict
WS-SASatupa'iteadistrict
WS-TUTuamasagadistrict
WS-VFVa'a-o-Fonotidistrict
WS-VSVaisiganodistrict

Frequently asked questions

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

Use Samoa in your app

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