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://comtrade.un.org/>. Retrieve bilateral trade flows, compute trade analytics (revealed comparative advantage, trade concentration, trade balance), and convert between commodity classifications (Harmonised System 'HS', Standard International Trade Classification 'SITC', Broad Economic Categories 'BEC'). Covers 200+ reporter countries, 60+ years of goods trade data (1962-present), and services trade via Extended Balance of Payments Services ('EBOPS'). Works without registration for basic queries. A free Application Programming Interface ('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.2
URL https://charlescoverdale.github.io/comtrade/  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 Dec. 3, 2026, 1:07 a.m.