UN Comtrade Plus TradeFlow — Electrical Machinery & Instruments (HS 85/90)

Datadory delivers electronic equipment & instruments data covering the UN Comtrade Plus TradeFlow - Electrical Machinery & Instruments (HS 85/90): United Nations bilateral merchandise trade in HS chapter 85 electrical machinery and HS chapter 90 optical and measuring instruments, country by country, with CIF and FOB dollar values, weights and estimation flags reaching back to 1962.

What is the UN Comtrade Plus TradeFlow - Electrical Machinery & Instruments dataset?

The United Nations' official ledger of who sold what to whom, cut to the two commodity chapters the electronic equipment & instruments industry actually lives in: HS chapter 85 - electrical machinery and equipment, semiconductors, printed circuits, batteries, consumer electronics - and HS chapter 90 - optical, photographic, precision and measuring instruments. UN Comtrade Plus is compiled by the UN Statistics Division from reports submitted by national statistical offices, and every observation lands as a bilateral pair: one reporter country, one partner country, one commodity code, one flow direction, one period, carrying dollar value, net and gross weight, supplementary quantities and explicit estimation flags.

Three properties make this slice earn its keep. Reach: essentially every trading economy appears as a reporter or a partner, so a China-to-USA read and a Vietnam-to-Germany read fall out of the same cube with no re-plumbing. Depth: commodity codes resolve from two-digit chapters down to six-digit lines such as 8542 integrated circuits and 8541 diodes and transistors, with the HS revision stamped per record. Valuation discipline: imports price CIF and exports price FOB, sometimes on the same record, so freight and insurance become a visible spread rather than a buried assumption.

Get a sample of this dataset - name the reporters, partners and commodity lines, and we return real rows shaped exactly like the dictionary below, not screenshots.

What do UN Comtrade Plus tradeflow records look like?

Two verified rows from the electronics neighborhood, read straight from the dataset:

period 2022 · reporter 842 USA · flow M import · partner 0 World · cmd 8541 diodes/transistors
cifvalue       17,986,436,849 USD
fobvalue       17,172,864,708 USD
primaryValue   17,986,436,849 USD
netWgt         null          grossWgt 0.0
flags          isReported=false · isAggregate=true

period 2023 · reporter 156 China · flow X export · partner 842 USA · cmd 8542 integrated circuits
fobvalue        2,325,395,161 USD
primaryValue    2,325,395,161 USD
netWgt          1,349,464.296 kg   isNetWgtEstimated=true
legacyEstimationFlag 4             isReported=false · isAggregate=true

Read the pair and three practicalities surface immediately. Both rows are aggregates - isAggregate=true marks chapter-line totals rather than six-digit detail, which arrives in precisely the same column shape under a longer cmdCode, so nothing about your parser changes when you drill down. Valuation rides on direction: the 2022 US import line carries CIF and FOB side by side ($17.99bn against $17.17bn), making the freight-and-insurance wedge a one-column subtraction, while the 2023 China export line quotes FOB alone. And honesty lives in columns, not footnotes - isReported=false says the figure was derived upstream rather than handed over by the national authority, isNetWgtEstimated=true flags that 1,349,464.296 kg specifically, and dividing that weight into the $2.33bn FOB value prices integrated circuits near $1,723 per kilogram before anyone starts arguing about averages.

What fields does the dataset include?

Sixteen fields anchor the working dictionary, each verified against live records rather than guessed from column names. Identity fields fix who traded what with whom, under which Harmonized System revision, through which customs procedure and transport mode. Measure fields fix money and mass - dollars on the CIF and FOB axes, kilograms on the net-weight axis. The boolean tail separates directly reported figures from derived ones, which is the difference between quoting a number and defending it.

Every row is one bilateral commodity-flow-period observation, so a single year of six-digit detail across all partners runs to millions of rows while chapter-level cuts collapse to thousands.

Additional fields on request: the rest of the dictionary folds underneath - reporter and partner name columns beside the numeric codes, second-partner codes used by re-export flows, the alternative-quantity family with its own unit codes, gross weight, the four estimation flags, aggregation level and leaf-node markers, and the YYYYMMDD period identifier. Column-level naming is confirmed against live records when we prepare your sample - anything outside the core set travels as a labeled add-on, never as a surprise.

