method
GET
POST
[target url=/api/rest/getreport
| supported methods:POST and GET ]
token
impexp
[values: I, E, IE (exports and imports), TB (exports - imports), TT (exports + imports), RI (re-imports), RE (re-exports), RIE (re-exports and re-imports), RTB (re-exports - re-imports), RTT (re-exports + re-imports), NI (net imports), NE (net exports), NIE (net exports and net imports), NTB (net exports - net imports), NTT (net exports + net imports) ]
mirrored
[Values: true, false ]. Default value if missing: false
periodtype
[Values: M, Y, Q, S, YTD ]
from
[YYYY-MM or YYYY (one of from or latestmonths or latestavailablemonths must be set!)]
latestmonths
[N from 1 to max 36 months; if both from and latestmonths are set, latestmonths has precedence]
latestavailablemonths
[N from 1 to max 36 months; latestavailablemonths has precedence over latestmonths and from ]
to
[YYYY-MM or YYYY , can be combined with latestmonths ]
fetchsameperiodnyears
[positive number]
updatedAfter
[Include only data, which was updated after this time. YYYY-MM or YYYY or yyyy-MM-ddTHH:mm:ssZ ]
aggregatemonths
[number of months to aggregate (ignored if the 'period type' is specified) ]
onlycompleteperiods
[include only the periods, for which all reporters have the complete data (typically used for Eurostat data)]
reporter
[coma or semicolon separated list: country codes or group names ]
accumulatereportergroups
[Values: true, false ]. Default value if missing: true
requirealldatareported
[if false - allow periods, for which not all members in the accumulated reporter country groups have the data]
fallbacktomirrordata
[if true - allow to use the mirror data if the country does not provide its own trade data]
mirrormissingperiods
[if true - allow to use the mirror data if the country does not provide the trade data for the requested period]
partner
[coma or semicolon separated list: country codes or group names ]. Default value if missing: all countries
accumulatepartnergroups
[Values: true, false ]. Default value if missing: false
source
[Values: DEFAULT, EUROSTAT, COMTRADE ]
filterbysource
[Values: DEFAULT, NATIONAL, EUROSTAT, COMTRADE ]
hscode
[coma or semicolon separated list: HS codes, group names or section codes (e.g. 'S01')]
accumulatecommoditygroups
[Values: true, false ]. Default value if missing: false
hslevel
[Values: any number ]. Values <0 - tariff level, '0' - do not explode, >0 - HS level. Default value if missing: (do not explode)
currency
Default value if missing: original currency
unit
Default value if missing: original units
unitpreferred
decimalscale
Default value if missing: 0
customconversionrules
[Values: true, false ]. Default value if missing: false
excludeintratrade
[Values: true, false ]. Default value if missing: false
includeotherpartners
[Values: true, false ]. Default value if missing: false
accumulateotherpartners
[Values: true, false ]. Default value if missing: false
dataelements
[Values: V, Q1, Q2 ]. Default value if missing: V (value), Q1 (quantity1) and Q2 (quantity2)
minV
[Values: any number ]. Default value if missing: no minimum threshold for value.
maxV
[Values: any number ]. Default value if missing: no maximum threshold for value.
minQ1
[Values: any number ]. Default value if missing: no minimum threshold for quantity1.
maxQ1
[Values: any number ]. Default value if missing: no maximum threshold for quantity1.
minQ2
[Values: any number ]. Default value if missing: no minimum threshold for quantity2.
maxQ2
[Values: any number ]. Default value if missing: no maximum threshold for quantity2.
minQPreferred
[Values: any number ]. Default value if missing: no minimum threshold for preferred quantity.
maxQPreferred
[Values: any number ]. Default value if missing: no maximum threshold for preferred quantity.
value threshold
min:
max:
[include only data, which is between min and max ]
quantity1 threshold
min:
max:
[include only data, which is between min and max ]
quantity2 threshold
min:
max:
[include only data, which is between min and max ]
preferred quantity threshold
min:
max:
[include only data, which is between min and max ]
tradedetails
[Values: SUBDIVISION, PORT, TRANSPORT, FOREIGN_PORT, PARTNER_US_STATE, CUSTOMS_REGIME, SUPPRESSION ]. Default value if missing: no supplementary info
lang
[Values: en, de, fr, ja, zh_CN ]. Default value if missing: en
field
[coma or semicolon separated list: field ids ].
layout
[Values: default, brief, gttdynamicexcel ]. Default value if missing: default
format
[Values: JSON, CSV, XLSX ]. Default value if missing: JSON
metadata
[Values: true, false ]. Default value if missing: false . Supported for JSON and XLSX format only!