Ir al contenido

Retorna uno o más listados de municipios.

POST
/municipios
curl --request POST \
--url https://apis.datos.gob.ar/georef/api/municipios \
--header 'Content-Type: application/json' \
--data '{ "municipios": [ { "id": "example", "nombre": "example", "provincia": "Santa Fe", "interseccion": "provincia:82,departamento:82084,municipio:820196", "orden": "id", "aplanar": true, "campos": "estandar", "max": 10, "inicio": 10, "exacto": true } ] }'

Permite realizar varias búsquedas sobre el listado de municipios en simultáneo.

Consultas en formato JSON.

Media typeapplication/json
object
municipios
required
Array<object>
>= 1 items
object
id
string
>= 1 characters
nombre
string
>= 1 characters
provincia
string
>= 1 characters
Example
Santa Fe
interseccion
string
Example
provincia:82,departamento:82084,municipio:820196
orden
string
Allowed values: id nombre
aplanar
Example
true
campos
string
>= 1 characters
Example
estandar
max
integer
>= 1 <= 5000
Example
10
inicio
integer
>= 1 <= 5000
Example
10
exacto
Example
true

Listados de municipios.

Media typeapplication/json
object
resultados
Array<object>
object
cantidad
integer
total
integer
inicio
integer
parametros
object
municipios
Array<object>
object
id
string
nombre
string
nombre_completo
string
provincia
object
id
string
nombre
string
centroide
object
lat
number
lon
number
categoria
string
Example
{
"resultados": [
{
"cantidad": 10,
"total": 1820,
"inicio": 0,
"parametros": {},
"municipios": [
{
"id": "820196",
"nombre": "Granadero Baigorria",
"nombre_completo": "Municipio Granadero Baigorria",
"provincia": {
"id": "82",
"nombre": "Santa Fe"
},
"centroide": {
"lat": -32.851319,
"lon": -60.704006
},
"categoria": "Municipio"
}
]
}
]
}

Error al procesar las consultas.

Media typeapplication/json
object
errores
Array<Array<object>>
Example
{
"errores": [
[
{
"codigo_interno": 1000,
"mensaje": "El parámetro especificado no existe.",
"nombre_parametro": "prueba",
"ubicacion": "querystring"
}
]
]
}