🇪🇸Spain (ES)

ISO 3166 country code - Europe / Southern Europe

About Spain

Spain (ES) is located in Europe, Southern Europe. The official currency is the Euro (EUR). It has 69 administrative subdivisions defined in ISO 3166-2. Spain is a member of EU, SEPA, EEA, Eurozone, Schengen.

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)

CodeNameType
ES-AAlacant*Province
ES-ABAlbaceteProvince
ES-ALAlmeríaProvince
ES-ANAndalucíaAutonomous community
ES-ARAragónAutonomous community
ES-ASAsturias, Principado deAutonomous community
ES-AVÁvilaProvince
ES-BBarcelonaProvince
ES-BABadajozProvince
ES-BIBizkaia*Province
ES-BUBurgosProvince
ES-CA CoruñaProvince
ES-CACádizProvince
ES-CBCantabriaAutonomous community
ES-CCCáceresProvince

Showing 15 of 69. 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 Articles

Related Countries

Use Spain data in your project

Get ISO codes, subdivisions, currency, and more with a single npm package.

npm install @koshmoney/countries