Trade and markets

Eurostat Comext trade and agricultural market insights.

OpenAPI
/openapi.json
Payment
x402 · $0.01 USDC · Base, Polygon, Arbitrum One
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.

ParamInTypeDescription
countryquerystringReporter country.
commodityquerystringProduct code or name.
date_fromquerystringStart period.
date_toquerystringEnd period.
metricquerystringprice|imports|exports|trade_balance.
datasetquerystringIf set, use agri-food price LAG path.
limitqueryinteger
offsetqueryinteger
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).

ParamInTypeDescription
reporterquerystringReporter country (or country=).
partnerquerystringPartner (often WORLD).
productquerystringProduct code (or commodity=).
flowquerystring1/2 or import/export.
date_fromquerystringStart period.
date_toquerystringEnd period.
limitqueryinteger
offsetqueryinteger
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.

ParamInTypeDescription
country (required)querystringReporter (or reporter=).
commodity (required)querystringProduct (or product=).
date_fromquerystringStart period.
date_toquerystringEnd period.
partnerquerystringPartner (default WORLD).
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).

ParamInTypeDescription
reporter (required)querystringReporter country.
product (required)querystringProduct code.
flowquerystringimport|export|both (default both).
periodquerystringPeriod filter.
date_fromquerystringStart.
date_toquerystringEnd.
limitqueryinteger
sortquerystringvalue|quantity|share.
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.

ParamInTypeDescription
country (required)pathstringCountry code.
commodity (required)pathstringCommodity / product code.
yearqueryintegerYear.
date_fromquerystringStart.
date_toquerystringEnd.
partnerquerystringPartner (default WORLD).
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.

ParamInTypeDescription
country (required)pathstringCountry code.
commodity (required)pathstringCommodity code.
date_fromquerystringStart.
date_toquerystringEnd.
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).

ParamInTypeDescription
country (required)pathstringCountry code.
commodity (required)pathstringCommodity code.
zquerynumberZ-score threshold (default 3).
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.

ParamInTypeDescription
countriesquerystringComma-separated countries.
commoditiesquerystringComma-separated commodities.
min_percentquerynumberDefault 10.
limitqueryinteger
offsetqueryinteger
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.

ParamInTypeDescription
countriesquerystringComma-separated countries.
commoditiesquerystringComma-separated commodities.
min_percentquerynumberDefault 40.
zquerynumberZ-score threshold.
limitqueryinteger
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.

ParamInTypeDescription
countries (required)querystringComma-separated country codes.
commodity (required)querystringCommodity code.
date_fromquerystringStart period.
date_toquerystringEnd period.
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.