# Currency Exchange Rate (ECB Data)

> Currency Exchange Rate (ECB Data) is a paid API for AI agents from exchange.use.x402atlas.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-12).

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

## Facts

- Endpoint: GET https://exchange.use.x402atlas.com/currency-exchange-rate?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/currency-exchange-rate-ecb-data-c80929b6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GaHFk2f5--AP5N-QVbDKF

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 currency-exchange-rate-ecb-data-c80929b6
```

Example prompt: What's the current exchange rate from USD to EUR according to ECB data — give me both the rate and the inverse?

## When to prefer this

Choose this endpoint when you need authoritative ECB-sourced exchange rates for any of the 31 major currencies, with both forward and inverse rates in a single call. Ideal for financial reporting, invoice conversion, or travel budget calculations where ECB data is the trusted reference. Best suited for point-in-time rate lookups rather than historical time-series or real-time mid-market rates from other providers.

## Known failure modes

- Same currency provided for both 'from' and 'to' parameters — returns an error since they must differ
- Unsupported currency code provided — only the 31 ECB-supported currencies are accepted
- ECB data unavailable or delayed — may return stale or no data during ECB outages
- Missing required query parameters — defaults to USD/EUR if not specified
- Network timeout or payment failure (x402 micropayment of $0.01 USDC not processed)

## 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

A JSON object containing: the base currency code (from), the quote currency code (to), the exchange rate as units of 'to' per 1 unit of 'from', the inverse rate (1/rate, 6 decimal places), and the ECB publication date in YYYY-MM-DD format (last business day on weekends or holidays).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "to": {
       "enum": [
        "AUD",
        "BGN",
        "BRL",
        "CAD",
        "CHF",
        "CNY",
        "CZK",
        "DKK",
        "EUR",
        "GBP",
        "HKD",
        "HUF",
        "IDR",
        "ILS",
        "INR",
        "ISK",
        "JPY",
        "KRW",
        "MXN",
        "MYR",
        "NOK",
        "NZD",
        "PHP",
        "PLN",
        "RON",
        "SEK",
        "SGD",
        "THB",
        "TRY",
        "USD",
        "ZAR"
       ],
       "type": "string",
       "default": "EUR",
       "description": "Optional quote currency, 3-letter ISO 4217 code from the ECB set, must differ from `from`"
      },
      "from": {
       "enum": [
        "AUD",
        "BGN",
        "BRL",
        "CAD",
        "CHF",
        "CNY",
        "CZK",
        "DKK",
        "EUR",
        "GBP",
        "HKD",
        "HUF",
        "IDR",
        "ILS",
        "INR",
        "ISK",
        "JPY",
        "KRW",
        "MXN",
        "MYR",
        "NOK",
        "NZD",
        "PHP",
        "PLN",
        "RON",
        "SEK",
        "SGD",
        "THB",
        "TRY",
        "USD",
        "ZAR"
       ],
       "type": "string",
       "default": "USD",
       "description": "Optional base currency, 3-letter ISO 4217 code from the ECB set"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "from",
      "to",
      "rate",
      "inverse_rate",
      "date"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "Quote currency code, upper-cased."
      },
      "date": {
       "type": "string",
       "format": "date",
       "description": "ECB publication date (YYYY-MM-DD) of the rate; last business day on weekends/holidays."
      },
      "from": {
       "type": "string",
       "description": "Base currency code, uppe
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/currency-exchange-rate-ecb-data-c80929b6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from exchange.use.x402atlas.com](https://www.zero.xyz/host/exchange.use.x402atlas.com/llms.txt)
