# SiteCheck Trade & Energy – Precious Metals Spot Price

> SiteCheck Trade & Energy – Precious Metals Spot Price is a paid API for AI agents from api.tradeenergy-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-29).

Returns the live spot price of gold (XAU) or silver (XAG) in USD per troy ounce, sourced from gold-api.com's aggregated free spot feed.

## Facts

- Endpoint: GET https://api.tradeenergy-api.workers.dev/api/energy/precious-metals-spot-fix?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sitecheck-trade-energy-precious-metals-spot-price-32268f32
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3_gq-J1NIOlta_qaBDs7o

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 sitecheck-trade-energy-precious-metals-spot-price-32268f32
```

Example prompt: What's the current spot price of gold per troy ounce in USD right now?

## When to prefer this

Use this endpoint when you need a free, near-real-time spot price for gold or silver (XAU/XAG) in USD per troy ounce without requiring an API key. Prefer it over LBMA fixing data when you want the current tradable spot rate rather than the daily benchmark fix. Not suitable for official settlement or auditing purposes.

## Known failure modes

- Upstream gold-api.com feed unavailable — endpoint may return stale or error response
- Invalid metal parameter (anything other than XAU or XAG) may yield an error or default to XAU
- Price reflects aggregated spot feed, not official LBMA fixing — may differ from benchmark rates
- Network timeout on the Cloudflare Worker if upstream is slow

## How this service works

Live spot price of gold (XAU) or silver (XAG) in USD per troy ounce from gold-api.com (aggregated free spot feed, no key). This is a spot quote with a timestamp, not the LBMA London AM/PM fixing and not vault holdings; the route name is kept for the owner.

## Output

Returns a JSON object containing the metal name, ticker symbol (XAU or XAG), the current spot price in USD per troy ounce, the source URL, the timestamp when the quote was last updated by the upstream feed, and the timestamp when this endpoint checked it.

## 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": [],
     "properties": {
      "metal": {
       "type": "string",
       "description": "XAU (gold) or XAG (silver); default XAU"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "name": "Gold",
  "unit": "USD per troy ounce",
  "metal": "XAU",
  "source": "https://api.gold-api.com/price/XAU",
  "priceUsd": 4027,
  "checkedAt": "2026-10-23T09:38:07.541Z",
  "quoteUpdatedAt": "2026-10-23T09:37:43Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sitecheck-trade-energy-precious-metals-spot-price-32268f32/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.tradeenergy-api.workers.dev](https://www.zero.xyz/host/api.tradeenergy-api.workers.dev/llms.txt)
