# ECB Foreign Exchange Rates via Frankfurter

> ECB Foreign Exchange Rates via Frankfurter is a paid API for AI agents from x402-seller-0ay3.onrender.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns European Central Bank reference exchange rates for a given base currency against all major currencies.

## Facts

- Endpoint: GET https://x402-seller-0ay3.onrender.com/api/fx/rates
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ecb-foreign-exchange-rates-via-frankfurter-cda0ec5a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__HJFOHEOsk8X-o_fvVUD1

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-foreign-exchange-rates-via-frankfurter-cda0ec5a
```

Example prompt: What are the current ECB reference exchange rates with USD as the base currency?

## When to prefer this

Choose this endpoint when you need official, authoritative ECB reference exchange rates rather than market/trading rates. It is ideal for financial reporting, compliance contexts, or any use case requiring a recognized official rate source. Prefer this over commercial FX APIs when the ECB rate is specifically required or when cost matters (at $0.005/call). Not suitable for real-time trading rates or cryptocurrencies.

## Known failure modes

- Invalid ISO 4217 currency code returns an error — only ECB-supported currencies are valid bases
- Frankfurter upstream outage may cause delayed or failed responses
- ECB rates are only updated on business days; weekends and holidays return the most recent available date
- Missing or misspelled query parameter defaults to EUR base without error

## How this service works

Foreign exchange / currency conversion reference rates (European Central Bank) for a base currency, source Frankfurter. Parameter: ?base=<ISO 4217 code> (default EUR, e.g. USD, GBP, JPY).

## Output

A JSON object containing the base currency code, the date of the ECB reference rates, a map of currency codes to exchange rates relative to the base, the upstream Frankfurter source URL, and a fetched_at timestamp.

## 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",
     "required": [],
     "properties": {
      "base": {
       "type": "string",
       "description": "Base currency ISO 4217 code (e.g. EUR, USD)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "base": "EUR",
  "date": "2026-09-01",
  "rates": {
   "GBP": 0.8566,
   "USD": 1.159
  },
  "source": "https://api.frankfurter.app",
  "fetched_at": "2026-09-01T12:00:00.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ecb-foreign-exchange-rates-via-frankfurter-cda0ec5a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-seller-0ay3.onrender.com](https://www.zero.xyz/host/x402-seller-0ay3.onrender.com/llms.txt)
