Municipalities - Spain
This dataset is part of the geographical reference data repository maintained by Opendatasoft. It provides administrative boundary and reference data for municipalities in Spain, including official alternate local names in Catalan or Occitan where they exist. The data is designed for use by processors and tools that consume standardized geographic reference datasets, supporting mapping, geocoding, and administrative analysis applications. It forms part of a broader collection of geographic reference datasets covering multiple countries, published through the Opendatasoft public open-data platform, and is intended to serve as a consistent base layer for applications requiring Spanish municipal-level geographic information.This dataset is part of the Geographical repository maintained by Opendatasoft. This dataset contains data for municipalities in Spain. An official alternate local name (Catalan or Occitan language) is provided (when the alternate name exists). Processors and tools are using this data. Enhancemen...
Trust score
How is this computed?Weighted across five axes. Tap a ring for what it measures.
Data schema (12 fields)
Click a field to see example values.
| Fill | 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 | — |
| — | prov_codeOfficial Code Province | text | — |
| — | prov_nameOfficial Name Province | text | — |
| — | mun_codeOfficial Code Municipality | text | — |
| — | mun_nameOfficial Name Municipality | text | — |
| — | mun_area_codeIso 3166-3 Area Code | text | — |
| 100% | mun_typeType | text | — |
| 1.6% | mun_name_localLocal Name Municipality | 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 · mun_code: 05048
{
"year": "2022",
"mun_code": "05048",
"mun_name": "Cantiveros",
"mun_type": "municipality",
"acom_code": "07",
"acom_name": "Castilla y León",
"geo_shape": "[large value omitted]",
"prov_code": "05",
"prov_name": "Ávila",
"geo_point_2d": {
"lat": 40.95583599853469,
"lon": -4.960137620359768
},
"mun_area_code": "ESP",
"mun_name_local": null
}Record 2year: 2022 · mun_code: 10043
{
"year": "2022",
"mun_code": "10043",
"mun_name": "Campo Lugar",
"mun_type": "municipality",
"acom_code": "11",
"acom_name": "Extremadura",
"geo_shape": "[large value omitted]",
"prov_code": "10",
"prov_name": "Cáceres",
"geo_point_2d": {
"lat": 39.16963651870412,
"lon": -5.765106514293534
},
"mun_area_code": "ESP",
"mun_name_local": null
}Record 3year: 2022 · mun_code: 34185
{
"year": "2022",
"mun_code": "34185",
"mun_name": "Triollo",
"mun_type": "municipality",
"acom_code": "07",
"acom_name": "Castilla y León",
"geo_shape": "[large value omitted]",
"prov_code": "34",
"prov_name": "Palencia",
"geo_point_2d": {
"lat": 42.93183924420595,
"lon": -4.679390859819114
},
"mun_area_code": "ESP",
"mun_name_local": null
}Record 4year: 2022 · mun_code: 44241
{
"year": "2022",
"mun_code": "44241",
"mun_name": "Valdealgorfa",
"mun_type": "municipality",
"acom_code": "02",
"acom_name": "Aragón",
"geo_shape": "[large value omitted]",
"prov_code": "44",
"prov_name": "Teruel",
"geo_point_2d": {
"lat": 41.00286584851005,
"lon": -0.02021401835085633
},
"mun_area_code": "ESP",
"mun_name_local": null
}Record 5year: 2022 · mun_code: 53015
{
"year": "2022",
"mun_code": "53015",
"mun_name": "Comunidad de Bascuñana y Viloria de Rioja",
"mun_type": "municipality",
"acom_code": "07",
"acom_name": "Castilla y León",
"geo_shape": {
"type": "Feature",
"geometry": {
"type": "MultiPolygon",
"coordinates": [
[
[
[
-3.102780456,
42.41656884306047
],
[
-3.103362053,
42.41546058206047
],
[
-3.103833179,
42.41370398106046
],
[
-3.102680196,
42.41470467806047
],
[
-3.102231504,
42.41532649206047
],
[
-3.102780456,
42.41656884306047
]
]
],
[
[
[
-3.110106413,
42.42176762206044
],
[
-3.10956161,
42.42302898406045
],
[
-3.111312025,
42.42303632406044
],
[
-3.112332691,
42.422810189060435
],
[
-3.113365214,
42.42242192406044
],
[
-3.114046845,
42.42293460106044
],
[
-3.114665306,
42.42212344706045
],
[
-3.115429763,
42.42139319806044
],
[
-3.115307421,
42.42096103006044
],
[
-3.115015157,
42.42066412006043
],
[
-3.11452879,
42.42057454106045
],
[
-3.11404275,
42.42066508106044
],
[
-3.110106413,
42.42176762206044
]
]
],
[
[
[
-3.087115749,
42.427010635060434
],
[
-3.08761356,
42.426577972060436
],
[
-3.088245233,
42.42625327706044
],
[
-3.088755919,
42.426342949060434
],
[
-3.091149159,
42.42527838706043
],
[
-3.091644906,
42.423449772060444
],
[
-3.090039324,
42.422721536060436
],
[
-3.089577198,
42.422568790060446
],
[
-3.088813148,
42.423812209060436
],
[
-3.088583185,
42.42452386206045
],
[
-3.088279666,
42.42479427306043
],
[
-3.086906853,
42.425380699060426
],
[
-3.086189906,
42.42557035806044
],
[
-3.085947298,
42.42594879106043
],
[
-3.08590014,
42.42702955006043
],
[
-3.087115749,
42.427010635060434
]
]
]
]
},
"properties": {}
},
"prov_code": "09",
"prov_name": "Burgos",
"geo_point_2d": {
"lat": 42.42295943305548,
"lon": -3.099394639126687
},
"mun_area_code": "ESP",
"mun_name_local": null
}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-municipio
License
- ✓ Redistributable
- ✓ Attribution required
Query examples
curl -s 'https://public.opendatasoft.com/api/explore/v2.1/catalog/datasets/georef-spain-municipio/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.