# api.strale.io Exchange Rate

> api.strale.io Exchange Rate is a paid API for AI agents from api.strale.io, paid per call via x402, $0.0216/call, status unknown (last checked 2026-09-14, last successful call 2026-05-01).

Returns the current exchange rate between two currencies using ECB (European Central Bank) data, including the rate, inverse rate, and date.

## Facts

- Endpoint: GET https://api.strale.io/x402/exchange-rate
- Price: $0.0216/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Last successful call: 2026-05-01
- Success rate: 100% of calls made through Zero
- Activations on Zero: 3
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-efdce27f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bAeQP9Rs5BRC4t457Ci7-

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 api-strale-io-efdce27f
```

Example prompt: What's the current ECB exchange rate from USD to EUR? Give me the rate and the inverse rate too.

## When to prefer this

Choose this endpoint when you need an authoritative, ECB-sourced exchange rate with both the direct and inverse rate for any major currency pair. Prefer it over scraping or unofficial sources when accuracy and a known data provenance (ECB) matter. Use it for financial applications requiring a trusted, dated rate.

## Known failure modes

- Invalid or unsupported ISO 4217 currency code returns an error
- Missing 'from' or 'to' query parameter results in a validation error
- ECB data unavailable or stale on non-business days may return previous rate with older date
- Payment failure (x402 protocol) if USDC balance is insufficient

## How this service works

Get current exchange rate between two currencies using ECB data. Supports all major currencies. Returns rate, inverse rate, and date.

## Output

Returns the current exchange rate from the source currency to the target currency, the inverse rate, and the date the rate was published — all sourced from European Central Bank data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "from",
  "to"
 ],
 "properties": {
  "to": {
   "type": "string",
   "description": "Target currency (ISO 4217, e.g. EUR)"
  },
  "from": {
   "type": "string",
   "description": "Source currency (ISO 4217, e.g. USD)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "to": {
  "type": "string"
 },
 "date": {
  "type": "string"
 },
 "from": {
  "type": "string"
 },
 "rate": {
  "type": "number"
 },
 "inverse_rate": {
  "type": "number"
 }
}
```

## More

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