List Categories and Countries

Get detailed information about Comtrade categories and countries

List categories

List of Comtrade categories

/comtrade/categories

te.getCmtCategories(category = None, output_type = 'df')
data = te.getComtrade(category = 'categories').then(function(data){
    console.log(data)     
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/comtrade/categories?c=guest:guest");

List countries

List of Comtrade countries

/comtrade/countries

te.getCmtCountry(output_type = 'df')
data = te.getComtrade(category = 'countries').then(function(data){
    console.log(data)     
});
WebRequest request = WebRequest.Create("https://api.tradingeconomics.com/comtrade/countries?c=guest:guest");

Response fields

Fields in ‘List categories’

FieldTypeDescriptionExample
IdstringComtrade identifier“01”
NamestringCategory or country name“Live animals” or “Mexico”
ParentIdstringParent Comtrade identifier“a1”
Pretty_NamestringCategory pretty name“Agricultural for Soil Preparation”

Fields in ‘List countries’

FieldTypeDescriptionExample
IdstringComtrade identifier“01”
NamestringCategory or country name“Live animals” or “Mexico”
RegionstringRegion“Europe”
SubregionstringSubregion“Eastern Europe”
ISOstringThree letter country code“BGR”
YearstringLast update“2021”