# Losbeto Commodity Price API

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

Returns current commodity price data for a given commodity symbol or identifier, payable via USDC micropayment on Solana or Base.

## Facts

- Endpoint: GET https://api.losbeto.xyz/commodity-price
- Price: $0.012/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/losbeto-commodity-price-api-bff734e1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BdXAgfKTCmkAmcB0UCSGn

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-api-bff734e1
```

Example prompt: What is the current price of gold? Use the Losbeto commodity price endpoint to fetch live market data.

## When to prefer this

Use this endpoint when you need lightweight, pay-per-call commodity price lookups via USDC micropayments on Solana or Base chains, especially in AI agent workflows that require real-time commodity data without a subscription commitment. Prefer this over subscription-based market data APIs when cost-per-call economics and crypto-native payments are priorities.

## Known failure modes

- Missing or invalid commodity symbol returns an error or empty result
- Payment failure via x402 protocol results in 402 Payment Required response
- Unknown commodity identifiers may return null or an error message
- Network or upstream data source outages may cause timeouts or 503 errors

## 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 and Algorand via x402.

## Output

A JSON object containing the current price and related market data for the requested commodity, including price value, currency unit, and potentially timestamp or source metadata.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {
  "input": {
   "properties": {
    "queryParams": {
     "properties": {
      "symbol": {
       "description": "Asset ticker, e.g. AAPL, TSLA, BTC, GOLD",
       "type": "string"
      }
     },
     "type": "object"
    }
   },
   "type": "object"
  },
  "output": {
   "properties": {
    "example": {
     "description": "Live commodity prices: gold, silver, WTI, Brent, copper, natural gas (?symbol=GOLD) with daily change. Multi-source with declared provenance in every response. [Wrapper over a free public source (Yahoo Finance (public)) — you pay for one schema, one payment rail, signed receipts and monitored uptime.]",
     "type": "object"
    }
   },
   "type": "object"
  }
 },
 "required": [
  "input"
 ],
 "type": "object"
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

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