# AllTheBot FX Rates (ECB)

> AllTheBot FX Rates (ECB) is a paid API for AI agents from api.zkrobotics.fr, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-13).

Returns official European Central Bank foreign exchange reference rates for ~30 currencies, with optional base currency conversion and amount calculation.

## Facts

- Endpoint: GET https://api.zkrobotics.fr/x402/finance/fx-rates?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/allthebot-fx-rates-ecb-2b6f6fe6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QzQ3Q9KDX0D630GPiFZ2Z

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 allthebot-fx-rates-ecb-2b6f6fe6
```

Example prompt: What's the official ECB exchange rate for USD against EUR today, and how much would 2500 USD be in euros?

## When to prefer this

Choose this endpoint when you need official, authoritative ECB daily reference rates for major currency pairs without requiring an API key. It is ideal for compliance, financial reporting, or budgeting use cases where official ECB rates are required rather than real-time interbank or broker rates. Prefer alternatives if you need live tick-by-tick FX data, exotic currency pairs outside ECB coverage, or historical rate time series.

## Known failure modes

- Unsupported or invalid currency code returns an error (ECB covers ~30 currencies, exotic pairs not available)
- Passing a non-3-letter currency code will fail schema validation
- Rates are daily ECB reference rates — not real-time mid-market or live interbank rates; intraday changes are not reflected
- Service may return stale data on weekends or ECB non-publishing days
- Network or upstream ECB data source unavailability may cause timeout or 5xx errors

## How this service works

Pay-per-call APIs for AI agents over x402: token safety reports, Base and Ethereum on-chain reads, crypto prices, domain checks (DNS, WHOIS, SSL, email), finance data (FX, SEC), worldwide weather forecasts, France alerts, text AI, fun content. USDC on Base, no account, no API key.

## Output

Returns ECB official daily reference exchange rates for the requested currency pair, optionally with a converted amount if an 'amount' parameter is provided. The response includes the rate value and relevant currency codes, sourced from the European Central Bank's official daily publication.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "to": {
       "type": "string",
       "maxLength": 200
      },
      "base": {
       "type": "string",
       "pattern": "^[A-Za-z]{3}$"
      },
      "amount": {
       "type": "string",
       "maxLength": 20
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "base": "USD",
  "date": "2026-10-08",
  "rates": {
   "EUR": 0.893975,
   "GBP": 0.757179,
   "JPY": 158.278205
  },
  "amount": 100,
  "source": "European Central Bank euro foreign exchange reference rates",
  "converted": {
   "EUR": 89.3975,
   "GBP": 75.7179,
   "JPY": 15827.8205
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/allthebot-fx-rates-ecb-2b6f6fe6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.zkrobotics.fr](https://www.zero.xyz/host/api.zkrobotics.fr/llms.txt)
