comtrade: Access and Analyse UN Comtrade International Trade Data

Download and analyse international merchandise and services trade data from the United Nations Comtrade database <https://comtradeplus.un.org/>. Retrieve bilateral trade flows, compute trade analytics (revealed comparative advantage, trade concentration, trade balance), and convert between commodity classifications (HS, SITC, BEC). Covers 200+ reporter countries, 60+ years of goods trade data (1962-present), and services trade via EBOPS. Works without registration for basic queries. A free API key from <https://comtradedeveloper.un.org/> unlocks full access.

Package details

AuthorCharles Coverdale [aut, cre]
MaintainerCharles Coverdale <charlesfcoverdale@gmail.com>
LicenseMIT + file LICENSE
Version0.1.0
URL https://github.com/charlescoverdale/comtrade
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("comtrade")

Try the comtrade package in your browser

Any scripts or data that you put into this service are public.

comtrade documentation built on April 13, 2026, 5:07 p.m.