IBGE service data API API

How to connect IBGE service data API to ChatGPT

Add the Firecrawl plugin to ChatGPT once and it can call the IBGE service data API API and every other provider in Firecrawl Alexandria, with no IBGE service data API integration code.

Open Markdown

To connect IBGE service data API to ChatGPT, add the Firecrawl plugin to ChatGPT, sign in on a Firecrawl team with Alexandria enabled, and ask for IBGE service data API data in plain language. The connection works in ChatGPT and Codex, and you set it up once.

ChatGPT uses IBGE service data API as an MCP tool through Firecrawl's hosted MCP server, so you don't install or host a separate MCP server for IBGE service data API.

ChatGPT is OpenAI's AI assistant. Plugins add tools from other services, and the Firecrawl plugin adds web search, scraping and every data provider in Firecrawl Alexandria.

How do I connect IBGE service data API to ChatGPT?

  1. Install the Firecrawl plugin

    Open the Firecrawl listing in ChatGPT's plugin directory and select Install plugin. You can also open Plugins in ChatGPT or Codex and search for Firecrawl.

    The Firecrawl plugin page in ChatGPT with the Install plugin button
  2. Connect your Firecrawl account

    ChatGPT opens Firecrawl in your browser. Sign in, choose a team with Alexandria enabled, and approve access. No account yet? You can create one for free in the same flow.

    Firecrawl's consent screen asking to connect chatgpt.com to Firecrawl
  3. Attach Firecrawl to a chat

    Start a new chat so it loads the plugin, open the + menu and choose Firecrawl. You can also ask ChatGPT to use Firecrawl by name.

    ChatGPT's + menu with the Firecrawl plugin listed
  4. Ask ChatGPT for the data

    Ask in plain language and mention IBGE service data API or Firecrawl Alexandria. ChatGPT finds the IBGE service data API capability that fits and runs it. For example:

    Use Firecrawl to compare IBGE’s 2024 population estimates for São Paulo municipality 3550308 and Rio de Janeiro municipality 3304557.

What can ChatGPT do with IBGE service data API?

Brazil's national statistics institute (IBGE) open JSON API at servicodados.ibge.gov.br: territorial codes (localidades), SIDRA aggregated statistics (agregados: official municipal / state / national population and household counts from the 2022 Census and the yearly population estimates, IPCA, PNAD, GDP and ~8,000 other tables), 2010 Census first-name frequencies and rankings, IBGE news/releases and release calendar, country profiles and indicators (paises), territorial meshes (malhas) and the CNAE activity classification. Anonymous, no key, Portuguese-language values as published.

