Autonomous communities - Spain
This API provides geographic reference data for the autonomous communities of Spain, the country's first-level political and administrative divisions. It is part of the Geographical repository maintained by Opendatasoft, a French open-data platform provider, and is offered as a free, no-authentication dataset. Records include official names in Spanish along with alternate local names where applicable, such as Catalan or Occitan variants. The dataset is useful for geocoding, mapping, and analysis tasks requiring standardized administrative boundaries and names at the autonomous-community level in Spain, and can be integrated into applications built on the Opendatasoft platform.This dataset is part of the Geographical repository maintained by Opendatasoft. This dataset contains data for autonomous communities in Spain. Autonomous communities is a first level of political and administrative division. Names are in Spanish. An official alternate local name (Catalan or Occi...
Trust score
How is this computed?Weighted across five axes. Tap a ring for what it measures.
Data schema (9 fields)
Click a field to see example values.
| Field | Type | Description |
|---|---|---|
| geo_point_2dGeo Point | geo_point_2d | — |
| geo_shapeShape | geo_shape | — |
| year | date | — |
| acom_codeOfficial Code Autonomous Community | text | — |
| acom_nameOfficial Name Autonomous Community | text | — |
| acom_area_codeIso 3166-3 Area Code | text | — |
| acom_typeType | text | — |
| acom_name_localLocal Name Autonomous Community | text | — |
| acom_iso3166_codeIso 3166-2 Feature Code | text | — |
Schema captured from opendatasoft 6 days ago.
Query the data
Pick columns and a sort, then fetch a live preview straight from the source. Choose an API-filterable column (marked ▾) under “Where” to pick from its list of values.
Sample data (5 records)
Record 1year: 2022 · acom_code: 16
{
"year": "2022",
"acom_code": "16",
"acom_name": "País Vasco",
"acom_type": "autonomous communities",
"geo_shape": "[large value omitted]",
"geo_point_2d": {
"lat": 43.04351780934476,
"lon": -2.6164125736442703
},
"acom_area_code": "ESP",
"acom_name_local": "Euskadi",
"acom_iso3166_code": "PV"
}Record 2year: 2022 · acom_code: 03
{
"year": "2022",
"acom_code": "03",
"acom_name": "Principado de Asturias",
"acom_type": "autonomous communities",
"geo_shape": "[large value omitted]",
"geo_point_2d": {
"lat": 43.292377420848936,
"lon": -5.993366360759554
},
"acom_area_code": "ESP",
"acom_name_local": null,
"acom_iso3166_code": "AS"
}Record 3year: 2022 · acom_code: 10
{
"year": "2022",
"acom_code": "10",
"acom_name": "Comunitat Valenciana",
"acom_type": "autonomous communities",
"geo_shape": "[large value omitted]",
"geo_point_2d": {
"lat": 39.40148442908963,
"lon": -0.5546632988725562
},
"acom_area_code": "ESP",
"acom_name_local": null,
"acom_iso3166_code": "VC"
}Record 4year: 2022 · acom_code: 20
{
"year": "2022",
"acom_code": "20",
"acom_name": "Territorio no asociado a ninguna autonomía",
"acom_type": "autonomous communities",
"geo_shape": {
"type": "Feature",
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
-4.29789174,
35.170764247111244
],
[
-4.300142918,
35.17313405311123
],
[
-4.301297074,
35.17224612111123
],
[
-4.29789174,
35.170764247111244
]
]
],
[
[
[
-2.438863563,
35.1749863741112
],
[
-2.43809766,
35.177893591111165
],
[
-2.439693607,
35.17835338411116
],
[
-2.440253886,
35.180103068111144
],
[
-2.439429502,
35.18258448111112
],
[
-2.440804643,
35.182823583111116
],
[
-2.442306626,
35.180472205111144
],
[
-2.44340814,
35.18004568711114
],
[
-2.444239262,
35.177593035111165
],
[
-2.443102534,
35.176640984111174
],
[
-2.439790176,
35.176539420111176
],
[
-2.438863563,
35.1749863741112
]
]
],
[
[
[
-2.420750383,
35.17821959211116
],
[
-2.418689917,
35.17899682511115
],
[
-2.419374164,
35.18027749611114
],
[
-2.422206103,
35.180467780111144
],
[
-2.423691737,
35.179962566111136
],
[
-2.420750383,
35.17821959211116
]
]
],
[
[
[
-2.429654035,
35.18011486811115
],
[
-2.427366475,
35.181335487111134
],
[
-2.427525657,
35.18337679111111
],
[
-2.432054962,
35.1840469631111
],
[
-2.431676772,
35.181015178111124
],
[
-2.429654035,
35.18011486811115
]
]
],
[
[
[
-5.418303151,
35.91195924810336
],
[
-5.416698761,
35.91188610910337
],
[
-5.416143327,
35.91345255710335
],
[
-5.417603057,
35.91440826310334
],
[
-5.418552097,
35.91631861310332
],
[
-5.42160663,
35.91344781910334
],
[
-5.420548376,
35.91200952610336
],
[
-5.418303151,
35.91195924810336
]
]
]
]
},
"properties": {}
},
"geo_point_2d": {
"lat": 35.353164298560245,
"lon": -3.2157744842782665
},
"acom_area_code": "ESP",
"acom_name_local": null,
"acom_iso3166_code": null
}Record 5year: 2022 · acom_code: 18
{
"year": "2022",
"acom_code": "18",
"acom_name": "Ciudad Autónoma de Ceuta",
"acom_type": "autonomous communities",
"geo_shape": "[large value omitted]",
"geo_point_2d": {
"lat": 35.8935869743976,
"lon": -5.3430527324121435
},
"acom_area_code": "ESP",
"acom_name_local": null,
"acom_iso3166_code": "CE"
}Live sample captured at profiling time — values may have changed upstream.
Verification Status
Using the API
Configuration
- Base URL
- https://public.opendatasoft.com/api/explore/v2.1/catalog/datasets/georef-spain-comunidad-autonoma
License
- ✓ Redistributable
- ✓ Attribution required
Query examples
curl -s 'https://public.opendatasoft.com/api/explore/v2.1/catalog/datasets/georef-spain-comunidad-autonoma/records?limit=20' -H 'Accept: application/json'First 20 records of the dataset as JSON.
Uses the Opendatasoft Explore v2.1 syntax — supports select, where, group_by and order_by.
Rate limits
Dataset
Volume & freshness
License
No license declared upstream.
Source: opendatasoft
Machine-readable & source
Embed this badge in a README or wiki — it always shows the latest verification state and quality tier.