Data Sources and Methodology

Prepared by the ImportLytics Editorial Team · Reviewed by Megan Sun · Last updated: October 29, 2026

Overview

ImportLytics presents international merchandise trade statistics for countries and for Harmonized System (HS) product codes, free to read. This page explains where the numbers come from, how we calculate and present them, what their limits are, and how the text on our pages is produced.

1. Data source

All trade figures come from the UN Comtrade Database, maintained by the United Nations Statistics Division. It collects official import and export statistics reported by national customs authorities and statistical offices, classified by HS product code and partner country.

ImportLytics is an independent website. It is not affiliated with, and is not endorsed by, the United Nations.

2. Coverage

  • Years: annual data for 2019–2023. Pages that show a “latest year” refer to the most recent year in this dataset, currently 2023.
  • Products: Harmonized System six-digit codes. Product codes and names on the site follow the current HS edition (HS 2022; 5,612 six-digit codes).
  • Countries: country pages cover the countries and territories in our database (219), with a separate export page and import page for each. Pages are published progressively, so not every page exists yet.
  • Values: US dollars, as reported to UN Comtrade.
  • Refresh: the dataset is a snapshot taken in August 2026. Historical data may be refreshed from time to time, without a fixed schedule. New pages are published on a rolling basis (HS code pages are added a few at a time); this does not change the underlying data year range.

3. How to read the figures: known limitations

  • Reported totals, not world totals. Product pages add up the values reported by the countries that submitted data to UN Comtrade for that code and year. Each page states how many exporting and importing countries are included. Countries that did not report are not included, so the true worldwide total may be higher.
  • Reporting differs by year. Which countries reported changes from year to year, so changes over time are indicative only. Where a large trader has no data for a year, the page says so instead of estimating it.
  • HS revisions. Data are used as reported under the HS edition each country applied in each year, with no conversion between editions. Our product pages list the current HS 2022 codes, so for codes that were created, split, or merged in the 2022 revision, earlier years may be missing or not strictly comparable.
  • Exports and imports do not match. Every country reports from its own customs records, so one country’s reported exports to another rarely equal that country’s reported imports from it. Valuation also differs: exports are usually recorded free on board (FOB) and imports including cost, insurance and freight (CIF), though practice varies by country.
  • Re-exports. Trade hubs can show inflated figures because goods are re-exported.
  • Aggregate categories. UN Comtrade uses groupings that are not single countries (for example “Other Asia, nes”; nes = not elsewhere specified). We keep them in totals and rankings, mark them with †, and exclude them from concentration, share-shift, growth, and net-position figures.
  • Missing or unclear data is flagged, not filled in. We do not estimate or smooth over gaps.
  • Information only. Content is provided for general information and is not trade, customs, financial, or legal advice.

4. How we calculate

Country pages

  • Total and year-over-year change: total reported trade value in the latest year, compared with the previous year.
  • Top partners and top product categories: ranked by value in the latest year. Share = value divided by the country’s total for that direction (export or import). Categories are HS chapters.
  • 5-year trend: the annual total for each year in the dataset.
  • Trade partner map: the ten largest partners, sized by share of the total.

HS code pages

  • Reported exports / imports: sum of values reported by all reporting countries for that code and year.
  • Top exporters and importers: countries ranked by reported value; share is of the reported total.
  • Market share shift: each country’s share in 2019 and in 2023, for countries that ranked in the top five in either year.
  • Concentration (HHI): the Herfindahl-Hirschman Index of country shares, from near 0 (many equal-sized countries) to 10,000 (a single country). A higher value means trade is concentrated in fewer countries.
  • Fastest-growing countries: compound annual growth rate (CAGR) over the years shown. Only countries above the size thresholds stated under each table are ranked.
  • Net trade position: reported exports minus reported imports in the latest year, for countries that reported both flows.

5. How our content is produced

  • Data. Programs calculate each page’s figures (rankings, shares, growth rates, concentration) from the UN Comtrade data and store them as a fact sheet.
  • Analysis text. The written analysis is drafted with the help of an AI language model working from the fact sheet. An automated check compares the numbers in the text with the fact sheet.
  • Editorial review. Our reviewer, Megan Sun, spot-checks the English text for language, logic, and numerical accuracy. Not every page is reviewed individually.
  • Translations. Other language versions are translated with the help of an AI language model. The reviewer spot-checks numerical accuracy and obvious errors. They are not reviewed by native-speaker editors for local idiom, so some phrasing may read less naturally than the English original.
  • Sources. Where the text cites outside sources, we link to them, and the links are checked automatically on a regular basis.

6. Updates and corrections

Each page shows the date it was last updated. If you find an error, please email us with the page URL and the figure in question. We aim to respond within a few business days, and corrected pages show a new “last updated” date.

7. Citing and reusing

You may link to our pages and cite brief excerpts (for example a figure, a short passage, or a reference to a chart), provided you credit the source. If you publish online, please link to the page you are citing. Suggested credit:

Source: ImportLytics (importlytics.com), based on UN Comtrade data.

Suggested citation formats, shown here with a real page as the example (replace it with the page you are citing):

Republishing substantial portions of our data or content, scraping, and commercial redistribution require our prior written permission; please contact us. Our Terms of Service apply. The underlying data is reported to and published by UN Comtrade, and its own terms apply to that data.

8. Glossary

  • Reporter: the country that submits trade data to UN Comtrade.
  • Partner: the trading counterpart recorded in a reporter’s data.
  • HS (Harmonized System): the international product classification used by customs authorities; the first six digits are common worldwide.
  • HHI: Herfindahl-Hirschman Index, a measure of concentration (see section 4).
  • CAGR: compound annual growth rate.
  • nes: not elsewhere specified.
  • Re-export: goods exported again in substantially the same state as imported.

9. Contact

Questions about the data, methodology, or corrections: contact@importlytics.com