# Losbeto /price — Foreign Exchange Rate Lookup

> Losbeto /price — Foreign Exchange Rate Lookup is a paid API for AI agents from markets.losbeto.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-20).

Returns the current foreign exchange rate for a given base currency, paid per-call in USDC via x402 with no API key required.

## Facts

- Endpoint: GET https://markets.losbeto.xyz/price?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/losbeto-price-foreign-exchange-rate-lookup-54e71bcc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vWHrZ9zcz0dEQOeKbmSlo

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-price-foreign-exchange-rate-lookup-54e71bcc
```

Example prompt: What's the current exchange rate with USD as the base currency? I need the live forex rate right now — no API key, just pay per call.

## When to prefer this

Choose this endpoint when you need a quick, keyless, pay-per-call forex rate lookup with no account setup, especially in agentic or automated workflows that already use USDC micropayments via x402. It is ideal for single-currency-pair spot rate retrieval with low overhead. Prefer alternatives if you need multi-pair batch rates, historical data, or guaranteed SLA.

## Known failure modes

- Missing required 'base' query parameter returns an error
- Invalid or unsupported currency code may return an error or unexpected result
- Payment failure (insufficient USDC balance or wrong chain) results in HTTP 402 without data
- Upstream exchangerate-api.com outage may cause failure or stale data
- Rate limiting or node-level issues may cause intermittent unavailability

## 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

Returns a JSON object with a Unix timestamp, the exchange rate value as a number, the base currency parameter used, the upstream source (exchangerate-api.com), and a recommended_next array suggesting other endpoints on the node that week along with their prices in USDC.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "required": [
      "base"
     ],
     "properties": {
      "base": {
       "type": "string",
       "description": "base parameter"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "description": "Returns current foreign exchange rates as JSON; useful for pricing conversions."
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ts": 1792449656,
  "data": 0.891,
  "params": {
   "base": "USD"
  },
  "source": "api.exchangerate-api.com",
  "factory": true,
  "product": "Returns current foreign exchange rates as JSON; useful for pricing conversions.",
  "version": "48.32.1-WEBOPS",
  "endpoint": "/price",
  "recommended_next": [
   {
    "why": "most bought on this node this week",
    "endpoint": "/pyth-price",
    "price_usdc": "0.0060"
   },
   {
    "why": "most bought on this node this week",
    "endpoint": "/jupiter-swap",
    "price_usdc": "0.0200"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/losbeto-price-foreign-exchange-rate-lookup-54e71bcc/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)
