MCPcopy Create free account
hub / github.com/BrasilAPI/BrasilAPI / getContiesByUf

Function getContiesByUf

services/ibge/gov.js:55–62  ·  view source on GitHub ↗
(uf)

Source from the content-addressed store, hash-verified

53 });
54
55export const getContiesByUf = async (uf) => {
56 const { data } = await axios.get(`${URL_UF}/${uf}/municipios`);
57
58 return data.map((item) => ({
59 nome: item.nome,
60 codigo_ibge: `${item.id}`,
61 }));
62};
63
64// reference: https://servicodados.ibge.gov.br/api/docs/agregados?versao=3#api-Variaveis-agregadosAgregadoPeriodosPeriodosVariaveisVariavelGet
65export const getUfEstimatePopulationByCode = async (uf) => {

Callers 1

getDataFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected