# eudata402 ECB Foreign Exchange Rates & Conversion

> eudata402 ECB Foreign Exchange Rates & Conversion is a paid API for AI agents from x402-seller-202595743428.europe-west1.run.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns official ECB foreign-exchange reference rates (via Frankfurter) for one or more currency pairs, with optional amount conversion.

## Facts

- Endpoint: GET https://x402-seller-202595743428.europe-west1.run.app/fx
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/eudata402-ecb-foreign-exchange-rates-conversion-d6b01ede
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_y3Rn3UYY1_mhvpVC_q7fj

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 eudata402-ecb-foreign-exchange-rates-conversion-d6b01ede
```

Example prompt: What's the official ECB exchange rate from EUR to USD today, and how much would 1,000 euros be in US dollars?

## When to prefer this

Choose this endpoint when you need official, authoritative ECB reference rates rather than real-time market rates, especially for EU compliance, accounting, invoicing, or regulatory reporting. It complements the US Treasury /fx endpoint for US-side official rates. Prefer this over market-rate APIs when auditability and official sourcing matter.

## Known failure modes

- Unsupported or invalid ISO currency code returns an error — ECB only publishes rates for ~30 major currencies
- Weekend/holiday dates may return the most recent available ECB rate rather than today's date
- Missing required 'from' or 'to' parameter results in a bad-request error
- Amount field with non-numeric value causes a validation error
- ECB data may lag intraday — rates reflect the previous business day's official fixing

## How this service works

Foreign-exchange reference rates (official ECB data via Frankfurter) + optional conversion. POST {from, to, amount?}. Returns {base, date, rates, converted?}.

## Output

Returns a JSON object with the base currency, the rate date (official ECB publication date), a rates map of target currency codes to exchange rates, and optionally a converted amount if an input amount was provided.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "description": "Target currency code or array of codes"
  },
  "from": {
   "type": "string",
   "description": "Base currency ISO code, e.g. EUR"
  },
  "amount": {
   "type": "number",
   "description": "Optional amount to convert"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/eudata402-ecb-foreign-exchange-rates-conversion-d6b01ede/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-seller-202595743428.europe-west1.run.app](https://www.zero.xyz/host/x402-seller-202595743428.europe-west1.run.app/llms.txt)
