🇪🇸Spain (ES)
ISO 3166 country code - Europe / Southern Europe
Alpha-2ES
Alpha-3ESP
Numeric724
Currency
€ EUR - Euro
Memberships
EU, SEPA, EEA, Eurozone, Schengen
Code Example
import { country } from '@koshmoney/countries';
// Look up Spain by alpha-2 code
const es = country.getCountry('ES');
// => { name: 'Spain', alpha2: 'ES', alpha3: 'ESP', numeric: '724' }
// Look up by alpha-3 code
country.getCountryByAlpha3('ESP');
// Look up by numeric code
country.getCountryByNumeric('724');Subdivisions (69)
| Code | Name | Type |
|---|---|---|
| ES-A | Alacant* | Province |
| ES-AB | Albacete | Province |
| ES-AL | Almería | Province |
| ES-AN | Andalucía | Autonomous community |
| ES-AR | Aragón | Autonomous community |
...and 64 more. View all 69 subdivisions →
FAQ
- What is the ISO code for Spain?
- Spain has three ISO 3166-1 codes: Alpha-2 "ES", Alpha-3 "ESP", and Numeric "724".
- How many subdivisions does Spain have?
- Spain has 69 subdivisions defined in ISO 3166-2, including Alacant*, Albacete, Almería, and more.
- How to look up Spain in JavaScript?
- Install @koshmoney/countries via npm, then use country.getCountry('ES') to get all ISO codes, or subdivision.getByCountry('ES') for subdivisions.
Related Countries
Use Spain data in your project
Get ISO codes, subdivisions, currency, and more with a single npm package.
npm install @koshmoney/countries