Firecrawl Alexandria

IBGE service data API

1Request
numberRequired

SIDRA table id, e.g. 4709 (Census 2022 population), 4712 (Census 2022 occupied households), 6579 (population estimates), 1737 (IPCA).

object[]

classificacao

object[]

Territorial selections; default N1 all (Brazil).

string

`-N` (last N periods, default -6), `all`, one period (2024, 202408), a range (202401-202412) or a comma list (2020,2022).

number[]

Variable ids from agregado_metadados; joined with `|` upstream. Omit for `allxp` (every variable except percentages). Separate values with commas.

5 credits
Codefollows the fields above
const result = await firecrawl.scrape({
  alexandria: {
    provider: "servicodados-ibge-gov-br",
    capability: "official-statistics/agregado_dados",
    options: {
      agregado: 1737,
      periodos: "-3",
      variaveis: [
        63,
      ],
    },
  },
});
2Response example

This is a sample shape. Press Run to see live data from IBGE service data API.

{
  "agregado": 1737,
  "observed_at_ms": 1790047010074,
  "source_url": "https://servicodados.ibge.gov.br/api/v3/agregados/1737/periodos/-3/variaveis/63?localidades=N1[all]",
  "value_count": 3,
  "variaveis": [
    {
      "id": "63",
      "resultados": [
        {
          "classificacoes": [],
          "series": [
            {
              "localidade": {
                "id": "1",
                "nivel": {
                  "id": "N1",
                  "nome": "Brasil"
                },
                "nome": "Brasil"
              },
              "serie": {
                "202606": "0.16",
                "202607": "0.07",
                "202608": "-0.32"
              }
            }
          ]
        }
      ],
      "unidade": "%",
      "variavel": "IPCA - Variação mensal"
    }
  ]
}
Browse the library