- impexp
- reporter
- hscode
One of the following parameters is required (in order of precedence):
- latestavailablemonths
- latestmonths
- from
One of the following parameters is required (in order of precedence):
Please note: This parameter is used only if the reporter code is specified without suffix (i.e. without e.g. “FR_eurostat” or FR_national.
Please note: Only ONE value is allowed, i.e. the different values (even if they are all import or export) can NOT be combined in a call!
The ‘brief’ layout is mainly intended for the JSON format and will produce the fixed property names (or column headers):
{ "tradeFlow": "import", "periodType": "MONTH", "year": 2016, "month": 1, "reporterCode": "BR", "reporterName": "Brasilien", "partnerName": "world", "hsCode": "84", "commodityDescriptionOriginal": "NUCLEAR REACTORS, BOILERS, MACHINERY AND MECHANICAL APPLIANCES", "commodityDescriptionTranslation": "KERNREAKTOREN, Kessel, Maschinen und mechanische Geräte", "currency": "USD", "value": 491008922, "unit1": "KG", "quantity1": 25716978, "unit2": "KGL", "quantity2": 25716978 }The default set of the report fields can be overridden with the field parameter.
Please note: If the ‘layout’ and ‘field’ parameters are missing and the JSON format is requested, the report will be generated in a legacy JSON format, used in the versions 1.16.x and earlier.
It is discouraged to skip the ‘layout’ parameter and use the the legacy JSON format – it might not be supported in future.
Please note: metadata is ONLY supported in JSON and XLSX format but not in CSV!
Please note: This parameter is used only if the reporter code is specified without suffix (i.e. without e.g. “FR_eurostat” or "FR_national".
Please note: Source COMTRADE is not available with the regular subscription!
If you do not have the extra COMTRADE subscription, the request will end with an error.
Source COMTRADE provides only YEARLY data for approx. 80 countries and will not work if monthly data or data with extra information (e.g. “means of transport”, states, provinces etc.) is requested!
Please note: if a certain unit was requested (e.g. unit=KG) but the data in question was reported in a unit, which can't be converted to KG or was simply declared as “unspecified unit” or “unknown” or “X” etc. it is NOT possible to convert this data to the requested unit.
In such a case the API will return several columns/entries with the different (reported and/or missing) units.