# Losbeto FX Rate Lookup

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

Returns current foreign exchange rates as JSON for a given base currency, sourced from exchangerate-api.com.

## Facts

- Endpoint: GET https://api.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-fx-rate-lookup-ac21eb1e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gtFwoj1G-CyatlRBfOrSm

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-fx-rate-lookup-ac21eb1e
```

Example prompt: What's the current exchange rate with USD as the base currency?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call foreign exchange rate lookup with no subscription required, especially in agentic workflows that pay via x402/USDC microtransactions. It is ideal for one-off pricing conversions rather than bulk historical data or streaming tick feeds.

## Known failure modes

- Missing required 'base' query parameter returns an error
- Unsupported or misspelled currency code may return null or error
- Upstream exchangerate-api.com unavailability causes failed fetch
- Payment of $0.01 USDC not fulfilled results in HTTP 402 response

## How this service works

Returns current foreign exchange rates as JSON; useful for pricing conversions.

## Output

A JSON object containing a Unix timestamp (ts), the exchange rate as a decimal number (data), the base currency params used, the upstream source (api.exchangerate-api.com), and optional recommended next endpoints to call.

## 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-fx-rate-lookup-ac21eb1e/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)
