# ECB Currency Converter

> ECB Currency Converter is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Converts a monetary amount between two currencies using the current European Central Bank (ECB) exchange rate, returning the input amount, converted amount, rate, and date.

## Facts

- Endpoint: GET https://api.x402node.dev/finance/convert
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-x402node-dev-7f4cfd9b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BmGMhjef0gyPPOOgZwC0i

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 api-x402node-dev-7f4cfd9b
```

Example prompt: Can you convert 100 USD to EUR at the current ECB rate and tell me the exact rate and date it's from?

## When to prefer this

Choose this endpoint when you need a reliable, ECB-sourced exchange rate for financial quoting or price display across currencies, especially for EUR-adjacent pairs. Prefer it over scraping or general-purpose APIs when you need a trusted institutional rate with a known date stamp and minimal latency for agent workflows.

## Known failure modes

- Unsupported or invalid currency codes (e.g. non-ISO 4217 codes) may return an error
- Amount parameter missing or non-numeric causes a bad request response
- ECB rate data temporarily unavailable causes a service error
- Rate may be from previous business day if ECB hasn't published today's rate yet
- Payment failure ($0.005 USDC) blocks the request entirely

## How this service works

x402node — precise, deterministic developer and data tools for AI agents. Chain data, parsing, crypto, conversion. Pay-per-call over x402, settled in USDC on Base.

## Output

Returns the original input amount, the converted target amount, the exchange rate used, and the date of the ECB rate — all in a structured JSON object.

## 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": [
      "from",
      "to"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "Target format (required)"
      },
      "from": {
       "type": "string",
       "description": "Source format (required)"
      },
      "amount": {
       "type": "string",
       "description": "Amount (optional)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-x402node-dev-7f4cfd9b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
