List Categories and Countries

List categories

List of Comtrade categories

/comtrade/categories

import tradingeconomics as te
te.login('your_api_key')
te.getCmtCategories()
const te = require('tradingeconomics');
te.login('your_api_key');
data = te.getComtrade(category = 'categories').then(function(data){
    console.log(data)     
});
new HttpRequestMessage(new HttpMethod("GET"), "https://api.tradingeconomics.com/comtrade/categories?c=guest:guest");

List countries

List of Comtrade countries

/comtrade/countries

te.getCmtCountry()
data = te.getComtrade(category = 'countries').then(function(data){
    console.log(data)     
});
new HttpRequestMessage(new HttpMethod("GET"), "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”