# ECB Foreign Exchange Reference Rates API

> ECB Foreign Exchange Reference Rates API is a paid API for AI agents from fx.x402utils.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-30).

Returns the list of ~30 currencies covered by official ECB FX reference rates, enabling agents to discover supported currencies before fetching rates or conversions.

## Facts

- Endpoint: GET https://fx.x402utils.workers.dev/v1/currencies?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ecb-foreign-exchange-reference-rates-api-e42f4552
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_L0nvCJYPBVjXd_cb185Wc

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 ecb-foreign-exchange-reference-rates-api-e42f4552
```

Example prompt: What currencies are available through the ECB foreign exchange reference rates feed — can you list all of them so I know which ones I can convert?

## When to prefer this

Use this endpoint when you need to discover or enumerate the set of currencies available before making FX rate lookups or conversions. It is the right first step when you are unsure whether a target currency is supported, or when you need to build a list of valid currency codes. Prefer this over hardcoding currency lists, as the ECB periodically adjusts coverage.

## Known failure modes

- Payment failure (x402 USDC payment not processed) returns 402 Payment Required
- Network or upstream ECB data unavailability may return 503 or 500 errors
- Invalid query parameters may return 400 Bad Request
- Rate limiting if too many requests are sent in rapid succession

## How this service works

Official ECB foreign-exchange reference rates for agents: latest rates, conversion and historical fixings for ~30 currencies. Paid per call via x402 (USDC on Base).

## Output

A JSON object containing a count of supported currencies (typically ~30) and a dictionary mapping currency codes (e.g. 'EUR') to their full names (e.g. 'Euro'), representing all currencies available in the ECB FX reference rate system.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "required": {
   "type": "string"
  },
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 30,
  "currencies": {
   "EUR": "Euro"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ecb-foreign-exchange-reference-rates-api-e42f4552/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fx.x402utils.workers.dev](https://www.zero.xyz/host/fx.x402utils.workers.dev/llms.txt)
