What you can ask
- “What does UN Comtrade have for the area or asset I'm working on?”
- “Pull the most recent UN Comtrade records and put them in a table.”
- “What does UN Comtrade cover, and how fresh is the data?”
About this source
UN Comtrade — global bilateral trade flows (free preview tier). No auth. DATA: getTradeFlows (trade value + weight by reporter, partner, commodity, period). Energy HS codes: 2709 crude, 2710 refined, 2711 petroleum gases (LNG/LPG), 2701 coal, 2716 electricity. RULES: 1. reporterCode/partnerCode are UN M49 numeric codes (842=USA, 0=World, 156=China). period = YYYY (annual) or YYYYMM (monthly). flowCode M=import, X=export. 2. Preview tier is row-capped; descriptions may be null (codes only). Additive to census-trade (US-only).
Connector ID comtrade
Provenance
Freshness & coverage
Caveats
- ⚠ The credential-free preview endpoint is row-capped; results are explicitly marked incomplete.
- ⚠ Country and commodity descriptions may be null on the preview tier; numeric M49 and HS codes remain authoritative.
› Methods (2)
Technical detail for developers: parameters, pagination, units, and freshness per method.
getTradeFlows
readBilateral trade flows by reporter, partner, HS commodity, period (value in USD, weight in kg).
Required paramsreporterCodeperiodEntitiesbilateral trade flow, commodity, countryPaginationnoneUnitsrows[].tradeValueUsd: USD · rows[].cifValueUsd: USD · rows[].fobValueUsd: USD · rows[].netWeightKg: kg · rows[].grossWeightKg: kgFreshnessScheduled (source-level)- ⚠ The public preview is row-capped and complete is always false.
getServiceInfo
readEnergy HS codes, flow codes, common country codes, and preview-tier caveats.
Entitiesservice metadataPaginationnoneFreshnessScheduled (source-level)
