← All APIs
Trade and markets
Eurostat Comext trade and agricultural market insights.
GET/api/v1/changesx402 paid
Period-to-period trade/price changes
Changes for price, imports, exports, trade_balance. If dataset= is set, routes to agri-food price changes.
| Param | In | Type | Description |
country | query | string | Reporter country. |
commodity | query | string | Product code or name. |
date_from | query | string | Start period. |
date_to | query | string | End period. |
metric | query | string | price|imports|exports|trade_balance. |
dataset | query | string | If set, use agri-food price LAG path. |
limit | query | integer | |
offset | query | integer | |
Example: GET /api/v1/changes?country=BG&commodity=1001&date_from=2020&date_to=2025&metric=imports
GET https://api.datanexusai.org/api/v1/changes?country=BG&commodity=1001&date_from=2020&date_to=2025&metric=imports
Payment: x402 · $0.01 USDC · networks: Base, Polygon, Arbitrum One. Unauthenticated call returns HTTP 402 with PAYMENT-REQUIRED.
GET/api/v1/tradex402 paid
Comext trade rows
Eurostat Comext trade facts (value and quantity).
| Param | In | Type | Description |
reporter | query | string | Reporter country (or country=). |
partner | query | string | Partner (often WORLD). |
product | query | string | Product code (or commodity=). |
flow | query | string | 1/2 or import/export. |
date_from | query | string | Start period. |
date_to | query | string | End period. |
limit | query | integer | |
offset | query | integer | |
Example: GET /api/v1/trade?reporter=BG&product=1001&date_from=2020
GET https://api.datanexusai.org/api/v1/trade?reporter=BG&product=1001&date_from=2020
Payment: x402 · $0.01 USDC · networks: Base, Polygon, Arbitrum One. Unauthenticated call returns HTTP 402 with PAYMENT-REQUIRED.
GET/api/v1/trade/balancex402 paid
Trade balance
exports - imports on VALUE_IN_EUROS. Requires reporter and product.
| Param | In | Type | Description |
country (required) | query | string | Reporter (or reporter=). |
commodity (required) | query | string | Product (or product=). |
date_from | query | string | Start period. |
date_to | query | string | End period. |
partner | query | string | Partner (default WORLD). |
Example: GET /api/v1/trade/balance?country=BG&commodity=1001
GET https://api.datanexusai.org/api/v1/trade/balance?country=BG&commodity=1001
Payment: x402 · $0.01 USDC · networks: Base, Polygon, Arbitrum One. Unauthenticated call returns HTTP 402 with PAYMENT-REQUIRED.
GET/api/v1/trade/partnersx402 paid
Top trading partners
Ranked partners for reporter+product (excludes WORLD aggregates).
| Param | In | Type | Description |
reporter (required) | query | string | Reporter country. |
product (required) | query | string | Product code. |
flow | query | string | import|export|both (default both). |
period | query | string | Period filter. |
date_from | query | string | Start. |
date_to | query | string | End. |
limit | query | integer | |
sort | query | string | value|quantity|share. |
Example: GET /api/v1/trade/partners?reporter=BG&product=1001&period=2025
GET https://api.datanexusai.org/api/v1/trade/partners?reporter=BG&product=1001&period=2025
Payment: x402 · $0.01 USDC · networks: Base, Polygon, Arbitrum One. Unauthenticated call returns HTTP 402 with PAYMENT-REQUIRED.
GET/api/v1/markets/{country}/{commodity}x402 paid
Market snapshot
Agri-food average price + Comext trade for country/commodity.
| Param | In | Type | Description |
country (required) | path | string | Country code. |
commodity (required) | path | string | Commodity / product code. |
year | query | integer | Year. |
date_from | query | string | Start. |
date_to | query | string | End. |
partner | query | string | Partner (default WORLD). |
Example: GET /api/v1/markets/BG/1001
GET https://api.datanexusai.org/api/v1/markets/BG/1001
Payment: x402 · $0.01 USDC · networks: Base, Polygon, Arbitrum One. Unauthenticated call returns HTTP 402 with PAYMENT-REQUIRED.
GET/api/v1/markets/{country}/{commodity}/historyx402 paid
Market history
Annual series: price, imports, exports, trade_balance.
| Param | In | Type | Description |
country (required) | path | string | Country code. |
commodity (required) | path | string | Commodity code. |
date_from | query | string | Start. |
date_to | query | string | End. |
Example: GET /api/v1/markets/BG/1001/history?date_from=2020&date_to=2025
GET https://api.datanexusai.org/api/v1/markets/BG/1001/history?date_from=2020&date_to=2025
Payment: x402 · $0.01 USDC · networks: Base, Polygon, Arbitrum One. Unauthenticated call returns HTTP 402 with PAYMENT-REQUIRED.
GET/api/v1/markets/{country}/{commodity}/insightsx402 paid
Market insights
YoY percent changes and z-score anomalies (deterministic).
| Param | In | Type | Description |
country (required) | path | string | Country code. |
commodity (required) | path | string | Commodity code. |
z | query | number | Z-score threshold (default 3). |
Example: GET /api/v1/markets/BG/1001/insights
GET https://api.datanexusai.org/api/v1/markets/BG/1001/insights
Payment: x402 · $0.01 USDC · networks: Base, Polygon, Arbitrum One. Unauthenticated call returns HTTP 402 with PAYMENT-REQUIRED.
GET/api/v1/markets/changesx402 paid
Cross-market YoY changes
YoY moves with |percent| >= min_percent across markets.
| Param | In | Type | Description |
countries | query | string | Comma-separated countries. |
commodities | query | string | Comma-separated commodities. |
min_percent | query | number | Default 10. |
limit | query | integer | |
offset | query | integer | |
Example: GET /api/v1/markets/changes?countries=BG&commodities=1001&min_percent=10
GET https://api.datanexusai.org/api/v1/markets/changes?countries=BG&commodities=1001&min_percent=10
Payment: x402 · $0.01 USDC · networks: Base, Polygon, Arbitrum One. Unauthenticated call returns HTTP 402 with PAYMENT-REQUIRED.
GET/api/v1/markets/anomaliesx402 paid
Cross-market anomalies
Large YoY or z-score moves on price/imports.
| Param | In | Type | Description |
countries | query | string | Comma-separated countries. |
commodities | query | string | Comma-separated commodities. |
min_percent | query | number | Default 40. |
z | query | number | Z-score threshold. |
limit | query | integer | |
Example: GET /api/v1/markets/anomalies?countries=BG&commodities=1001
GET https://api.datanexusai.org/api/v1/markets/anomalies?countries=BG&commodities=1001
Payment: x402 · $0.01 USDC · networks: Base, Polygon, Arbitrum One. Unauthenticated call returns HTTP 402 with PAYMENT-REQUIRED.
GET/api/v1/markets/comparex402 paid
Compare countries for one commodity
Compare 2+ countries for one commodity and period.
| Param | In | Type | Description |
countries (required) | query | string | Comma-separated country codes. |
commodity (required) | query | string | Commodity code. |
date_from | query | string | Start period. |
date_to | query | string | End period. |
Example: GET /api/v1/markets/compare?countries=BG%2CRO%2CGR%2CDE&commodity=1001
GET https://api.datanexusai.org/api/v1/markets/compare?countries=BG%2CRO%2CGR%2CDE&commodity=1001
Payment: x402 · $0.01 USDC · networks: Base, Polygon, Arbitrum One. Unauthenticated call returns HTTP 402 with PAYMENT-REQUIRED.