ChatGPT can run any of IBGE service data API's 12 capabilities through Alexandria. Each call is billed in Firecrawl credits on your Firecrawl team.

  • Agregado dados: Query a SIDRA table (/api/v3/agregados/{agregado}/periodos/{periodos}/variaveis/{variaveis}?localidades=...&classificacao=...): one or more variables, a period selector (`-3` last three, `2024`, `202401-202412`, `2020,2022`, `all`), one or more territorial levels each with explicit ids or `all`, and optional classification/category filters. This is the official source for municipal population and household counts (market sizing, demographics): Census 2022 resident population is agregado 4709 variavel 93, Census 2022 occupied private households (domicílios particulares permanentes ocupados) and their residents are agregado 4712 variaveis 381 and 382 (5930 = residents per household), and the yearly population estimates are agregado 6579 variavel 9324; select a municipality with localidades [{nivel: N6, ids: [7-digit IBGE code]}], a state with N3. Values come back as the source publishes them (strings; `...`, `-`, `X` are SIDRA's not-available markers). Costs 5 Firecrawl credits per call.
  • Agregado metadados: Metadata of one SIDRA table (/api/v3/agregados/{id}/metadados): name, survey, subject, periodicity with first/last period, territorial levels, variables (id, name, unit) and classifications with their categories; optionally the full list of period ids (/periodos) and the localities available at one level (/localidades/{nivel}). Costs 5 Firecrawl credits per call.
  • Agregados: Discover SIDRA tables (agregados) from the /api/v3/agregados catalog: filter server-side by assunto, periodicidade (P1 P5 P8 ...), nivel (N1 N3 N6 ...), periodo and classificacao, and client-side by a case/accent-insensitive text query over the table name and survey name. Returns flat rows {id, nome, pesquisa_id, pesquisa_nome} sliced with limit / offset. Costs 5 Firecrawl credits per call.
  • Calendario: IBGE release calendar (/api/v3/calendario/): upcoming and past release dates, optionally for one product (produto id or alias, e.g. 9173 or pesquisa-nacional-por-amostra-de-domicilios-continua-trimestral) and a date window; paginated. Costs 5 Firecrawl credits per call.
  • Cnae: CNAE 2.x economic-activity classification (/api/v2/cnae): list a level (secoes, divisoes, grupos, classes, subclasses), optionally under a parent (e.g. classes of divisao 01), or fetch one code with its full parent chain and notes. Costs 5 Firecrawl credits per call.
  • Localidade: Look up one or more localities by IBGE code at a level (/api/v1/localidades/{nivel}/{id|id|...}): full parent hierarchy per item. Unknown codes are dropped by the source; when none resolves the result is not_found. Costs 5 Firecrawl credits per call.
  • Localidades: List Brazilian localities of one level (regioes, estados, mesorregioes, microrregioes, regioes-intermediarias, regioes-imediatas, regioes-metropolitanas, municipios, distritos, subdistritos) from /api/v1/localidades, optionally bounded to a parent locality (e.g. municipios of estado 35 / SP, distritos of municipio 3550308) and filtered by name. Ordered by name; sliced client-side with limit / offset. Costs 5 Firecrawl credits per call.
  • Malha: Territorial mesh (boundary) of one locality from /api/v4/malhas/{nivel}/{id} as GeoJSON at a chosen simplification quality (minima | intermediaria | maxima), optionally subdivided into intra-region features (intrarregiao), plus the mesh metadata (/metadados: centroid, bounding box, area). Costs 5 Firecrawl credits per call.
  • Nomes: Frequency of one or more first names in the 2010 Census (/api/v2/censos/nomes/{nome|nome}): total by birth decade for Brazil or one locality (estado / municipio id), optionally by sex, or grouped by state (groupBy=UF: population, frequency and proportion per 100,000 for each UF). Names unknown to the census are not_found. Costs 5 Firecrawl credits per call.
  • Nomes ranking: Ranking of the most frequent first names in the 2010 Census (/api/v2/censos/nomes/ranking), optionally for one birth decade, one locality (estado or municipio id) and one sex. Top 20 as the source publishes. Costs 5 Firecrawl credits per call.

See all 12 capabilities and their inputs on the IBGE service data API API page.

What should I ask ChatGPT?

Name IBGE service data API or Firecrawl Alexandria in the prompt so ChatGPT reaches for it. Each example opens in ChatGPT with the prompt filled in.

Troubleshooting

Why doesn't ChatGPT use IBGE service data API?

Start a new chat after installing so ChatGPT loads the plugin, then attach Firecrawl from the + menu and name IBGE service data API or Firecrawl Alexandria in the prompt.

How do I switch the Firecrawl team ChatGPT uses?

Open the Firecrawl plugin page in ChatGPT, uninstall it from the menu next to Settings, then install it again and choose the other team on Firecrawl's consent screen.

Why does ChatGPT say IBGE service data API isn't available?

Alexandria needs a Firecrawl team with Alexandria enabled. Reinstall the plugin and pick that team when you approve access.

Use IBGE service data API in other AI apps

The same Firecrawl account reaches IBGE service data API from other AI apps. Pick one for its setup steps:

Other data providers you can connect to ChatGPT

Frequently Asked Questions

What is Firecrawl?

Firecrawl is the web data API to search, scrape and interact with the web at scale. It turns websites into clean, LLM-ready data for AI agents and apps. The Firecrawl plugin brings those tools into ChatGPT, along with every data provider in Firecrawl Alexandria.

What is Firecrawl Alexandria?

Firecrawl Alexandria is Firecrawl's library of 550+ data providers for AI agents, IBGE service data API among them. Each provider returns structured data through documented capabilities. ChatGPT finds the capability that fits your question and calls it through the Firecrawl plugin, so you don't write any integration code. Alexandria needs a Firecrawl account signed in on a team with Alexandria enabled, or an API key from such a team; keyless connections don't include it.

Is there a IBGE service data API MCP server for ChatGPT?

ChatGPT reaches IBGE service data API through Firecrawl's hosted MCP server, which serves IBGE service data API and every other Alexandria provider as tools. Add the Firecrawl plugin once and you don't install or host a separate MCP server for IBGE service data API.

What does connecting IBGE service data API to ChatGPT unlock?

ChatGPT can run all 12 of IBGE service data API's capabilities, including Agregado dados, Agregado metadados and Agregados, from any chat, with structured results it can sort, compare and summarize. For example, ask: "Use Firecrawl to compare IBGE’s 2024 population estimates for São Paulo municipality 3550308 and Rio de Janeiro municipality 3304557." In the same conversation, ChatGPT can combine IBGE service data API with Firecrawl's web search and scraping and the other providers in Firecrawl Alexandria.

Do I need my own IBGE service data API account or API key to use it in ChatGPT?

No. ChatGPT calls IBGE service data API through Firecrawl Alexandria and each call is billed in Firecrawl credits, so you don't need a separate IBGE service data API account or API key.

How much does it cost to use IBGE service data API in ChatGPT?

Each IBGE service data API call costs 5 Firecrawl credits. The capability list on this page shows each price and its unit. The credits come from the Firecrawl team you connect to ChatGPT, and finding the right capability is free.

Can ChatGPT use other providers besides IBGE service data API?

Yes. The same Firecrawl plugin reaches every provider in Firecrawl Alexandria, along with Firecrawl's web search and scraping, so you connect once.

Can I use IBGE service data API in other AI apps?

Yes. Connect Firecrawl to Claude, Cursor, Grok Bot, Muse signed in on a Firecrawl team with Alexandria enabled, or use the Firecrawl MCP server, CLI or API with an API key from that team, and the same IBGE service data API capabilities are available there. Keyless connections don't include Alexandria.

//
Get started
//
Ready to build?
Start getting web context for free and scale seamlessly as your project expands. No credit card needed.
Are you an AI agent? See setup options