Costa Rica
ISO 3166-1 country codes and official ISO 3166-2 subdivisions for Costa Rica. Use them in forms, validation, and CountriesDB integrations.
About Costa Rica codes
Need Costa Rica (CR) 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 7 official ISO 3166-2 subdivisions for Costa Rica. These are the same codes CountriesDB serves through widgets and the Backend Data API.
For production, use the CountriesDB country/subdivision widget or fetch Costa Rica from the Data API and validate codes server-side instead of copying values from this page.
ISO codes
Official subdivisions (7)
Official ISO 3166-2 codes for Costa Rica. Use these values in region/state selects and server-side validation, not informal or marketing region names.
| Code | Name | Type |
|---|---|---|
| CR-A | Alajuela | province |
| CR-C | Cartago | province |
| CR-G | Guanacaste | province |
| CR-H | Heredia | province |
| CR-L | Limón | province |
| CR-P | Puntarenas | province |
| CR-SJ | San José | province |
Frequently asked questions
- What is the ISO 3166-1 code for Costa Rica?
- Costa Rica uses ISO 3166-1 alpha-2 CR, alpha-3 CRI, and numeric 188. These codes show up in forms, shipping, banking, and APIs.
- How many official ISO 3166-2 subdivisions does Costa Rica have?
- CountriesDB lists 7 official ISO 3166-2 subdivisions for Costa Rica (states, provinces, regions, or equivalent). Use them when you validate region selects and shipping zones.
- How do I use Costa Rica country and subdivision data in a form?
- Use the CountriesDB widget or Data API to fill country and subdivision selects for Costa Rica, then validate submitted codes with the Validation API so alpha-2 and ISO 3166-2 values stay consistent.
Use Costa Rica in your app
Add CountriesDB country and subdivision selects with the widget docs, or call the Backend Data API for Costa Rica (CR) and validate submissions with the Validation API. Guides stay in sync with the same dataset your project keys already use. widget docs.