Skip to main content
POST
Agregado dados

Request contract

  • Method and path: POST /apis/v1/servicodados-ibge-gov-br/official-statistics/agregado-dados
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/servicodados-ibge-gov-br/official-statistics/agregado-dados
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
agregado
number
required

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

Provider reference: minimum 1.

classificacao
object[]

classificacao

localidades
object[]

Territorial selections; default N1 all (Brazil).

periodos
string
default:-6

-N (last N periods, default -6), all, one period (2024, 202408), a range (202401-202412) or a comma list (2020,2022). Pattern: ^(all|-[0-9]{1,3}|[0-9]{4,6}(-[0-9]{4,6})?(,[0-9]{4,6}(-[0-9]{4,6})?)*)$.

Provider reference: default "-6".

variaveis
number[]

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

Response

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).

The response contains the tool result directly.

These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.