# ECB Historical Euro Exchange Rate & Currency Converter

> ECB Historical Euro Exchange Rate & Currency Converter 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 ECB official euro reference exchange rate for a given date since 1999 and optionally converts an amount between any two published currencies.

## Facts

- Endpoint: POST https://api.vextorium.com/bce-historico-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-historical-euro-exchange-rate-currency-converter-05c573fd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_y1ZvK8e34cyyVqMgM6mMy

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-historical-euro-exchange-rate-currency-converter-05c573fd -d '<json body>'
```

Example prompt: What was the official ECB euro reference rate between EUR and USD on March 15 2021, and how much would 2500 EUR have been worth in USD on that date?

## When to prefer this

Use this endpoint when you need the official ECB euro reference rate for a specific historical date, particularly for compliance, accounting, invoicing, or auditing purposes where the ECB rate is the authoritative source. Prefer this over live-rate APIs when working with past dates back to 1999, or when EUR is one of the currencies involved and official EU data is required.

## Known failure modes

- Date before 1999-01-04 (ECB data not available before euro launch) — returns null or error
- Weekend or ECB holiday date — endpoint may return the nearest published rate with an adjusted reference date
- Unsupported or misspelled currency code — returns null rate/result
- Missing required 'fecha' field — request fails with validation error
- Future date requested — no ECB rate published yet, returns null

## How this service works

Historical ECB euro reference exchange rate for any date since 1999 and conversion between any two published currencies.

## Output

Returns the ECB reference exchange rate (tipo) for the requested date, the actual reference date used (which may differ slightly if the requested date had no published rate), the source currency (de), target currency (a), the amount queried (importe), the converted result (resultado), and a note (nota) explaining any date adjustments or data caveats.

## 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": [
      "fecha"
     ],
     "properties": {
      "a": {
       "type": "string",
       "description": "Target currency (default USD)"
      },
      "de": {
       "type": "string",
       "description": "Source currency (default EUR)"
      },
      "fecha": {
       "type": "string",
       "description": "Date YYYY-MM-DD"
      },
      "importe": {
       "type": "number",
       "description": "Amount to convert (default 1)"
      }
     }
    },
    "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"
       ]
      },
      "nota": {
       "type": [
        "string",
        "null"
       ]
      },
      "tipo": {
       "type": [
        "number",
        "null"
       ]
      },
      "fuente": {
       "type": [
        "string",
        "null"
       ]
      },
      "importe": {
       "type": [
        "number",
        "null"
       ]
      },
      "resultado": {
       "type": [
        "number",
        "null"
       ]
      },
      "fecha_pedida": {
       "type": [
        "string",
        "null"
       ]
      },
      "fecha_referencia": {
       "type": [
        "string",
        "null"
       ]
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ecb-historical-euro-exchange-rate-currency-converter-05c573fd/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)
