Brasil Hub icon

Brasil Hub

Query Brazilian public data (CNPJ, CEP, CPF, Banks, Câmbio, DDD, Holidays, FIPE, IBGE, NCM, PIX, Taxas) with multi-provider fallback

Actions28

IBGE → Cities

AI-generated

Summary

Query and return a list of cities for a specified Brazilian state (UF) using the chosen IBGE data provider.

Inputs

  • State (UF) (required) — The two-letter state abbreviation to query cities for, e.g., SP, RJ, MG.
  • Primary Provider — Select which data provider to query first for the IBGE city data; options include BrasilAPI, IBGE API, or auto (BrasilAPI preferred).
  • Include Raw Response — Choose whether to include the raw API response data alongside the normalized city list.
  • Timeout (Ms) — Set the HTTP request timeout in milliseconds for each provider attempt (minimum 1000 ms, maximum 60000 ms).

Output shape

a list of city objects normalized from the selected provider's API response, optionally including the raw API response if requested

The returned data consists of normalized city records corresponding to the given state (UF). If 'Include Raw Response' is enabled, each item includes the raw data as received from the API. Requests use the configured 'Primary Provider' with fallback behavior if set to auto. Timeout controls apply per provider attempt.

Links

Discussion