# ECB Euro Foreign Exchange Reference Rate

> ECB Euro Foreign Exchange Reference Rate is a paid API for AI agents from pennydatahq.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-31).

Returns the latest ECB euro foreign exchange reference rate (units of a given currency per 1 EUR) and its publication date as JSON.

## Facts

- Endpoint: GET https://pennydatahq.com/api/fx/:currency?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ecb-euro-foreign-exchange-reference-rate-2cc664c8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GUjqncOdrlXgx0ymyREZC

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-foreign-exchange-reference-rate-2cc664c8
```

Example prompt: What is the latest ECB official reference rate for USD — how many US dollars per euro is the ECB quoting today?

## When to prefer this

Use this endpoint when you need the official ECB euro reference rate for a specific currency — particularly for regulatory, compliance, or financial reporting use cases where the ECB's authoritative rate is required rather than a live market rate. It covers roughly 30 major and regional currencies and is priced at a fraction of a cent per call, making it ideal for lightweight, pay-per-use agent workflows via x402.

## Known failure modes

- Unsupported or misspelled currency code returns an error or empty result — only ~30 ECB-published currencies are supported
- Requesting EUR itself is not valid as all rates are expressed against the euro
- Rates are not updated in real time; the ECB publishes reference rates typically once per business day around 16:00 CET, so the date may be the previous business day on weekends or holidays
- Network or payment (x402) failure may prevent the response from being returned

## How this service works

The latest ECB euro foreign exchange reference rate for a currency (units per 1 euro) and its date, unmodified, as JSON. The same data is available free of charge from the ECB website; reference rates are for information purposes only.

## Output

A JSON object containing the currency code, base currency (always EUR), the exchange rate as a number (units of the requested currency per 1 euro), the reference date in YYYY-MM-DD format, and an ECB source/free-availability notice. Optionally includes a human-readable currency name.

## 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"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "currency"
     ],
     "properties": {
      "currency": {
       "type": "string",
       "description": "ISO 4217 currency code, any case, for a currency the ECB publishes a reference rate for (about 30, such as USD, GBP, JPY, CHF). Not EUR: every rate is against the euro."
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "currency",
      "base",
      "rate",
      "date",
      "notice"
     ],
     "properties": {
      "base": {
       "type": "string",
       "const": "EUR"
      },
      "date": {
       "type": "string",
       "description": "YYYY-MM-DD, the reference date"
      },
      "rate": {
       "type": "number",
       "description": "Units of the currency per 1 euro, as published by the ECB"
      },
      "notice": {
       "type": "string",
       "description": "ECB source and free-availability notice"
      },
      "currency": {
       "type": "string"
      },
      "currency_name": {
       "type": [
        "string",
        "null"
       ]
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ecb-euro-foreign-exchange-reference-rate-2cc664c8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pennydatahq.com](https://www.zero.xyz/host/pennydatahq.com/llms.txt)
