For each country-product-year, the country's share of world exports of a product divided by its share of world exports overall. A value of 1 is the world average.
Surface: /country-product
BACI 202601 (CEPII), HS96, 1996-2024 (retrieved 2026-06-01)
Textbook Balassa on export values only; imports never enter. Both the country and world denominators are recomputed per year from the same filtered set of positive export flows, not from country_year_totals.
Values are rounded to 4 decimals and stored only where the rounded value is at least 0.01. The table is therefore sparse: a missing cell means RCA below 0.01, not zero.
RCA is dimensionless. BACI values are thousands of USD, and the units cancel. Never currency-format an RCA.
The extended HS02/07/12/17/22 rows follow a different convention in the same table: they are unrounded, kept only at RCA >= 1, use country and world totals that exclude extended product value, and exist for 2002-2024 only. That is 329,082 of the table's 11,741,447 rows.
Live counts, measured 2026-08-27: 11,741,447 rows, 1996-2024, 233 country codes, 6,632 product codes. 2024 holds 400,605 rows (376,519 core plus 24,086 extended).
RCA(c,p) = [ x(c,p) / sum_p x(c,p) ] / [ sum_c x(c,p) / sum_cp x(c,p) ]stored only where round(RCA, 4) >= 0.01 (core rows)stored only where RCA >= 1 (extended rows, 2002 onward)| Path | Method | Returns | Example |
|---|---|---|---|
| /api/countries/[iso3]/rca-dynamics | GET | Products whose RCA rose or fell most over the window, top 15 each way. | /api/countries/BGD/rca-dynamics?year=2024&window=5 |
| /api/countries/[iso3]/rca-transition | GET | Classic, emerging and disappearing advantage counts plus a 200-point scatter. | /api/countries/BGD/rca-transition?year=2024&window=5 |
| /api/products/[hs]/rca-countries | GET | The countries with RCA >= 1 in one HS6 line, ordered by RCA, with their ECI. | /api/products/610910/rca-countries?year=2024&limit=30 |