# ECB Euro Reference Exchange Rates & Currency Conversion

> ECB Euro Reference Exchange Rates & Currency Conversion is a paid API for AI agents from api.vextorium.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-02).

Returns the latest European Central Bank official euro reference rates for ~30 currencies, and optionally converts an amount between any two of those currencies.

## Facts

- Endpoint: POST https://api.vextorium.com/divisas-bce-pago?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ecb-euro-reference-exchange-rates-currency-conversion-0a5fefcb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tkRVcwEWv7gj1Q470nYkt

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-euro-reference-exchange-rates-currency-conversion-0a5fefcb -d '<json body>'
```

Example prompt: What's the official ECB euro reference rate for converting 1,200 EUR to USD today? Give me the converted amount and the reference date.

## When to prefer this

Choose this endpoint when you need the authoritative, official ECB euro reference rate rather than a commercial FX rate or mid-market approximation. Ideal for compliance, invoicing, accounting, and regulatory contexts where the ECB fixing is the required standard. Also use when you need a full snapshot of all ~30 ECB-published rates in a single call. Prefer the sibling historical endpoint when a past date's rate is needed.

## Known failure modes

- Unsupported currency code returns null or error — ECB only covers ~30 currencies
- Missing required body fields (type, method, bodyType) cause request failure
- ECB data may not update on weekends or public holidays, so fecha_referencia may lag
- Malformed amount (non-numeric importe) causes computation failure
- Rate temporarily unavailable if ECB has not yet published the day's fixing

## How this service works

Official European Central Bank euro reference exchange rates (about 30 currencies) and currency conversion between any two of them, with reference date.

## Output

Returns a JSON object with: the source currency (de), target currency (a), base currency (base), the exchange rate (tipo), the converted amount (resultado), the original amount (importe), the ECB reference date (fecha_referencia), the source label (fuente), any notes (nota), and — when no target currency is specified — a map of all ~30 ECB rates (tipos).

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [],
     "properties": {
      "a": {
       "type": "string",
       "description": "Target currency (omit to get all rates)"
      },
      "de": {
       "type": "string",
       "description": "Source currency, e.g. EUR"
      },
      "importe": {
       "type": "number"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "a": {
       "type": [
        "string",
        "null"
       ]
      },
      "de": {
       "type": [
        "string",
        "null"
       ]
      },
      "base": {
       "type": [
        "string",
        "null"
       ]
      },
      "nota": {
       "type": [
        "string",
        "null"
       ]
      },
      "tipo": {
       "type": [
        "number",
        "null"
       ]
      },
      "tipos": {
       "type": [
        "object",
        "null"
       ],
       "description": "All rates against 'base' (only when 'a' is omitted)",
       "additionalProperties": {
        "type": "number"
       }
      },
      "fuente": {
       "type": [
        "string",
        "null"
       ]
      },
      "importe": {
       "type": [
        "number",
        "null"
       ]
      },
      "resultado": {
       "type": [
        "number",
        "null"
       ]
      },
      "fecha_referencia": {
       "type": [
        "string",
        "null"
       ]
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ecb-euro-reference-exchange-rates-currency-conversion-0a5fefcb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.vextorium.com](https://www.zero.xyz/host/api.vextorium.com/llms.txt)
