{"api":{"id":"api_0a9c205baaf1986755d4fe8b","slug":"brazil-ibge-municipalities","name":"Brazil IBGE Municipalities API","description":"The official IBGE table of Brazilian municipalities with the full hierarchy flattened on each row: municipality code and name, micro and meso region, immediate and intermediate region, state and macro region.","kind":"ready_made","visibility":"public","domain":"ibge.gov.br","source_url":"https://servicodados.ibge.gov.br/api/docs/localidades","category":"government","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":10,"created_at":"2026-12-06T04:45:48.342Z","updated_at":"2026-12-06T04:45:48.342Z","runnable":true,"egress":null,"repairs":[],"repairs_total":0,"how":"Runs on a reader we built and maintain by hand for this site.","fields":[{"name":"id","type":"string","description":"IBGE's 7-digit municipality code.","required":true,"coverage":1,"example":"3500105"},{"name":"name","type":"string","description":"Municipality name.","required":false,"coverage":1,"example":"Adamantina"},{"name":"microregion","type":"string","description":"Name of the microregion.","required":false,"coverage":1,"example":"Adamantina"},{"name":"mesoregion","type":"string","description":"Name of the mesoregion.","required":false,"coverage":1,"example":"Presidente Prudente"},{"name":"immediate_region","type":"string","description":"Name of the immediate geographic region.","required":false,"coverage":1,"example":"Adamantina - Lucélia"},{"name":"intermediate_region","type":"string","description":"Name of the intermediate geographic region.","required":false,"coverage":1,"example":"Presidente Prudente"},{"name":"state","type":"string","description":"Two-letter state code, such as SP.","required":false,"coverage":1,"example":"SP"},{"name":"state_name","type":"string","description":"Full state name.","required":false,"coverage":1,"example":"São Paulo"},{"name":"state_id","type":"integer","description":"IBGE's 2-digit state code.","required":false,"coverage":1,"example":35},{"name":"region","type":"string","description":"Macro region name, such as Sudeste.","required":false,"coverage":1,"example":"Sudeste"}],"inputs":[{"name":"municipality_id","type":"integer","description":"IBGE 7-digit municipality code to look up one municipality, for example 3550308 (São Paulo).","example":3550308},{"name":"state","type":"string","description":"Two-letter state code, such as SP, to list that state's municipalities. Leave both inputs empty for all of Brazil.","example":"SP"}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"id":{"description":"IBGE's 7-digit municipality code.","type":"string"},"immediate_region":{"description":"Name of the immediate geographic region.","type":"string"},"intermediate_region":{"description":"Name of the intermediate geographic region.","type":"string"},"mesoregion":{"description":"Name of the mesoregion.","type":"string"},"microregion":{"description":"Name of the microregion.","type":"string"},"name":{"description":"Municipality name.","type":"string"},"region":{"description":"Macro region name, such as Sudeste.","type":"string"},"state":{"description":"Two-letter state code, such as SP.","type":"string"},"state_id":{"description":"IBGE's 2-digit state code.","type":"integer"},"state_name":{"description":"Full state name.","type":"string"}},"required":["id"],"title":"Brazil IBGE Municipalities API","type":"object"},"samples":[{"id":"3500105","name":"Adamantina","microregion":"Adamantina","mesoregion":"Presidente Prudente","immediate_region":"Adamantina - Lucélia","intermediate_region":"Presidente Prudente","state":"SP","state_name":"São Paulo","state_id":35,"region":"Sudeste"},{"id":"3500204","name":"Adolfo","microregion":"São José do Rio Preto","mesoregion":"São José do Rio Preto","immediate_region":"São José do Rio Preto","intermediate_region":"São José do Rio Preto","state":"SP","state_name":"São Paulo","state_id":35,"region":"Sudeste"},{"id":"3500303","name":"Aguaí","microregion":"Pirassununga","mesoregion":"Campinas","immediate_region":"São João da Boa Vista","intermediate_region":"Campinas","state":"SP","state_name":"São Paulo","state_id":35,"region":"Sudeste"}],"validation":{"checked_at":"2026-12-06T04:45:48.335Z","field_coverage":{"id":1,"immediate_region":1,"intermediate_region":1,"mesoregion":1,"microregion":1,"name":1,"region":1,"state":1,"state_id":1,"state_name":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"links":{"run":"https://pullrow.dev/v1/apis/api_0a9c205baaf1986755d4fe8b/run","openapi":"https://pullrow.dev/v1/apis/api_0a9c205baaf1986755d4fe8b/openapi.json","contract":"https://pullrow.dev/v1/apis/api_0a9c205baaf1986755d4fe8b/contract.json","page":"https://pullrow.dev/catalog/brazil-ibge-municipalities"},"runs_30d":0,"success_rate_30d":null,"price_per_1k_usd":0.5,"featured":false,"reliability":{"window_days":30,"runs":0,"completed":0,"succeeded":0,"failed":0,"success_rate":null,"last_run_at":null},"demo":{"available":false,"max_records":0,"reason":"Every run of this API costs us money, so it has no free live demo. The sample records on its page show what it returns.","code":"demo_not_available"},"meta":{"limitations":["Names and codes are as IBGE publishes them; the table changes only when municipalities are created or merged, which is rare.","A few municipalities have no micro or meso region in IBGE's current table; those fields are then empty.","No population or other statistics: this is the code and hierarchy table only, meant for joining with other Brazilian data.","Open data from IBGE (servicodados.ibge.gov.br); credit IBGE when you republish it. The country has about 5,570 municipalities, all returned when no filter is given."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"id","label":"ID","description":"IBGE's 7-digit municipality code.","group":"Technical","shown":false,"written":false},{"name":"name","label":"Municipality name","description":"","group":"Basics","shown":true,"written":false},{"name":"microregion","label":"Microregion","description":"Name of the microregion.","group":"Basics","shown":true,"written":false},{"name":"mesoregion","label":"Mesoregion","description":"Name of the mesoregion.","group":"Basics","shown":true,"written":false},{"name":"immediate_region","label":"Immediate region","description":"Name of the immediate geographic region.","group":"Location","shown":true,"written":false},{"name":"intermediate_region","label":"Intermediate region","description":"Name of the intermediate geographic region.","group":"Location","shown":true,"written":false},{"name":"state","label":"State","description":"Two-letter state code, such as SP.","group":"Location","shown":true,"written":false},{"name":"state_name","label":"Full state name","description":"","group":"Location","shown":true,"written":false},{"name":"state_id","label":"State ID","description":"IBGE's 2-digit state code.","group":"Technical","shown":false,"written":false},{"name":"region","label":"Region","description":"Macro region name, such as Sudeste.","group":"Location","shown":true,"written":false}],"inputs":[{"name":"municipality_id","label":"Municipality ID","help":"IBGE 7-digit municipality code to look up one municipality, for example 3550308 (São Paulo).","example":"3550308","written":false},{"name":"state","label":"State","help":"Two-letter state code, such as SP, to list that state's municipalities. Leave both inputs empty for all of Brazil.","example":"SP","written":false}]}},"incidents":[]}