What does coverage look like across geography, time and granularity?

Three chips summarize the footprint:

  • Geography: Global - reporters and partners covering essentially all trading economies, each row a bilateral pair, so bilateral concentration questions (who actually supplies whom) answer directly instead of through residual math.
  • Time frame: Annual series from 1962 onward, with depth varying by classification revision since earlier decades were reported under earlier HS ancestors; monthly series extend over more recent years. Verified live responses returned 2022 and 2023 periods under revision H6.
  • Granularity: Bilateral reporter x partner x six-digit HS commodity x flow x period - rollable up to chapter totals and down to leaf commodity lines inside one consistent row shape.

Set against the wider Datadory catalog - average quality score 7.81 across all 1,744 datasets - this slice scores 9/10, carried by universal geographic reach, a six-decade archive and per-record valuation and estimation flags.

How is the data delivered?

API, files, or your warehouse. Daily, weekly, or hourly.

You choose the channel and the cadence; the field dictionary above travels unchanged through all three. Structured payloads suit event-driven trade monitors, bulk files suit overnight warehouse loads, and tabular extracts land in BI-ready shapes for analysts who never leave the spreadsheet. Cadence changes are a settings conversation, not a re-integration project - and a sample cut to your commodity list comes first either way.

Who uses this data, and for what?

  • Investors and quants treat monthly bilateral electronics flows as high-frequency demand signals - import penetration, export momentum and trade-balance screens at resolutions quarterly filings cannot match, with the estimation flags telling them which prints to trust.
  • Supply-chain and procurement teams watch component-line flows between named country pairs, so sourcing concentration stops being anecdotal: semiconductor and diode lines shifting between manufacturing geographies show up here months before a supplier review mentions them.
  • Competitive-intel and product teams read share shifts inside chapter 85 as evidence in market maps - a partner country's integrated-circuit exports moving while a rival's roadmap deck stays silent.
  • Market researchers size electronics markets country by country from official figures, combining import CIF values with domestic production series instead of triangulating from press releases.
  • Policy and economics researchers get a six-decade bilateral panel with per-record provenance flags - rare honesty about which observations are reported versus derived - suitable for gravity models and tariff-exposure work without imputation folklore.
  • Data scientists and ML engineers load a fixed commodity-country-month vocabulary once and join everywhere: trade rows, industry production data and company fundamentals all key to the same commodity spine.

Which personas get the most value?

Investors and quants hold the clearest win: bilateral monthly flows convert into nowcasts that lead quarterly disclosures, and the estimation flags pre-answer the data-quality question every model review asks. Supply-chain teams turn sourcing-risk reviews from interviews into measurements on named commodity lines and country pairs. Developers and builders get a stable grain and a typed field vocabulary that loads once and joins everywhere. The constant across all four: the commodity spine. Everything compounds when trade rows, production statistics and fundamentals speak the same six-digit HS language.

Which notes pair with this dataset?

Sample rows — verified bilateral electronics trade observations

PeriodReporterFlowPartnerCommodityMeasureValue
2022842 USAM import0 World8541 diodes/transistorsCIF value (USD)17,986,436,849
2022842 USAM import0 World8541 diodes/transistorsFOB value (USD)17,172,864,708
2022842 USAM import0 World8541 diodes/transistorsFlagsisReported=false · isAggregate=true
2023156 ChinaX export842 USA8542 integrated circuitsFOB value (USD)2,325,395,161
2023156 ChinaX export842 USA8542 integrated circuitsNet weight (kg)1,349,464.296
2023156 ChinaX export842 USA8542 integrated circuitsFlagsisNetWgtEstimated=true · legacyEstimationFlag=4 · isReported=false

Field dictionary — core fields (full dictionary with examples delivered with your sample)

