UN Comtrade Database

United Nations free database of global trade.

URL

https://comtradeplus.un.org/arrow-up-right

Description

This database contains import and export data for goods and services for about 200 countries/zones since 1962. In the Trade sectionarrow-up-right, you can search for monthly or annual trade data using all HS codes or specific HS codes (a commodity classification system, you can easily find the one you need by doing a google search like “commodity name + HS code”, or go ahead and type a keyword in the specific HS bar within the tool) and the countries involved in the trade. There is an advanced search tool that allows you to drill down, adding transport patterns, customs codes, trade flows, among other fields of investigation.

You will get the total trade value and quantity of the countries you are researching considering the year or month you have selected. This might be useful if you are looking for an estimate of official data on the quantity imported/exported from a country on a product.

Here's a preview of the default search

You can save your searches by clicking on the save button and giving each search a name to recognize it later.

In the Tariffline sectionarrow-up-right you will be able to find more specific trade transactions between the countries you are looking for and their trading partners.

For example, if you search for coffee exports from Colombia to Argentina in 2023 in the Tariffline section, you will find 31 shipments with information on mode of transport, value, net weight and gross weight. But if you look in the Trade section, you will get the total trade value ($9,521,444 in the same example).

The site has a visualization dashboard arrow-up-rightthat works with the same values (import/export, country, commodity, year). There is also a set of tools to help with data analysis:

  1. Labs: contains different trade dashboards on different subjects such as HS Tracker and the Climate Change Indicators Dashboard, provided by different organizations using this tool's data.

  2. Trade Balance View: this tool rotates the original data and places it in a parallel view to facilitate comparison between export and import data.

  3. Bilateral Data Comparison: places data and its mirror data side by side, allowing for analysis of bilateral trade asymmetries.

Cost

The service is free but you can access a premium service that allows you to perform bulk downloads and gives you priority access to preview unstructured data (when available).

There is a trial subscription for 15 days. You can requestarrow-up-right it after 15 days of creating the account. You will need to fill out a formarrow-up-right and wait 3-5 business days. After the trial starts, you will get access to a new section called Bulk Files, where you can download the data you searched for. Be aware that trial subscriptions have access to a limited number of files to download.

The only difference between the premium service and the free one is the option to download bulk files.

Options before trial
Options after trial activation

There are two types of downloads: classic and plus. Both will produce a document (.gz) that you will have to convert to XLS or CSV for analysis. I used this toolarrow-up-right to help me with that process. With the plus version you will get more detailed info such as customs code, mode of transport, among others. You can also use the APIarrow-up-right version to download the data. Here the README filearrow-up-right. For this API version, they will send your account information to your registered email so you can log in. It can take a couple of days.

Through the official account of the Trade Statistics Branch on X, the UN informsarrow-up-right about new information available on the platform and released datasets. It also shares statistics and trends.

Here an analytics of Ukraine in UN Comtrade postedarrow-up-right by the Trade Statistics Branch on X.

Level of difficulty

starstarstarstarstarstarstar

Requirements

You will have to complete a captcha each time you perform a search, unless you choose to activate a free account using your e-mail address or a Google account.

Limitations

The tool does not provide specific trade information, only general values.

Ethical Considerations

None

Guides and articles

User guides:

Getting Started Guidearrow-up-right

UN Comtrade Docsarrow-up-right

UN Comtrade Docs User Guidearrow-up-right

UN Comtrade Analytics User Guidearrow-up-right

Projects and articles that used the tool:

Is the US-China trade war spoiling international trade statistics? By Vali Stan, Lukas Linsi and Daniel Müggearrow-up-right

Red Flags in Trade Data by Conflict Armament Researcharrow-up-right

Key statistics and trends in international trade 2024arrow-up-right

Tool provider

United Nations, based in New York City. Maintained by DESA/UN Statistics Division.

Advertising Trackers

Page maintainer

Lieth Carrillo

Last updated

Was this helpful?