# TokenGuard Commodities Price API

> TokenGuard Commodities Price API is a paid API for AI agents from eltociear-tokenguard.hf.space, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Returns current USD spot prices for major commodities (Gold, Silver, etc.) sourced from gold-api.com

## Facts

- Endpoint: POST https://eltociear-tokenguard.hf.space/commodities
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tokenguard-commodities-price-api-5436e622
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xyhAwk91Y153huxlfG8C7

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 tokenguard-commodities-price-api-5436e622 -d '<json body>'
```

Example prompt: What are the current spot prices for gold and silver in USD right now? I need live commodity prices from TokenGuard.

## When to prefer this

Choose this endpoint when you need real-time precious metals or commodity spot prices in USD, especially within a DeFi or crypto agent context already using the TokenGuard API suite. Ideal when you want a single low-cost ($0.005) call for commodity price data without managing a separate commodities data subscription.

## Known failure modes

- Upstream gold-api.com unavailable — returns error or stale data
- Payment failure via x402 micropayment — request rejected with 402 status
- Invalid request body format — returns 400 bad request
- Rate limiting if too many calls in quick succession

## How this service works

Precious metals spot prices (Gold, Silver, Platinum, Palladium) in USD — real-time via gold-api.com, no API key required.

## Output

A JSON object containing a count of commodities returned, the data source (gold-api.com), and an array of commodity objects each with name, symbol, and current USD price (e.g. Gold/XAU at $4043.40).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "symbols": {
   "type": "string",
   "default": "XAU,XAG,XPT,XPD"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 4,
  "source": "gold-api.com",
  "commodities": [
   {
    "name": "Gold",
    "symbol": "XAU",
    "price_usd": 4043.4
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tokenguard-commodities-price-api-5436e622/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from eltociear-tokenguard.hf.space](https://www.zero.xyz/host/eltociear-tokenguard.hf.space/llms.txt)
