# DataNexusAI Market Insights API

> DataNexusAI Market Insights API 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-30).

Returns statistical market insights (including anomaly detection via z-score) for a specific commodity in a specific country using EU agri-food price data

## Facts

- Endpoint: GET https://api.datanexusai.org/api/v1/markets/%7Bcountry%7D/%7Bcommodity%7D/insights?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/datanexusai-market-insights-api-83be6ac0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_KG37M6IzsIWAzHO8kGIAq

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-market-insights-api-83be6ac0
```

Example prompt: Can you pull market insights for wheat (commodity code 1001) in Bulgaria and flag any price anomalies using a z-score threshold of 2?

## When to prefer this

Use this endpoint when you need statistical anomaly detection and market insights for a specific EU agri-food commodity in a specific country. It is ideal when you want z-score-based outlier flagging on commodity prices, rather than raw price lookups. Prefer this over raw price endpoints when you need pre-computed analytics or want to detect whether current prices are statistically unusual.

## Known failure modes

- Invalid or unsupported country code returns 404 or validation error
- Invalid commodity code returns 404 or empty results
- Payment not provided or failed — returns HTTP 402 requiring USDC micropayment
- Z-score threshold out of reasonable range may return unexpected results
- No data available for the country-commodity combination returns empty or error response

## 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 statistical market insights for the specified country-commodity pair, including computed z-scores that flag price anomalies relative to historical baselines. The response likely includes price trend summaries, outlier flags, and statistical metrics to help identify unusual market conditions.

## 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",
     "required": [
      "country",
      "commodity"
     ],
     "properties": {
      "country": {
       "type": "string",
       "example": "BG",
       "description": "Country code."
      },
      "commodity": {
       "type": "string",
       "example": "1001",
       "description": "Commodity code."
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "z": {
       "type": "number",
       "description": "Z-score threshold (default 3)."
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/datanexusai-market-insights-api-83be6ac0/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)
