# Vextorium ECB Historical Exchange Rates

> Vextorium ECB Historical Exchange Rates 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-11).

Returns the European Central Bank's official euro reference exchange rate (and optional currency conversion result) for a specified historical date.

## Facts

- Endpoint: POST https://api.vextorium.com/v1/ecb-rates-history?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vextorium-ecb-historical-exchange-rates-a3ab4a4b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gv9yC_fJlHeA2PzlZXGJb

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 vextorium-ecb-historical-exchange-rates-a3ab4a4b -d '<json body>'
```

Example prompt: What was the ECB's official exchange rate from EUR to USD on June 14, 2024? And if I had 100 euros, how much would that have been in dollars?

## When to prefer this

Choose this endpoint when you need official, authoritative ECB euro reference rates for a specific historical date — especially for financial reporting, compliance, auditing, or accounting that requires the official ECB-published rate rather than a market mid-rate or bank rate. It handles non-business days gracefully by falling back to the last published rate. Prefer this over generic FX APIs when EUR-denominated official rates are specifically required.

## Known failure modes

- Missing required 'date' field returns validation error
- Date before ECB data availability returns no rate found
- Invalid currency code returns null or error
- Weekend/holiday dates return the last available business day's rate (not an error — noted in response)
- Malformed date format (not YYYY-MM-DD) may cause parse failure

## How this service works

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

## Output

Returns a JSON object with the source currency (from), target currency (a), the ECB rate (type), the amount queried, the converted result, the requested date, the actual reference date used (last business day if holiday/weekend), and a note explaining date adjustment behavior, plus the official ECB source label.

## 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": [
      "date"
     ],
     "properties": {
      "a": {
       "type": "string",
       "description": "Target currency (default USD)"
      },
      "date": {
       "type": "string",
       "description": "Date YYYY-MM-DD"
      },
      "from": {
       "type": "string",
       "description": "Source currency (default EUR)"
      },
      "amount": {
       "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",
      "null"
     ],
     "properties": {
      "a": {
       "type": [
        "string",
        "null"
       ]
      },
      "from": {
       "type": [
        "string",
        "null"
       ]
      },
      "note": {
       "type": [
        "string",
        "null"
       ]
      },
      "type": {
       "type": [
        "number",
        "null"
       ]
      },
      "amount": {
       "type": [
        "number",
        "null"
       ]
      },
      "result": {
       "type": [
        "number",
        "null"
       ]
      },
      "source": {
       "type": [
        "string",
        "null"
       ]
      },
      "reference_date": {
       "type": [
        "string",
        "null"
       ]
      },
      "requested_date": {
       "type": [
        "string",
        "null"
       ]
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "a": "USD",
  "from": "EUR",
  "note": "If the date is a holiday or weekend, the last previous published day is used.",
  "type": 1.0686,
  "amount": 100,
  "result": 106.86,
  "source": "European Central Bank - euro reference exchange rates",
  "reference_date": "2024-06-14",
  "requested_date": "2024-06-14"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vextorium-ecb-historical-exchange-rates-a3ab4a4b/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)
