BACI International Trade Database (HS 1992)
Bilateral trade flows at the 6-digit HS 1992 product level from the BACI database, published by CEPII and distributed by the Observatory of Economic Complexity (OEC). One row per year × exporter × importer × HS product. Covers ~200 countries. Values in USD; quantities in metric tons.
trade
Catalog
Browse and search all available datasets.
- Catalog — browse all datasets
- GET /api/catalog — catalog in JSON
- GET /api/catalog?q=… — search the catalog
Dataset API
Endpoints for this dataset — schema, filter values, preview, and querying.
- GET /api/datasets/baci-hs92 — schema, filters, and pricing
- GET /api/datasets/baci-hs92/sample — free sample (100 rows)
- GET /api/datasets/baci-hs92/members/{col} — valid values for a filterable column
- GET /api/datasets/baci-hs92/query — query with filters (API key required)
Purchase
Add balance or buy access to start querying.
- POST /api/checkout/x402 — agents: add balance via x402 (USDC)
- Sign in at /account — humans: add balance via Stripe (card, Apple Pay, bank transfer)
- POST /api/ap2/intent → /api/ap2/purchase — agents: AP2 mandate-based payment
Source
Size and Format
Pricing
Temporal Coverage
Geographic Coverage
Query Filters
Columns you can use as query params in GET /api/datasets/baci-hs92/query.
-
yearMembers (JSON) -
exporter_idMembers (JSON) -
importer_idMembers (JSON) -
hs_codeMembers (JSON)
Schema (Columns)
| Column | Type | Description | Filterable |
|---|---|---|---|
year |
string | — | No |
exporter_id |
string | — | No |
exporter_name |
string | — | No |
importer_id |
string | — | No |
importer_name |
string | — | No |
hs_code |
string | — | No |
product_name |
string | — | No |
hs_revision |
integer | — | No |
value |
number | — | No |
quantity |
number | — | No |
unit_abbrevation |
string | — | No |
unit_name |
string | — | No |