Skip to main content
POST
Agregados

Request contract

  • Method and path: POST /apis/v1/servicodados-ibge-gov-br/official-statistics/agregados
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/servicodados-ibge-gov-br/official-statistics/agregados
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
assunto
number

Subject id (e.g. 148). See the agregados docs for the list.

Provider reference: minimum 1.

classificacao
number

Classification id the table must carry.

Provider reference: minimum 1.

limit
number
default:50

Rows per page (default 50).

Provider reference: minimum 1; maximum 500; default 50.

nivel
string

Territorial level the table must offer: N1 Brazil, N2 macro-region, N3 UF, N6 municipality... Pattern: ^N[0-9]{1,3}$.

offset
number

next_offset from the previous page.

Provider reference: minimum 0.

periodicidade
string

Periodicity code: P1 annual, P5 monthly, P8 quarterly, P13 census... Pattern: ^P[0-9]{1,2}$.

periodo
string

Period the table must cover (e.g. 2024 or 202401). Pattern: ^[0-9]{4,6}$.

query
string

Substring matched (case- and accent-insensitive) against the table name or the survey name, e.g. ipca, populacao residente estimada.

Response

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.

The response contains the tool result directly.

The provider identifies items as the primary payload key.

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