IBGE Scraper: Brazilian Municipalities & Regions avatar

IBGE Scraper: Brazilian Municipalities & Regions

Pricing

Pay per usage

Go to Apify Store
IBGE Scraper: Brazilian Municipalities & Regions

IBGE Scraper: Brazilian Municipalities & Regions

Pull Brazilian municipalities and their full administrative hierarchy from the IBGE public API: state, mesoregion, microregion. No login, no proxy, no browser.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Naimur Hasan

Naimur Hasan

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

20 days ago

Last modified

Categories

Share

IBGE Scraper

Pulls Brazilian municipalities and their full administrative hierarchy from the IBGE public API. No login, no proxy, no browser.

Input

FieldTypeNotes
stateCodestringRequired. Two-letter UF, e.g. SP, RJ, BA. Default SP.
nameContainsstringAccent-insensitive name filter. Omit for all.
maxItemsintegerCap on municipalities. Default 100.

Output

One row per municipality: id, name, stateCode, stateName, region, mesoregion, microregion, immediateRegion, intermediateRegion.

Notes

  • Search is accent-insensitive. Brazilian place names are full of diacritics — São Paulo, Ribeirão Preto, Vitória — so a plain-ASCII filter would silently miss them. Names are normalised before comparison.
  • IBGE nests the state inside microrregiao.mesorregiao.UF, and separately under the newer regiao-imediata hierarchy. Both are read, with the older path preferred and the newer one as fallback, so the state is never blank.
  • id is the official 7-digit IBGE municipality code, which is the key other Brazilian datasets join on.
  • Brazil has 5,570 municipalities; São Paulo state alone has 645, which is why maxItems exists.