The signed HS6 substitution elasticity for a product, with a magnitude-based interpretation of how readily import demand responds to price changes.
Surface: /importer
BACI 202501 (CEPII), HS92, 1995-2024 (retrieved 2026-04-28)
The shipped table is keyed by six-digit HS code and stores sigma together with zero and positive flags. The route left-pads the requested code to six digits before lookup.
The repository identifies these as HS6 substitution elasticities from Soderbery (2018), Journal of International Economics 114. Stored sigma values are signed and negative where estimated.
The endpoint returns the stored signed sigma. It applies abs(sigma) only when producing its human-readable interpretation: below 1 is inelastic, below 2 is unit elastic, below 5 is elastic, and 5 or more is highly elastic.
The zero and positive flags take precedence over the magnitude bands. A null sigma is reported as no estimate.
elasticity magnitude = abs(sigma)inelastic if abs(sigma) < 1; unit elastic if abs(sigma) < 2; elastic if abs(sigma) < 5; highly elastic otherwise| Path | Method | Returns | Example |
|---|---|---|---|
| /api/products/[hs]/elasticity | GET | The zero and positive flags, stored signed sigma and magnitude-based interpretation for one zero-padded HS6 code. | /api/products/610910/elasticity |