Pablo 28/10/2022 - 13:24

La página web del INE dispone de un repositorio de datos de diversa índole llamado INEBASE. Dentro del mismo, en el apartado "Demografía" > "Padrón. Población por Municipios" > "Relación de municipios y sus códigos por provincias", encontrarás un fichero completo en formato XSL con todos los municipios y sus códigos.

El enlace a la página que hago referencia es https://www.ine.es/dyngs/INEbase/es/operacion.htm?c=Estadistica_C&cid=1…

Debes hacer click en el desplegable "Relación a 1 de enero de 2022" y luego en "Fichero completo". Es un archivo con formato XSL. Con otras herramientas lo podrías pasar a JSON para embeberlo en tu aplicación

* Indicates required fields
The content of this field will be shown publicly
Insert a valid email. Example: example@test.com
The content of this field is kept private and will not be shown publicly.
Datos.gob.es wants to favour user participation with comments that contribute to enriching the content published on the website. Comments received will be reviewed and approved by the portal management team to ensure quality. Datos.gob.es reserves the right to delete comments considered inappropriate. Therefore, comments that include insults, disrespectful language or considerations not related to the content in question shall not be published. Neither will comments be published that include personal data or that enable the identification of deceased persons.