Downloadable data · CSV

Global Import-Export Country HS4 Flows

Annual country exports and imports by HS4 product group, with trade balance and counts of active partners and HS6 products.

Years
1995-2024 annual observations where available
Records
6,665,469
Columns
9

What is in the download?

Annual country exports and imports by HS4 product group, with trade balance and counts of active partners and HS6 products.

Each row represents one country, year, and HS4 product group.

A missing product-year value means no figure is available; it does not mean zero exports.

Data source: See source details.

Sample rows from the file

View sample (JSON)
Sample values in the original column order and precision.
Year · Countries · ProductReported valueCalculated indicatorsReported valueReference fields
YearCountryProduct group · HS4Exports · US$Imports · US$Balance · US$export partner countimport partner countactive hs6 count
2009ABW01014468.31521589969512532.869694832596-8064.554478932901334
2009ABW010204519.535909087499-4519.535909087499034
2009ABW010308195.681336536389-8195.681336536389011
2009ABW01054449.903398815411146186.50031522935-141736.59691641395265
2009ABW01066222.55109454556735213.489916550476-28990.938822004908457
2009ABW020178705886.5007361998-705808.5007361998153
2009ABW020214021.285547390267377205.723194842-7363184.437647452493
2009ABW02032339.5179974482763997711.860988955-3995372.34299150676106
2009ABW02042613.487137517233409606.73420363164-406993.2470661144469
2009ABW02062930.7826083686728780217.8216647444-777287.0390563757368
2009ABW020740618.63867458038466210.110395461-8425591.4717208825518
2009ABW0208015493.73998301885-15493.73998301885023
2009ABW020960.936109145564416249331.18510952988-249270.24900038433232
2009ABW02102511.4927108831926467234.0275760811-464722.5348651979265
2009ABW03011115.883620278719324172.26203388654-23056.37841360782114
2009ABW03024411157941.694865619-1157500.69486561911133
2009ABW0303738112.18537596531385376.4120408604-647264.226664895136334
2009ABW03047613.0833717760842105105.8113370785-2097492.72796530235945
2009ABW03052398.343056314699393256.1318502035-390857.788793888821320
2009ABW03061051.83866752301562859913.5322198793-2858861.69355235641216
2009ABW030736.22368134669352549962.0428812809-549925.819199934111428
2009ABW030809262.223264830336-9262.223264830336048
2009ABW040102872421.565702972-2872421.5657029720174
2009ABW040280024.025344283094482015.662621354-4401991.637277075195
2009ABW0403383.33591425243471641410.323208417-1641026.98729416473132
25 sample rows

25 sample records. Null means unavailable. Calculated indicators are labelled separately.

How can I use this data?

How do products and years compare?

Choose a year, then compare the reported values for the products and countries you are studying. To follow a product over time, use the same product code in each year. Check the column descriptions for the units of each value.

What do the product codes and values mean?

Products are grouped by four-digit Harmonized System codes (HS4). Keep product and country codes as text so leading zeros remain intact. Review the units beside each measure; missing observations and unavailable calculations should not be treated as reported values of zero.

How do I open the CSV?

Import the CSV into a spreadsheet or analysis tool. Set product and country codes to text to keep leading zeros. The download contains all 6,665,469 rows; the search above filters only the sample. Use the full file to compare products and years.

Dataset details

What each column means9 columns
yearuint16
Reported calendar year.Observation
country_iso3string
Three-letter country code; preserve as text.Observation
hs4string
Four-digit product group; preserve leading zeros.Observation
exports_usdfloat64
Reported exports in US dollars.Reported values
imports_usdfloat64
Reported imports in US dollars.Reported values
trade_balance_usdfloat64
Exports minus imports, in US dollars.Calculated indicators
export_partner_countuint64
Export partner count.Reported values
import_partner_countuint64
Import partner count.Reported values
active_hs6_countuint64
Active hs6 count.Reference fields

Included information

  • Exports, imports, and trade balance
  • Export and import partner counts
  • Active HS6 product count
Where the data comes fromSee source details
  • HS4 is a four-digit Harmonized System product group.
  • Fields marked USD are monetary values denominated in US dollars.
  • Count fields report the number of items named in the field, such as products, partners, or routes.
  • Country fields ending in ISO3 use three-letter ISO 3166-1 country codes.
What does one row represent?

One country, year, and HS4 product group. The file contains 6,665,469 records.

What period does this dataset cover?

1995-2024 annual observations where available. Missing years or observations are not filled in.

What format is the download and how large is it?

The complete CSV file is 189.4 MB and contains 6,665,469 records. The schema and sample files describe every field before you download.

Where does the data come from and how can it be used?

Reported source: OECD BIMTS HS2017-6D; CEPII where included. Values are reported observations with calculated fields marked as such. Terms and license: https://www.oecd.org/termsandconditions/

File size and download instructionsCSV
Format
CSV
Available years
1995-2024 annual observations where available
Version
1.0.0
data.csv
508,316,259 bytes

Open the CSV in a spreadsheet or read it with pandas.read_csv. Import country and product codes as text to preserve leading zeros.

CSV checksum1c1152177e760277c622cb744e7b26bd0aa516dd1ea9e1209a671ca5f8ba2507

Explore with Yugalinks

Compare products and export destinations

Explore export values by country and product, compare markets and review historical trends.