Municipalities - Spain
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 43 minutes 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: 34034
{
"year": "2022",
"mun_code": "34034",
"mun_name": "Boadilla del Camino",
"mun_type": "municipality",
"acom_code": "07",
"acom_name": "Castilla y León",
"geo_shape": {
"type": "Feature",
"geometry": {
"type": "Polygon",
"coordinates": [
[
[
-4.374820773,
42.24804955706096
],
[
-4.365033843,
42.248391620060964
],
[
-4.362000326,
42.24712182406097
],
[
-4.360984353,
42.24609820006097
],
[
-4.356733629,
42.24458153106098
],
[
-4.352571583,
42.24266739406098
],
[
-4.350276034,
42.24074015506099
],
[
-4.349174547,
42.240239783061
],
[
-4.347092747,
42.23980496006099
],
[
-4.34497928,
42.23901923806099
],
[
-4.342146676,
42.23746738406099
],
[
-4.340874636,
42.236347516061
],
[
-4.340331792,
42.235894560061006
],
[
-4.337789702,
42.236608707060995
],
[
-4.335130945,
42.237540301060996
],
[
-4.328349622,
42.240699122060995
],
[
-4.31876507,
42.244313103060975
],
[
-4.315698875,
42.24491571006098
],
[
-4.315066153,
42.24538227406097
],
[
-4.307912804,
42.25057049106096
],
[
-4.307616334,
42.250889081060954
],
[
-4.304641663,
42.25536290906095
],
[
-4.301899619,
42.26173426906093
],
[
-4.3018707,
42.2662195540609
],
[
-4.301512345,
42.27119489806089
],
[
-4.302987667,
42.27452834306088
],
[
-4.303364749,
42.27517248306088
],
[
-4.304432494,
42.27637613706087
],
[
-4.307041919,
42.278823035060874
],
[
-4.307999191,
42.279955864060874
],
[
-4.315150583,
42.29083418706084
],
[
-4.31473678,
42.294846541060814
],
[
-4.326537705,
42.2999429810608
],
[
-4.339920077,
42.29657224806082
],
[
-4.340135513,
42.29643464106081
],
[
-4.354265474,
42.287262747060836
],
[
-4.358296811,
42.284648401060856
],
[
-4.358772155,
42.284192477060856
],
[
-4.366404855,
42.27370900206088
],
[
-4.368545935,
42.26954074506091
],
[
-4.369461122,
42.26756652706091
],
[
-4.373616119,
42.257331117060936
],
[
-4.374145102,
42.25600991206094
],
[
-4.374208618,
42.25335239606095
],
[
-4.37458722,
42.25013273306096
],
[
-4.374820773,
42.24804955706096
]
]
]
},
"properties": {}
},
"prov_code": "34",
"prov_name": "Palencia",
"geo_point_2d": {
"lat": 42.26687531967917,
"lon": -4.336271886162001
},
"mun_area_code": "ESP",
"mun_name_local": null
}Record 2year: 2022 · mun_code: 40034
{
"year": "2022",
"mun_code": "40034",
"mun_name": "Caballar",
"mun_type": "municipality",
"acom_code": "07",
"acom_name": "Castilla y León",
"geo_shape": "[large value omitted]",
"prov_code": "40",
"prov_name": "Segovia",
"geo_point_2d": {
"lat": 41.12262229929747,
"lon": -3.9642473019246154
},
"mun_area_code": "ESP",
"mun_name_local": null
}Record 3year: 2022 · mun_code: 09472
{
"year": "2022",
"mun_code": "09472",
"mun_name": "Villazopeque",
"mun_type": "municipality",
"acom_code": "07",
"acom_name": "Castilla y León",
"geo_shape": "[large value omitted]",
"prov_code": "09",
"prov_name": "Burgos",
"geo_point_2d": {
"lat": 42.19329960627165,
"lon": -4.022712146519634
},
"mun_area_code": "ESP",
"mun_name_local": null
}Record 4year: 2022 · mun_code: 12117
{
"year": "2022",
"mun_code": "12117",
"mun_name": "Torreblanca",
"mun_type": "municipality",
"acom_code": "10",
"acom_name": "Comunitat Valenciana",
"geo_shape": "[large value omitted]",
"prov_code": "12",
"prov_name": "Castelló",
"geo_point_2d": {
"lat": 40.20982733271223,
"lon": 0.20149516698167166
},
"mun_area_code": "ESP",
"mun_name_local": null
}Record 5year: 2022 · mun_code: 14026
{
"year": "2022",
"mun_code": "14026",
"mun_name": "Espiel",
"mun_type": "municipality",
"acom_code": "01",
"acom_name": "Andalucía",
"geo_shape": "[large value omitted]",
"prov_code": "14",
"prov_name": "Córdoba",
"geo_point_2d": {
"lat": 38.13276032589953,
"lon": -5.076434350117788
},
"mun_area_code": "ESP",
"mun_name_local": null
}Live sample captured at profiling time — values may have changed upstream.
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.