# DataNexusAI Commodity Price History

> DataNexusAI Commodity Price History is a paid API for AI agents from api.datanexusai.org, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-02).

Retrieves historical price records for a specific EU agri-food commodity, optionally filtered by member state

## Facts

- Endpoint: GET https://api.datanexusai.org/api/v1/commodities/%7Bcommodity_id%7D/history?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/datanexusai-commodity-price-history-d4c7b05a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jpfuHPnSPWXXy2QtrYvwf

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-commodity-price-history-d4c7b05a
```

Example prompt: Can you pull up the historical price data for milling rye (commodity ID 'cereals_prices:Milling rye') in Austria from the DataNexusAI API, showing the last 20 records?

## When to prefer this

Choose this endpoint when you need time-series price history for a specific EU agri-food commodity, especially when filtering by EU member state. Prefer this over generic commodity APIs when you need EU-specific agricultural market data with micropayment-accessible pricing. Ideal for economic research, trade analytics, and food market monitoring applications.

## Known failure modes

- Invalid or unknown commodity_id returns 404 or empty result set
- Invalid country code returns 400 or empty results
- Payment failure via x402/USDC causes 402 Payment Required response
- Missing required commodity_id path parameter causes 422 or 400 error
- Offset beyond available records returns empty list
- Rate limiting or service unavailability returns 503

## 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

A paginated list of historical price records for the specified commodity, each containing date and price information, optionally scoped to a specific EU member state. Supports limit and offset for pagination.

## 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": [
      "commodity_id"
     ],
     "properties": {
      "commodity_id": {
       "type": "string",
       "example": "cereals_prices:Milling rye",
       "description": "Commodity id."
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "limit": {
       "type": "integer",
       "example": 20
      },
      "offset": {
       "type": "integer"
      },
      "country": {
       "type": "string",
       "example": "AT",
       "description": "Member state."
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/datanexusai-commodity-price-history-d4c7b05a/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)
