Description Usage Arguments Examples
Querying the HMRC OTS data using HS nomenclature. The arguments are not case-sensitive the API itself is still in BETA thus we continue reporting issues.
1 2 3 4 5 6 7 8 |
time_window |
like "MonthId gt 202000 and MonthId lt 202100" which is everything from 2020 or "MonthId gt 201908 and MonthId lt 202009" last 12 month up to end of August |
key_word |
anything like "cheese" or "whisky" or "sprout" stick to single words |
filter_agg |
the aggregation level at which you are looking for the keyword like "Cn8" or "hs6" |
country_filter |
use ISO-2-alpha code e.g. "FR" check HMRC for inconsistencies such as former Yugoslavian countries. |
flow_filter |
choose from "export" "import" or "EU" |
groupby |
takes a vector of keywords the full range is c("country", "year", "month", "HS2", "HS4", "HS6", "CN8") |
1 2 | call_hs_hmrc_ots_with_key_word_search(filter_agg = "cn8", time_window = "MonthId eq 201901", groupby = c("hs4", "country"))
call_hs_hmrc_ots_with_key_word_search(key_word = "cheese", filter_agg = "hs4", time_window = "MonthId gt 201906 and MonthId lt 202008", country_filter = "FR", flow_filter = "EXport", groupby = c("CN8", "COUNTRY"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.