In the NUTS (Nomenclature of Territorial Units for Statistics) codes of Spain (ES), the following are the first-level political and administrative divisions.
Below the NUTS levels, the two LAU (Local Administrative Units) levels are:
The LAU codes of Spain can be downloaded here:
In the 2003 version, the two provinces of the Canary Islands were coded as follows: