Trade Supplier Concentration (HHI) and Unit Prices API
See how dependent a country is on a few suppliers for any product, and what each origin charges per ton compared with the median.
Who supplies each country's imports and at what price per ton: HHI supplier concentration, top 3 suppliers with shares, and unit values with deviation from the median, per HS6 product and importing country (BACI 2024). Pay per record.
Query the full dataset (API, CSV, JSON)
At a glance
- Official source
- Source: CEPII, BACI database, version 202601, HS 2022, trade year 2024 (Gaulier, G. and Zignago, S. (2010), BACI: International Trade Database at the Product-Level, CEPII Working Paper 2010-23), Licence Ouverte / Open Licence 2.0 (Etalab); changes made: per HS6 and importer, supplier shares, HHI, top 3, unit values and median computed, values converted from thousand USD to USD. BACI is a reconciled and estimated dataset. EU reference unit value: Source: Eurostat, Comext international trade database (dataset DS-045409, EU27 extra-EU imports, calendar year 2025); reuse authorised with acknowledgement of the source under Commission Decision 2011/833/EU; changes made: value divided by net mass, kg converted to tons.
- Licence
- Open Licence 2.0 (Etalab) for BACI (CEPII); Eurostat Comext reuse authorised with acknowledgement of the source (Commission Decision 2011/833/EU)
- Snapshot
- BACI version 202601 (released 2026-01-22), trade year 2024; EU reference: Eurostat Comext, calendar year 2025
- Coverage
- One record per (6-digit HS product, importing country): how concentrated the supply is and what each origin charges per ton. Built from BACI, the CEPII reconciled bilateral trade database (version 202601, HS 2022 nomenclature, trade year 2024), and from a Eurostat Comext reference unit value. Every figure is computed from the source rows; nothing is typed in by hand. BACI is a reconciled and ESTIMATED dataset, not raw customs statistics. CEPII combines the mirror flows reported by exporters and importers to the UN, removes estimated CIF freight costs from import values, and weights each reporter by its estimated reliability. Quantities are also estimated and can be missing. Values are in thousand USD and quantities in metric tons in the source; here values are in USD. Calculation per (HS6, importer), over ALL exporters present in BACI: value share = exporter value / total value; hhi = sum of squared shares (0 to 1; hhi_points = hhi x 10,000); top supplier and top 3 with their shares. Unit value of an origin = value / quantity in USD per metric ton, only when its quantity is positive; otherwise null (never 0). Median unit value = unweighted median over the origins that have a unit value, returned only if at least 3 origins have one; deviation of an origin = (its unit value / median - 1) x 100. Values and quantities are never mixed across units: quantity is always tons, value always USD; the Comext reference stays in EUR and is not converted. Small or partial flows give unstable unit values (a few tons of a high-value good), so read the median together with unit_value_origins_count and quantity_coverage_pct. Scope, to keep the file embeddable: one trade year (2024, the latest complete BACI year of the HS 2022 file); only pairs with at least 10 exporting countries and an import value of at least 50 million USD; product 999999 (not specified) excluded. Measured on this snapshot: 892,580 (HS6, importer) pairs in BACI 2024 (11,250,411 flow rows); 45,142 retained, i.e. 92.1 percent of the import value of the pairs that have at least 10 suppliers. The 50 million USD threshold keeps the embedded file small enough to be reliable; lower it and rebuild for smaller markets. Pairs below the thresholds are not in the data, so an absent pair is not proof of no trade. Missing quantity is null: 8,383 retained records have no total quantity, 192 have no unit value for their top supplier, 10 have no median. EU reference: Eurostat Comext (dataset DS-045409, EU27 extra-EU imports, calendar year 2025): import value in EUR divided by net mass converted from kg to tons, per HS6 and the same for every importer; null for 182 retained records. It is a different year, a different source and a different currency from BACI: use it as an order-of-magnitude benchmark, not as a like-for-like price. Informational only; the official statistics of each country prevail. Sources and licences: - BACI, CEPII (Gaulier, G. and Zignago, S., BACI: International Trade Database at the Product-Level, CEPII Working Paper 2010-23), version 202601, Licence Ouverte / Open Licence 2.0 (Etalab), changes made. - Eurostat, Comext (DS-045409), reuse authorised with acknowledgement of the source (Commission Decision 2011/833/EU), changes made.
- Excluded
- Trade years other than 2024. HS6 x importer pairs with fewer than 10 exporting countries or an import value under 50 million USD. Product 999999 (not specified). Services trade. Preferential tariffs and applied duties (see the HS code duties and trade flows Actor). UN Comtrade (licence).
Who uses it
- Supply-chain risk analyst: Filter importer_code and sort by hhi to find products where top_supplier_share_pct shows single-country reliance.
- Procurement manager: Compare lowest_unit_value_usd_per_t with median_unit_value_usd_per_t for an hs6 to challenge supplier prices.
- Export promotion agency: Find importers with a high import_value_usd whose top3_supplier_codes exclude its country, as targets.
- Customs valuation analyst: Flag declared values far from median_unit_value_usd_per_t for an hs6 and importer_code.
What you can query
- HS code prefix
- Product description text
- Importing countries (ISO3)
- Suppliers among the top 3 (ISO3)
- Min HHI (0-1) / Max HHI (0-1)
- Min top supplier share (%) / Max top supplier share (%)
- Min number of suppliers / Max number of suppliers
- Min import value (USD) / Max import value (USD)
- Min median unit value (USD/t) / Max median unit value (USD/t)
Fields
| Field | Type | Description |
|---|---|---|
record_id | string | Unique key: HS6 code and importer ISO3 code, e.g. 854231-DEU. |
hs6 | string | 6-digit Harmonized System code (HS 2022 nomenclature, as used by BACI). |
description | string | HS6 product description from the BACI product code list. |
importer_code | string | Importing country, ISO 3166-1 alpha-3 as listed by BACI (some BACI entries are regional groups such as 'nes' areas). |
importer_name | string | Importing country name as listed by BACI. |
baci_year | integer | Trade year of the BACI flows. |
import_value_usd | integer | Total import value of the importer for this HS6, in USD, sum over all exporters (BACI value is in thousand USD, converted x1000). |
import_quantity_t | number | Total import quantity in metric tons, only when every exporter flow has a quantity; null when any quantity is missing (see quantity_coverage_pct). |
quantity_coverage_pct | number | Share of the import value, in percent, carried by exporter flows that have a positive quantity. |
suppliers_count | integer | Number of exporting countries (suppliers) in BACI for this importer and HS6. |
hhi | number | Herfindahl-Hirschman index of supplier concentration, sum of squared value shares of all exporters, 0 to 1. |
hhi_points | number | Same index on the 0-10,000 scale (hhi x 10,000). |
top_supplier_code | string | ISO3 code of the largest supplier by value. |
top_supplier_share_pct | number | Value share of the largest supplier, in percent. |
top3_supplier_codes | array | ISO3 codes of the three largest suppliers, in order. |
top3_share_pct | number | Combined value share of the three largest suppliers, in percent. |
other_suppliers_share_pct | number | Combined value share of all other suppliers, in percent (top3_share_pct + this = 100 before rounding). |
top_suppliers | array | Top 3 suppliers: supplier_code, supplier_name, value_usd, share_pct, quantity_t, unit_value_usd_per_t, deviation_vs_median_pct. Unit value and deviation are null when the quantity is missing. |
unit_value_origins_count | integer | Number of suppliers with a unit value (positive quantity) for this importer and HS6. |
median_unit_value_usd_per_t | number | Median over suppliers of the unit value (USD per metric ton), unweighted; null when fewer than 3 suppliers have a unit value. |
lowest_unit_value_usd_per_t | number | Lowest supplier unit value in USD per metric ton; null when no supplier has one. |
highest_unit_value_usd_per_t | number | Highest supplier unit value in USD per metric ton; null when no supplier has one. |
eu27_extra_eu_import_unit_value_eur_per_t | number | Reference: EU27 extra-EU import value in EUR divided by net mass in tons for this HS6 (Eurostat Comext), whatever the importer; EUR, not converted to USD; null when Comext has no value or mass. |
eu27_unit_value_year | integer | Calendar year of the Comext reference unit value. |
Quick start
Python (pip install apify-client):
from apify_client import ApifyClient
client = ApifyClient('<YOUR_APIFY_TOKEN>')
run = client.actor('phonic_lily/trade-supplier-concentration-and-unit-prices').call(run_input={'hsPrefix': '8542', 'importerCodes': ['DEU'], 'sortBy': 'hhiDesc', 'maxResults': 10})
for item in client.dataset(run['defaultDatasetId']).iterate_items():
print(item)HTTP:
curl -X POST 'https://api.apify.com/v2/acts/phonic_lily~trade-supplier-concentration-and-unit-prices/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>' \
-H 'Content-Type: application/json' -d '{"hsPrefix": "8542", "importerCodes": ["DEU"], "sortBy": "hhiDesc", "maxResults": 10}'
FAQ
Where does the Trade Supplier Concentration (HHI) and Unit Prices data come from?
Source: CEPII, BACI database, version 202601, HS 2022, trade year 2024 (Gaulier, G. and Zignago, S. (2010), BACI: International Trade Database at the Product-Level, CEPII Working Paper 2010-23), Licence Ouverte / Open Licence 2.0 (Etalab); changes made: per HS6 and importer, supplier shares, HHI, top 3, unit values and median computed, values converted from thousand USD to USD. BACI is a reconciled and estimated dataset. EU reference unit value: Source: Eurostat, Comext international trade database (dataset DS-045409, EU27 extra-EU imports, calendar year 2025); reuse authorised with acknowledgement of the source under Commission Decision 2011/833/EU; changes made: value divided by net mass, kg converted to tons. One record per (6-digit HS product, importing country): how concentrated the supply is and what each origin charges per ton. Built from BACI, the CEPII reconciled bilateral trade database (version 202601, HS 2022 nomenclature, trade year 2024), and from a Eurostat Comext reference unit value. Every figure is computed from the source rows; nothing is typed in by hand. BACI is a reconciled and ESTIMATED dataset, not raw customs statistics. CEPII combines the mirror flows reported by exporters and importers to the UN, removes estimated CIF freight costs from import values, and weights each reporter by its estimated reliability. Quantities are also estimated and can be missing. Values are in thousand USD and quantities in metric tons in the source; here values are in USD. Calculation per (HS6, importer), over ALL exporters present in BACI: value share = exporter value / total value; hhi = sum of squared shares (0 to 1; hhi_points = hhi x 10,000); top supplier and top 3 with their shares. Unit value of an origin = value / quantity in USD per metric ton, only when its quantity is positive; otherwise null (never 0). Median unit value = unweighted median over the origins that have a unit value, returned only if at least 3 origins have one; deviation of an origin = (its unit value / median - 1) x 100. Values and quantities are never mixed across units: quantity is always tons, value always USD; the Comext reference stays in EUR and is not converted. Small or partial flows give unstable unit values (a few tons of a high-value good), so read the median together with unit_value_origins_count and quantity_coverage_pct. Scope, to keep the file embeddable: one trade year (2024, the latest complete BACI year of the HS 2022 file); only pairs with at least 10 exporting countries and an import value of at least 50 million USD; product 999999 (not specified) excluded. Measured on this snapshot: 892,580 (HS6, importer) pairs in BACI 2024 (11,250,411 flow rows); 45,142 retained, i.e. 92.1 percent of the import value of the pairs that have at least 10 suppliers. The 50 million USD threshold keeps the embedded file small enough to be reliable; lower it and rebuild for smaller markets. Pairs below the thresholds are not in the data, so an absent pair is not proof of no trade. Missing quantity is null: 8,383 retained records have no total quantity, 192 have no unit value for their top supplier, 10 have no median. EU reference: Eurostat Comext (dataset DS-045409, EU27 extra-EU imports, calendar year 2025): import value in EUR divided by net mass converted from kg to tons, per HS6 and the same for every importer; null for 182 retained records. It is a different year, a different source and a different currency from BACI: use it as an order-of-magnitude benchmark, not as a like-for-like price. Informational only; the official statistics of each country prevail. Sources and licences: - BACI, CEPII (Gaulier, G. and Zignago, S., BACI: International Trade Database at the Product-Level, CEPII Working Paper 2010-23), version 202601, Licence Ouverte / Open Licence 2.0 (Etalab), changes made. - Eurostat, Comext (DS-045409), reuse authorised with acknowledgement of the source (Commission Decision 2011/833/EU), changes made.
What can I filter on?
HS code prefix; Product description text; Importing countries (ISO3); Suppliers among the top 3 (ISO3); Min HHI (0-1) / Max HHI (0-1); Min top supplier share (%) / Max top supplier share (%); Min number of suppliers / Max number of suppliers; Min import value (USD) / Max import value (USD); Min median unit value (USD/t) / Max median unit value (USD/t).
How much does it cost?
The full dataset is an API on Apify, paid per result returned; the current price is on https://apify.com/phonic_lily/trade-supplier-concentration-and-unit-prices.
Can an AI agent query it?
Yes, through the MCP server io.github.adminglobalcostdata/customs-tariffs-and-rulings on the official MCP registry.
How recent is the data?
Snapshot of BACI version 202601 (released 2026-01-22), trade year 2024; EU reference: Eurostat Comext, calendar year 2025 from the official source.
Related datasets
- EU TARIC Tariff Measures - 162k duties by HS code
- UK Tariff Quotas 2026 - 779 quotas with volumes
- US HTS Tariff - 14,300 codes with duty rates
- Canada Customs Tariff: 12,463 Items & Rates
- Australia Working Tariff: 5,735 Codes & Rates
- HS Code Concordance - US, EU, Canada, Australia
- HS Code Duties and Trade Flows: US EU CA AU
- EU Binding Tariff Information - 5,258 EBTI rulings
- UK Advance Tariff Rulings (ATaR) - 6,483 HMRC rulings
- US CBP CROSS Customs Rulings - 2,456 decisions
Publisher: Henri Bousquet, adminglobalcostdata@gmail.com. Data from official public sources; source and licence are stated in every record.