FieldTypeDefinitionExample
typeCodestringRecord-type code; 'C' marks commodities.C
freqCodestringSeries frequency: 'A' annual or 'M' monthly.A
periodstringReporting-period label the row applies to.2023
refYearintegerReference year of the trade flow.2023
reporterCodeintegerUN M49 numeric code of the country reporting the flow.842
flowCodestringDirection of the flow: import, export, re-import or re-export.X
partnerCodeintegerUN M49 numeric code of the counterparty; 0 denotes World.842
cmdCodestringHarmonized System commodity code at 2, 4 or 6 digits.8542
classificationCodestringHS revision actually applied to the record.H6
customsCodestringCustoms procedure code attached to the flow.C00
mosCodestringMode-of-transport code for the movement.0
netWgtnumberNet weight in kilograms.1349464.296
cifvaluenumberCost, insurance and freight value in USD; populated on imports.17986436849.0
fobvaluenumberBorder value before freight and insurance, in USD; populated on exports.2325395161.0
isReportedbooleanWhether the national authority reported the record directly.false
isAggregatebooleanWhether the row is aggregated rather than detailed.true

Coverage chips

DimensionCoverage
GeographyGlobal — reporters and partners covering essentially all trading economies; every row is a bilateral pair
TemporalAnnual series from 1962 onward depending on classification revision; monthly series cover more recent years; verified responses returned 2022 and 2023 under HS H6
GranularityBilateral reporter x partner x six-digit HS commodity x flow x period
Electronics chaptersHS 85 electrical machinery (8541 diodes/transistors, 8542 integrated circuits, printed circuits, batteries, consumer electronics) and HS 90 optical, photographic, precision and measuring instruments

Additional fields available on request

Field groupNotes
Reporter & partner namesISO alpha codes and plain-country descriptors alongside the M49 numeric codes.
Second-partner codespartner2Code riding on specific flows such as re-exports.
Alternative quantity familyaltQty with its unit code and abbreviation, parallel to the supplementary quantity fields.
Estimation flagsisQtyEstimated, isAltQtyEstimated, isNetWgtEstimated, isGrossWgtEstimated — per-value booleans separating measured from derived figures.
Weights beyond netGross weight in kilograms with its own estimation flag.
Hierarchy & period internalsAggregation level, leaf-node marker, original-classification indicator, YYYYMMDD period identifier and month field where 52 denotes an annual aggregate.

Questions buyers ask

What fields does the UN Comtrade Plus TradeFlow dataset include?

Sixteen core fields per row: record type and frequency codes, reporting period and year, reporter and partner M49 codes, trade-flow code, Harmonized System commodity code, applied classification revision, customs procedure and transport-mode codes, net weight in kilograms, CIF and FOB dollar values, plus isReported and isAggregate flags. Name columns and the remaining dictionary travel with your sample.

How far back does the trade history go?

Annual series reach from 1962 onward, with depth varying by Harmonized System revision because earlier years were reported under earlier classifications. Monthly series cover more recent periods. Verified live responses returned 2022 and 2023 observations under revision H6, so recent-year cuts are confirmed rather than assumed.

Which HS codes cover electronics in this dataset?

HS chapter 85 carries electrical machinery and equipment - semiconductors, printed circuits, batteries, consumer electronics - resolving to six-digit lines such as 8542 integrated circuits and 8541 diodes and transistors. HS chapter 90 covers optical, photographic, precision and measuring instruments. Chapter-level totals and six-digit detail share one row shape.

Why do some rows carry estimation flags?

Not every figure arrives directly from a national statistical office. The isReported boolean separates directly reported records from derived ones, companion flags mark estimated net weight, quantity and alternative-quantity values individually, and a legacy estimation flag describes how a record was computed. You can filter to reported-only or keep estimates with their labels.

What is the difference between CIF and FOB values here?

CIF prices goods including cost, insurance and freight; FOB prices them at the border before those costs. Import rows populate the CIF field and export rows the FOB field, and some records carry both, which turns the freight-and-insurance spread into a column subtraction instead of a separate research project.

Can the sample be scoped to specific reporters, partners or commodities?

That is the default way samples ship. Queries take reporter and partner countries, commodity codes at two-, four- or six-digit level, flow direction and period, so a request like China-to-USA exports of 8542 returns exactly those rows. Tell us the cut you need and the sample comes back pre-scoped with fill rates noted.

Can Comtrade rows be joined to my own sales or production data?

Yes - rows key on commodity code, country pair and period, which is the same spine most ERP product hierarchies and industry production series map onto. Send the shape of your file and the commodity lines you care about, and the sample includes matched rows plus a note on coverage gaps where your taxonomy diverges.

See the rows before you pay anything.

Name this dataset and we send real records from it — scoped to the fields you asked for.

See pricing