- ano
Integer. Year of the record. Optional.
- mes
Integer. Month of the record (1-12). Optional.
- natureza_juridica
Integer. Legal nature of the organization:
1 (Public Company), 2 (Public Foundation), 3 (Direct
Administration), 4 (Autarchy), 6 (Mixed Economy Company). Optional.
- organizacao_n1
Character or integer. SIORG code for the top-level
organization (Ministry level). Use get_siorg_orgaos() to look up
codes. You can pass plain codes (e.g., 244) — they are
automatically zero-padded to the 6-digit format the API expects
("000244"). Optional.
- organizacao_n2
Character or integer. SIORG code for the
second-level organization. Use get_siorg_estrutura() to browse
sub-units. Automatically zero-padded. Optional.
- organizacao_n3
Character or integer. SIORG code for the
third-level organization. Use get_siorg_estrutura() to browse
sub-units. Automatically zero-padded. Optional.
- use_cache
Logical. If TRUE (default), uses an in-memory cache.
- verbose
Logical. If TRUE, prints the full API URL being
called. Useful for debugging or testing in a browser. Defaults to
FALSE.
- page_size
Integer. Number of rows per API page. Defaults to
500. The CUSTOS backend is slow on broad queries: smaller pages
are more robust against HTTP 504 timeouts at the cost of a few
extra round-trips. The server default of 250 is conservative;
1000+ may time out. If the package returns
attr(result, "partial") = TRUE, lower this further or add a
mes filter.
- max_rows
Numeric. Maximum number of rows to return. Defaults
to Inf (all rows). Useful for quick tests with large datasets
(e.g., max_rows = 100).
- year
Integer. Year of the record. Optional. Maps to ano.
- month
Integer. Month of the record (1-12). Optional. Maps to
mes.
- legal_nature
Integer. Legal nature of the organization:
1 (Public Company), 2 (Public Foundation), 3 (Direct
Administration), 4 (Autarchy), 6 (Mixed Economy Company).
Optional. Maps to natureza_juridica.
- org_level1
Character or integer. SIORG code for the top-level
organization (Ministry level). Use get_siorg_organizations() to
look up codes. Plain codes (e.g., 244) are auto-padded to
"000244". Optional. Maps to organizacao_n1.
- org_level2
Character or integer. SIORG code (second level).
Use get_siorg_structure() to browse sub-units. Auto-padded.
Optional. Maps to organizacao_n2.
- org_level3
Character or integer. SIORG code (third level).
Use get_siorg_structure() to browse sub-units. Auto-padded.
Optional. Maps to organizacao_n3.