# ECB FX History via Frankfurter (x402)

> ECB FX History via Frankfurter (x402) is a paid API for AI agents from x402-v2-mint-fx-history.vercel.app, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-18).

Returns a historical foreign exchange rate series from the European Central Bank for a given base/quote currency pair and date range or single date.

## Facts

- Endpoint: POST https://x402-v2-mint-fx-history.vercel.app/v1/fx-history?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ecb-fx-history-via-frankfurter-x402-53647b94
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VizGXZ4qUWUS5UtHvSc_n

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-fx-history-via-frankfurter-x402-53647b94 -d '<json body>'
```

Example prompt: Pull the ECB historical exchange rates for EUR to USD from 2024-01-01 to 2024-03-31 and give me the full daily rate series.

## When to prefer this

Choose this endpoint when you need keyless access to official ECB/Frankfurter historical FX data for one or more currency pairs over a date range, especially when you want a lightweight pay-per-call approach (x402, $0.003 USDC) without managing API keys or subscriptions. Prefer it for official reference rates rather than real-time or intraday rates.

## Known failure modes

- Invalid ISO 4217 currency code returns an error or empty series
- Date range outside ECB data availability (pre-1999) may return empty or partial data
- End date before start date likely returns an error
- Weekend/holiday dates may return no data for those specific days since ECB only publishes on business days
- Malformed date format returns a validation error
- Exceeding the maximum of 16 symbols/quotes may be rejected
- Micro-payment via x402 protocol failure (e.g. insufficient USDC) blocks the request

## How this service works

ECB FX history via Frankfurter (keyless). from/to + start/end (or single date) → rates series. Data only — not advice.

## Output

A JSON object containing a date-keyed series of exchange rates for the requested base and quote currency or currencies, along with metadata confirming the skill name, charge status, and a summary field. For a date range, each date maps to its corresponding rate(s); for a single date, a single-entry series is returned.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string",
   "maxLength": 3,
   "minLength": 3,
   "description": "Single quote currency"
  },
  "base": {
   "type": "string",
   "maxLength": 3,
   "minLength": 3
  },
  "date": {
   "type": "string",
   "description": "Single historical YYYY-MM-DD (alt to start/end)"
  },
  "from": {
   "type": "string",
   "maxLength": 3,
   "minLength": 3,
   "description": "ISO 4217 base"
  },
  "amount": {
   "type": "number",
   "maximum": 1000000000,
   "minimum": 0
  },
  "quotes": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 3,
    "minLength": 3
   },
   "maxItems": 16
  },
  "symbols": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 3,
    "minLength": 3
   },
   "maxItems": 16,
   "description": "Multiple quote currencies"
  },
  "end_date": {
   "type": "string",
   "description": "YYYY-MM-DD range end"
  },
  "request_id": {
   "type": "string"
  },
  "start_date": {
   "type": "string",
   "description": "YYYY-MM-DD range start"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "skill": "fx-history",
  "charged": true,
  "summary": "ok"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ecb-fx-history-via-frankfurter-x402-53647b94/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-v2-mint-fx-history.vercel.app](https://www.zero.xyz/host/x402-v2-mint-fx-history.vercel.app/llms.txt)
