# fx402 Currency & Unit Converter

> fx402 Currency & Unit Converter is a paid API for AI agents from fx402.alogos.xyz, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Converts between ISO-4217 currencies using ECB daily reference rates, returning the converted amount for a given source/target currency pair and optional amount.

## Facts

- Endpoint: GET https://fx402.alogos.xyz/v1/convert
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fx402-currency-unit-converter-ffc61d0b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HRswpKgHpbRldITjwl_om

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 fx402-currency-unit-converter-ffc61d0b
```

Example prompt: How much is 500 US dollars in euros right now, using the ECB daily rate?

## When to prefer this

Choose this endpoint when you need currency conversion using official ECB daily reference rates with no API key or subscription required, paying only per call via x402/USDC. Ideal for AI agents needing lightweight, on-demand FX conversion without managing credentials or rate-limit tiers.

## Known failure modes

- Unsupported or invalid ISO-4217 currency code returns an error response
- Missing required 'from' or 'to' parameters returns a validation error
- ECB rate not yet published for the current day (e.g. early morning UTC) may return stale or unavailable data
- Payment not completed (402 response) if x402/MPP payment header is missing or rejected
- Amount of 0 or negative values may produce unexpected results

## How this service works

Pay-per-call currency and unit conversion utility for AI agents: currency exchange at ECB daily reference rates, FX rate tables, and physical unit conversion (length, mass, temperature, volume, area, speed, time, digital). No API key, no subscription — agents pay per request via x402 (Base/USDC) or MPP (Tempo/pathUSD).

## Output

Returns the converted monetary amount in the target currency, computed using the ECB daily reference rate for the specified currency pair. Includes the exchange rate applied and the resulting value.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "to",
  "from"
 ],
 "properties": {
  "to": {
   "type": "string",
   "description": "Target ISO-4217 currency code, e.g. 'EUR'."
  },
  "from": {
   "type": "string",
   "description": "Source ISO-4217 currency code, e.g. 'USD'."
  },
  "amount": {
   "type": "number",
   "description": "Amount in the source currency to convert. Defaults to 1."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string"
  },
  "from": {
   "type": "string"
  },
  "rate": {
   "type": "number"
  },
  "amount": {
   "type": "number"
  },
  "result": {
   "type": "number"
  },
  "source": {
   "type": "string"
  },
  "converted": {
   "type": "number"
  },
  "ratesDate": {
   "type": "string"
  }
 },
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fx402-currency-unit-converter-ffc61d0b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fx402.alogos.xyz](https://www.zero.xyz/host/fx402.alogos.xyz/llms.txt)
