# DataNexusAI Trade Openness Analytics

> DataNexusAI Trade Openness Analytics is a paid API for AI agents from api.datanexusai.org, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-28).

Returns trade openness analytics (exports + imports as a share of GDP) for a given country code

## Facts

- Endpoint: GET https://api.datanexusai.org/api/analytics/trade-openness/%7Bcode%7D?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/datanexusai-trade-openness-analytics-4dc47e8f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JRvtdfIdOHR90mFONMEUG

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability datanexusai-trade-openness-analytics-4dc47e8f
```

Example prompt: What is the trade openness index for Germany — I need the trade-to-GDP ratio showing how exposed its economy is to international imports and exports.

## When to prefer this

Choose this endpoint when you need a quick, per-country trade openness metric (trade-to-GDP ratio) and are willing to pay a $0.01 USDC micropayment. Ideal for agents performing country-level economic benchmarking, market entry analysis, or macroeconomic research. Prefer this over general web search when you need structured, machine-readable trade analytics that can be directly fed into downstream computations.

## Known failure modes

- Invalid or unrecognized country code returns a 404 or error response
- Unsupported country code format (e.g. wrong ISO standard) may yield no results
- Insufficient USDC balance or missing x402 payment header results in 402 Payment Required
- Rate limiting or network errors may cause intermittent failures
- Data may be unavailable for very small or non-reporting economies

## How this service works

Public data API for SEBRA payments, PTP road accidents, Hearthstone cards, EU agri-food prices, and trade/market analytics. Paid data endpoints use x402 (USDC micropayments). Docs and discovery endpoints are free.

Machine-readable discovery: `https://api.datanexusai.org/openapi.json`, `https://api.datanexusai.org/llms.txt`, `https://api.datanexusai.org/.well-known/x402`.

Human docs: `/docs` and `/api/`.

## Output

Returns trade openness analytics for the requested country, typically including the trade openness index (sum of imports and exports as a percentage of GDP), and possibly historical trend data or component breakdowns (import share, export share) for the specified country code.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/datanexusai-trade-openness-analytics-4dc47e8f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.datanexusai.org](https://www.zero.xyz/host/api.datanexusai.org/llms.txt)
