Trade Supplier Concentration (HHI) and Unit Prices avatar

Trade Supplier Concentration (HHI) and Unit Prices

Pricing

$4.00 / 1,000 record returneds

Go to Apify Store
Trade Supplier Concentration (HHI) and Unit Prices

Trade Supplier Concentration (HHI) and Unit Prices

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.

Pricing

$4.00 / 1,000 record returneds

Rating

0.0

(0)

Developer

Henri bousquet

Henri bousquet

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 minutes ago

Last modified

Features

Limited permissions

Share

What this Actor does

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.

No scraping, no live dependency, no login: the data is embedded in the Actor and searched locally. You pay per record returned (pay-per-event supplier-concentration-result), never for empty runs.

What you get

  • 45,142 records, snapshot BACI version 202601 (released 2026-01-22), trade year 2024; EU reference: Eurostat Comext, calendar year 2025.
  • Source licence: Open Licence 2.0 (Etalab) for BACI (CEPII); Eurostat Comext reuse authorised with acknowledgement of the source (Commission Decision 2011/833/EU).
  • 15 input filters, all optional and combinable; results export as JSON, CSV, Excel, XML or HTML from the console or the API.

Quick start

Press Try for free with the pre-filled input, or paste it into the Input tab:

{
"hsPrefix": "8542",
"importerCodes": [
"DEU"
],
"sortBy": "hhiDesc",
"maxResults": 10
}

That run returns up to 10 records and costs about $0.04 (10 x $0.004). A run of 1,000 records costs $4.00. maxResults (up to 10,000) caps both the output and the bill.

Example output

One real record from the data, columns as returned:

{
"record_id": "010121-FRA",
"hs6": "010121",
"description": "Horses: live, pure-bred breeding animals",
"importer_code": "FRA",
"importer_name": "France",
"baci_year": 2024,
"import_value_usd": 76897670,
"import_quantity_t": 815.525,
"quantity_coverage_pct": 100.0,
"suppliers_count": 36,
"hhi": 0.279804,
"hhi_points": 2798.0,
"top_supplier_code": "GBR",
"top_supplier_share_pct": 47.9428
}

Input

Every filter is optional; combine them freely.

  • hsPrefix (string): HS code prefix. HS chapter (2 digits), heading (4 digits) or full HS6 (6 digits), e.g. 85, 8542 or 854231. Dots and spaces are ignored. Matches the start of the HS6 code.
  • query (string): Product description text. Word or phrase searched in the HS6 description, e.g. 'lithium' or 'coffee'. Accent- and case-insensitive.
  • importerCodes (array): Importing countries (ISO3). ISO 3166-1 alpha-3 codes of importing countries, e.g. DEU, USA, JPN. Keeps pairs whose importer is one of them.
  • supplierCodes (array): Suppliers among the top 3 (ISO3). ISO3 codes of exporting countries, e.g. CHN, VNM. Keeps pairs where at least one listed country is among the top 3 suppliers. Records without a top 3 never match.
  • minHhi (number): Min HHI (0-1). Minimum supplier concentration index, between 0 and 1 (0.25 is a highly concentrated supply; 0.5 means one dominant supplier).
  • maxHhi (number): Max HHI (0-1). Maximum supplier concentration index, between 0 and 1; use a low value to find diversified supply.
  • minTopSupplierSharePct (number): Min top supplier share (%). Minimum value share of the largest supplier, in percent.
  • maxTopSupplierSharePct (number): Max top supplier share (%). Maximum value share of the largest supplier, in percent.
  • minSuppliers (number): Min number of suppliers. Minimum number of exporting countries (the data holds at least 10).
  • maxSuppliers (number): Max number of suppliers. Maximum number of exporting countries.
  • minImportValueUsd (number): Min import value (USD). Minimum total import value in USD (the data holds at least 50,000,000).
  • maxImportValueUsd (number): Max import value (USD). Maximum total import value in USD.
  • minMedianUnitValueUsdPerT (number): Min median unit value (USD/t). Minimum median supplier unit value in USD per ton. Records whose median is null never match.
  • maxMedianUnitValueUsdPerT (number): Max median unit value (USD/t). Maximum median supplier unit value in USD per ton. Records whose median is null never match.
  • sortBy (string): Sort by. Sort order of results. Default: file order (or distance when a radius is given).
  • maxResults (integer): Max results. Maximum records returned and billed (1..10000).

Output fields

  • record_id : Unique key: HS6 code and importer ISO3 code, e.g. 854231-DEU.
  • hs6 : 6-digit Harmonized System code (HS 2022 nomenclature, as used by BACI).
  • description : HS6 product description from the BACI product code list.
  • importer_code : Importing country, ISO 3166-1 alpha-3 as listed by BACI (some BACI entries are regional groups such as 'nes' areas).
  • importer_name : Importing country name as listed by BACI.
  • baci_year : Trade year of the BACI flows.
  • import_value_usd : 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 : 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 : Share of the import value, in percent, carried by exporter flows that have a positive quantity.
  • suppliers_count : Number of exporting countries (suppliers) in BACI for this importer and HS6.
  • hhi : Herfindahl-Hirschman index of supplier concentration, sum of squared value shares of all exporters, 0 to 1.
  • hhi_points : Same index on the 0-10,000 scale (hhi x 10,000).
  • top_supplier_code : ISO3 code of the largest supplier by value.
  • top_supplier_share_pct : Value share of the largest supplier, in percent.
  • top3_supplier_codes : ISO3 codes of the three largest suppliers, in order.
  • top3_share_pct : Combined value share of the three largest suppliers, in percent.
  • other_suppliers_share_pct : Combined value share of all other suppliers, in percent (top3_share_pct + this = 100 before rounding).
  • top_suppliers : 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 : Number of suppliers with a unit value (positive quantity) for this importer and HS6.
  • median_unit_value_usd_per_t : 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 : Lowest supplier unit value in USD per metric ton; null when no supplier has one.
  • highest_unit_value_usd_per_t : Highest supplier unit value in USD per metric ton; null when no supplier has one.
  • eu27_extra_eu_import_unit_value_eur_per_t : 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 : Calendar year of the Comext reference unit value.

Every record also carries license and attribution so you can republish with the required credit. Empty values are returned as null (never as 0).

Call it from code

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)
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}'

Pricing

Pay per event: $0.004 per record returned, no start fee, nothing billed for an empty run.

Records returnedCost
10$0.04
100$0.40
1,000$4.00
10,000$40.00

Use it from an AI agent (MCP)

Add this Actor as a tool to Claude, Cursor or any MCP client through the Apify MCP server:

https://mcp.apify.com?tools=phonic_lily/trade-supplier-concentration-and-unit-prices

The agent gets the input schema above and pays per record like any other run.

FAQ

Where does the data come from? 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.

How fresh is it? Snapshot BACI version 202601 (released 2026-01-22), trade year 2024; EU reference: Eurostat Comext, calendar year 2025. The data is embedded in the Actor and updated when the publisher rebuilds it, so a run never depends on a live source and never fails because a site is down.

What does a run cost? $0.004 per returned record, nothing for runs that return no record. Apify free plan credit ($5) covers about 1,250 records.

Do I need a proxy, an account on the source or a browser? No: the Actor reads its own embedded file.

Data and licence

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.

Snapshot date: BACI version 202601 (released 2026-01-22), trade year 2024; EU reference: Eurostat Comext, calendar year 2025.