# Losbeto Commodity Price

> Losbeto Commodity Price is a paid API for AI agents from markets.losbeto.xyz, paid per call via x402, $0.012/call, status unknown (last checked 2026-11-18).

Returns the current market price for a specified commodity, payable via USDC micropayment on Solana or Base.

## Facts

- Endpoint: GET https://markets.losbeto.xyz/commodity-price?utm_source=zero.xyz
- Price: $0.012/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/losbeto-commodity-price-e72516fe
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HDZhTkApEfNDdm0Qvnaqu

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 losbeto-commodity-price-e72516fe
```

Example prompt: What is the current market price for gold? I want to use Losbeto's commodity price feed and pay per call via USDC.

## When to prefer this

Choose this endpoint when you need real-time or near-real-time commodity price data and are comfortable with per-call USDC micropayment billing via the x402 protocol on Solana or Base. It is suitable for AI trading agents that need lightweight, pay-as-you-go market data without a subscription commitment.

## Known failure modes

- Invalid or unsupported commodity symbol returns an error response
- Missing required properties parameter may result in a 400 bad request
- Payment failure or insufficient USDC balance returns a 402 Payment Required
- Rate limiting or service unavailability returns 5xx errors
- Stale or delayed price data during market volatility

## How this service works

OpenAI-compatible LLM gateway at $0.005/call — change base_url, pay in USDC. Plus pay-per-call market data: multi-oracle price consensus, sentiment, forex, equities, commodities, Brazil macro (BCB/B3) and crypto. No API keys, no accounts. USDC on Base, Solana, Algorand and Polygon via x402.

## Output

A JSON object containing the current market price for the requested commodity, likely including the commodity identifier, price value, currency unit, and timestamp of the price 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "symbol"
     ],
     "properties": {
      "symbol": {
       "type": "string",
       "description": "Asset ticker, e.g. AAPL, TSLA, BTC, GOLD"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "properties": {
      "ts": {
       "type": "integer"
      },
      "name": {
       "type": "string"
      },
      "unit": {
       "type": "string"
      },
      "price": {
       "type": "number"
      },
      "source": {
       "type": "string"
      },
      "symbol": {
       "type": "string"
      },
      "version": {
       "type": "string"
      },
      "provider": {
       "type": "string"
      },
      "change_pct": {
       "type": "number"
      },
      "future_contract": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ts": 1792447853,
  "name": "Gold",
  "unit": "USD/oz",
  "price": 4162,
  "source": "Yahoo Finance",
  "symbol": "GOLD",
  "version": "48.32.0-ZEROWARN",
  "provider": "Losbeto/Commodities",
  "change_pct": 0.05,
  "future_contract": "GC=F"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/losbeto-commodity-price-e72516fe/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from markets.losbeto.xyz](https://www.zero.xyz/host/markets.losbeto.xyz/llms.txt)
