Query the historical data endpoint of the ComexStat API to retrieve Brazilian export and import data from 1989 to 1996, before the SISCOMEX system was implemented. Historical data uses the NBM (Brazilian Nomenclature of Goods) classification.
Usage
comex_historical(
flow = "export",
start_period,
end_period,
details = NULL,
filters = NULL,
month_detail = TRUE,
metric_fob = TRUE,
metric_kg = TRUE,
language = "en",
verbose = TRUE
)Arguments
- flow
Trade flow:
"export"or"import".- start_period
Start period in
"YYYY-MM"format (e.g."1990-01").- end_period
End period in
"YYYY-MM"format (e.g."1996-12").- details
Character vector of detail/grouping fields. Options:
"country","state","nbm".- filters
Named list of filters.
- month_detail
Logical. If
TRUE, break down by month. Default:TRUE.- metric_fob
Logical. Include FOB value (US$). Default:
TRUE.- metric_kg
Logical. Include net weight (kg). Default:
TRUE.- language
Response language:
"pt","en", or"es". Default:"en".- verbose
Logical. Show progress messages. Default:
TRUE.