About
The SICONFI API
(https://apidatalake.tesouro.gov.br/docs/siconfi/) provides
fiscal data for all Brazilian states, municipalities, and the Federal
District. It includes budget execution reports (RREO), fiscal management
reports (RGF), annual accounts declarations (DCA), and accounting
balances matrices (MSC).
Parameter mapping
an_exercicio |
fiscal_year |
Fiscal year |
id_ente |
entity_id |
IBGE entity code |
no_anexo |
appendix |
Report appendix name |
an_referencia |
year |
Reference year |
me_referencia |
month |
Reference month |
nr_periodo |
period |
Period number |
co_tipo_demonstrativo |
report_type |
Report type |
co_esfera |
sphere |
Government sphere (M/E/U) |
co_poder |
branch |
Government branch |
in_periodicidade |
periodicity |
Periodicity (Q/S) |
co_tipo_matriz |
matrix_type |
MSC matrix type (MSCC/MSCE) |
classe_conta |
account_class |
Account class |
id_tv |
value_type |
Value type |
Examples
RREO – Budget Execution
# RREO Anexo 01 for Tocantins, 6th bimester of 2022
rreo <- get_budget_report(
fiscal_year = 2022, period = 6,
report_type = "RREO",
appendix = "RREO-Anexo 01",
sphere = "E", entity_id = 17
)
RGF – Fiscal Management
# RGF Anexo 01 for the executive branch of Tocantins
rgf <- get_fiscal_report(
fiscal_year = 2022, periodicity = "Q", period = 3,
report_type = "RGF", appendix = "RGF-Anexo 01",
sphere = "E", branch = "E", entity_id = 17
)
MSC – Accounting Balances Matrix
# Equity accounts (class 1) for December 2022
msc <- get_msc_equity(
entity_id = 17, year = 2022, month = 12,
matrix_type = "MSCC", account_class = 1,
value_type = "ending_balance"
)