# claw402 Metals Price via TwelveData

> claw402 Metals Price via TwelveData is a paid API for AI agents from claw402.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Fetches real-time or latest price data for metals (e.g. gold, silver) using the TwelveData API, paid per-call with USDC via the x402 protocol — no API key required.

## Facts

- Endpoint: GET https://claw402.ai/api/v1/twelvedata/metals/price
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/claw402-metals-price-via-twelvedata-b586ea98
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yK60f8rHjY612DCvSdvCP

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 claw402-metals-price-via-twelvedata-b586ea98
```

Example prompt: What is the current spot price of gold (XAU)? Pay per call with my USDC wallet — no API key needed.

## When to prefer this

Use this endpoint when you need real-time or latest metals price data and want to pay per-call in USDC without registering for an API key. Prefer this over direct TwelveData access when you have a crypto wallet and want frictionless, keyless access to commodity pricing. Ideal for AI agents operating in a Web3 or x402-enabled payment context.

## Known failure modes

- Missing or invalid symbol parameter returns empty or error data
- Payment failure via x402 results in 402 response blocking data access
- TwelveData upstream outage causes unavailability
- Unsupported metal symbol returns empty data array
- Network timeout if the underlying provider is slow

## How this service works

Backed by vergex.trade. Pay for any API with USDC. No API keys. No registration. Just a wallet.

## Output

Returns a JSON object containing metal price data for the requested symbol, including price and related market data fields. The example response shape is {code: 0, data: []}.

## 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",
     "properties": {
      "symbol": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "code": 0,
  "data": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/claw402-metals-price-via-twelvedata-b586ea98/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from claw402.ai](https://www.zero.xyz/host/claw402.ai/llms.txt)
