# x402node Commodity Price with Smart Localization

> x402node Commodity Price with Smart Localization is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-01).

Returns real-time spot prices for commodities (gold, silver, oil, grains, etc.) auto-localized to the user's currency and unit based on locale (e.g. CNY/gram, JPY/gram, or USD).

## Facts

- Endpoint: GET https://api.x402node.dev/commodity/price?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402node-commodity-price-with-smart-localization-50e0f08a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zlJb-LuPAFzMKdRo5vzd8

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 x402node-commodity-price-with-smart-localization-50e0f08a
```

Example prompt: What's the current gold price in Chinese yuan per gram — fetch it with symbol 'gold', amount 1, and language 'zh' so it auto-localizes to CNY per gram?

## When to prefer this

Use this endpoint when you need real-time commodity spot prices (precious metals, energy, grains) with automatic currency and unit localization for non-USD markets — especially for Chinese (CNY/gram), Japanese (JPY/gram), or other locale-specific formats. Prefer over generic finance APIs when locale-adapted output is required without manual conversion.

## Known failure modes

- Unsupported commodity symbol returns an error or empty result
- Invalid or unrecognized locale/language code may fall back to USD
- Network or upstream data source outage causes stale or missing price data
- Payment of $0.01 USDC required per call; missing payment returns 402 error

## How this service works

Universal commodity price with smart localization: gold, silver, platinum, palladium, wti, brent, gas, copper, grains. Auto-adapts currency and unit to your locale (CNY per gram, JPY per gram) or stays USD. Params: symbol, amount, lang. 任意大宗商品实时价格，自动本地化币种与单位，黄金白银原油智能换算人民币/克。商品価格を自動現地化。Precio localizado. 현지화 시세. Accepts payment on Base or Solana — either network works.

## Output

Returns a JSON object with the commodity's real-time price in the localized currency and unit, including the commodity name, symbol, source, timestamp, original price data, and conversion details used to arrive at the localized value.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "symbol"
     ],
     "properties": {
      "lang": {
       "type": "string",
       "description": "Optional locale hint: zh/ja/ko/es for localized currency and unit"
      },
      "amount": {
       "type": "string",
       "description": "Optional quantity"
      },
      "symbol": {
       "type": "string",
       "description": "Commodity: gold/silver/wti/brent/gas/copper/platinum/palladium (also accepts localized names)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402node-commodity-price-with-smart-localization-50e0f08a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
