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

DDD → Query

AI-generated

Summary

Query details for a specific Brazilian area code (DDD) by providing the 2-digit code, optionally selecting the primary data provider and controlling request timeout.

Inputs

  • DDD (required) — The 2-digit Brazilian area code to query, must be between 11 and 99 (e.g. 11, 21, 51).
  • Primary Provider — Optionally select which data provider to try first for the query; choices include 'Auto (BrasilAPI First)', 'BrasilAPI', or 'Municipios-BR'. Defaults to auto selection with BrasilAPI first.
  • Include Raw Response — Flag to include the raw API response data alongside the normalized, processed data returned by the node.
  • Timeout (Ms) — Timeout in milliseconds for each HTTP request to the providers, ranging from 1000 to 60000 ms, defaulting to 10000 ms.

Output shape

a single JSON object containing normalized DDD information for the specified area code, along with optional raw response data if requested

The node attempts the selected or default providers in sequence until a valid response is obtained or all fail. The output includes metadata about the provider used and may include the raw API response if enabled. Timeouts and request failures are handled per provider with fallback logic.

Examples

Example 1: Query the DDD information for area code 11 using the default auto provider with a 10-second timeout without raw data.

DDD='11', Primary Provider='auto', Include Raw Response=false, Timeout=10000

Links

Discussion