# Cerwal Currency Rate Lookup

> Cerwal Currency Rate Lookup is a paid API for AI agents from cerwal.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Converts between two currency codes and returns the current exchange rate

## Facts

- Endpoint: POST https://cerwal.vercel.app/api/rate
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cerwal-currency-rate-lookup-276e512e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Fp9DLr-UyT-jYlPf5Ng-R

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 cerwal-currency-rate-lookup-276e512e -d '<json body>'
```

Example prompt: What's the current exchange rate from USD to EUR?

## When to prefer this

Use this endpoint when you need a simple, pay-per-request currency rate lookup with no API key or subscription required, particularly in agent workflows where the x402 micropayment model is already in use. It is best for lightweight, on-demand rate checks rather than bulk historical data retrieval.

## Known failure modes

- Invalid or unsupported currency code returns an error or empty data
- Missing 'from' or 'to' parameters may cause a 400 or failed response
- Network timeout on the Vercel deployment edge
- Payment failure via x402 protocol prevents request from being processed

## How this service works

Web scraping and search for AI agents. No auth, no subscriptions. Pay per request in USDC via x402.

## Output

Returns a JSON object with a success boolean and a data object containing the exchange rate or conversion information between the specified currency pair.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string",
   "description": "To currency"
  },
  "from": {
   "type": "string",
   "description": "From currency"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object"
  },
  "success": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cerwal-currency-rate-lookup-276e512e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cerwal.vercel.app](https://www.zero.xyz/host/cerwal.vercel.app/llms.txt)
