# x402node Forex Rates (ECB via Frankfurter)

> x402node Forex Rates (ECB via Frankfurter) is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.008/call, status unknown (last checked 2026-09-14).

Returns real-time foreign exchange rates from the European Central Bank for a base currency against one or more target currencies.

## Facts

- Endpoint: GET https://api.x402node.dev/finance/forex
- Price: $0.008/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-x402node-dev-45e8fb58
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YrkaDBMRxJeYv5kFMcYVU

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-45e8fb58
```

Example prompt: What are the current ECB exchange rates from USD to EUR, GBP, JPY, and CNY?

## When to prefer this

Use this endpoint when you need real-time, ECB-authoritative forex rates for one or more currency pairs in a single call — especially for AI agents handling cross-border pricing, treasury operations, or travel cost estimation. Prefer over scraping or generic FX APIs when you need comma-separated multi-target lookups and ECB data provenance.

## Known failure modes

- Unsupported or invalid currency code returns an error
- ECB data unavailable or stale if Frankfurter upstream is down
- Malformed query parameters result in a 4xx error
- Rate limiting or payment failure returns a 402 or 429 response

## 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 a JSON object containing the base currency code, last update date, and a map of target currency codes to their current exchange rates as provided by the European Central Bank via the Frankfurter API.

## 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": [
      "to"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "Target currency or comma-separated list, e.g. EUR or EUR,GBP,JPY,CNY. Alias: symbols."
      },
      "from": {
       "type": "string",
       "description": "Base currency code (single), e.g. USD. Alias: base. Default USD."
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-x402node-dev-45e8fb58/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)
