# api.strale.io Currency Converter

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

Converts a monetary amount from one currency to another using ECB (European Central Bank) exchange rates, returning the converted amount and the applied rate.

## Facts

- Endpoint: GET https://api.strale.io/x402/currency-convert?utm_source=zero.xyz
- Price: $0.0216/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Last successful call: 2026-05-01
- Success rate: 100% of calls made through Zero
- Activations on Zero: 4
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-a4a8223b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2yyHnAoA1RLawnEYLR6hf

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-a4a8223b
```

Example prompt: How much is 750 US dollars in Japanese yen right now? Use ECB rates.

## When to prefer this

Use this endpoint when you need a reliable, ECB-backed currency conversion for any major world currency pair; ideal for financial calculations, invoice totaling, or price display in multi-currency applications where ECB rates are acceptable.

## Known failure modes

- Unsupported or invalid ISO 4217 currency code returns an error
- Missing required query parameters (amount, from, to) causes a 400-level error
- Amount is not a valid number (e.g. negative or non-numeric) returns a validation error
- ECB rate unavailable for exotic or obscure currency pairs may cause a lookup failure

## How this service works

Convert an amount between currencies using ECB exchange rates. Supports all major currencies. Returns converted amount and rate.

## Output

Returns the converted monetary amount in the target currency and the ECB exchange rate applied for the conversion.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "to": "EUR",
   "from": "USD",
   "amount": 100
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "amount",
  "from",
  "to"
 ],
 "properties": {
  "to": {
   "type": "string",
   "description": "Target currency (ISO 4217)"
  },
  "from": {
   "type": "string",
   "description": "Source currency (ISO 4217)"
  },
  "amount": {
   "type": "number",
   "description": "Amount to convert"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-strale-io-a4a8223b/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)
