Sources and method
Every figure comes from a national customs or statistics agency. A collector per country reads the official source; the publisher stores the results in one database and writes the static files this site is built from. Last build: 2026-11-10 16:40:07 UTC.
- Products are HS chapters (2 digits); values are annual, in US$.
- Where a source reports in local currency, values are converted at the ECB annual-average rate.
- Partner shows only the economies tracked here, so partner lists do not add up to the total.
- Imports may be attributed to the country of origin or of consignment depending on the source; each country page says which.
United States
- Agency
- U.S. Census Bureau, Foreign Trade Division
- Source
- https://www.census.gov/foreign-trade/index.html
- Licence
- U.S. Government work, public domain; the Census API terms ask for the disclaimer that a product 'uses the Census Bureau Data API but is not endorsed or certified by the Census Bureau' (not re-read for this build)
- Redistribution
- allowed (with attribution)
- Notes
- API verified live on 2026-11-07 (needs a free key in CENSUS_API_KEY). Quantity and unit exist at 10 digits only. Exports are FAS (Schedule B), imports are general imports at customs value (HTS); the two 10-digit schemes differ, only HS6 is comparable. Partner is destination (exports) or country of origin (imports). Country codes come from Census Schedule C.
United Kingdom
- Agency
- HM Revenue & Customs (HMRC), UK Trade Info
- Source
- https://www.uktradeinfo.com/
- Licence
- Open Government Licence v3.0 (attribute HMRC)
- Redistribution
- allowed (with attribution)
- Notes
- API verified live. Special trade system; exports FOB, imports CIF excluding UK duty; values in GBP; no US$ (derive with an FX provider). HMRC attributes imports to the country of dispatch (consignment) and exports to the final destination (its help page; a June 2024 comparison with Comtrade agrees: Germany is higher, China lower than by origin). Whether the EU/non-EU split of older notes matters was not verified. Non-itemised (confidential or low-value) amounts have no product code and are not returned, so rows sum to less than HMRC's headline totals. Series break at Brexit (2021).
Japan
- Agency
- Ministry of Finance, Customs and Tariff Bureau (via e-Stat)
- Source
- https://www.customs.go.jp/toukei/info/index_e.htm
- Licence
- Government of Japan Standard Terms of Use, stated on e-Stat to be compatible with Creative Commons Attribution 4.0 (attribute the source); e-Stat lists content under other terms separately
- Redistribution
- allowed (with attribution)
- Notes
- API verified live 2026-11-07 (needs a free application ID, ESTAT_APP_ID). 9-digit statistical code, JPY only. No USD and no quantities here. Exports FOB, imports CIF; partner is the destination (exports) or country of origin (imports) per MOF practice (not read from the API). Stages: detailed/provisional, revised, fixed. A month that is not yet published is filled with zeros. Special codes starting 00 are not HS and are left out of the 2/4/6-digit aggregates (returned only at 9 digits).
Hong Kong
- Agency
- Census and Statistics Department (C&SD), Hong Kong SAR
- Source
- https://tradeidds.censtatd.gov.hk
- Licence
- DATA.GOV.HK Terms and Conditions v1.2 (26 May 2025): free download, distribution and reproduction, commercial or not, with source identification, attribution to the Government/DATA.GOV.HK and an indemnity; the FAQ excludes re-sale; silent on derivative works; the dataset's own page was not checked. The API states usage limits that can change without notice
- Redistribution
- allowed (with attribution)
- Notes
- Verified live 2026-11-08 on the documented Trade-IDDS API. HKHS 2, 4, 6 and 8 digits (HS6 plus two Hong Kong digits); values in HK$ '000, so rounded to HK$1,000; quantity only at 6 and 8 digits, in the commodity's own unit. Codes must be listed explicitly: the collector uses C&SD's current HKHS list, so codes that existed only in an older classification are not enumerated. Imports by origin; exports and re-exports by consignment (destination). Valuation: C&SD states imports are c.i.f. (HKMDS 2016 release) and, in its trade press-release notes, domestic exports and re-exports f.o.b. (seen via a reproduction, not C&SD's own page). C&SD warns that detailed commodity data may contain reporting errors. Nesoi groups come out as X:<code>. The headline totals exclude HS 7108 (non-monetary gold) and probably 7112 (precious-metal scrap), which the commodity rows include: drop them before comparing row sums with totals (see HEADLINE_EXCLUDED_PREFIXES). Annual figures are the API's own annual series (monthly sums can differ).