# Currency Exchange Rate Lookup

> Currency Exchange Rate Lookup is a paid API for AI agents from api.api-agent-ia.ch, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-23).

Returns the current exchange rate between two currencies using ECB reference data via Frankfurter

## Facts

- Endpoint: GET https://api.api-agent-ia.ch/taux-de-change?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/currency-exchange-rate-lookup-e0306b50
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fZs4JUo2dbUWhaZo2D6Gy

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 currency-exchange-rate-lookup-e0306b50
```

Example prompt: What's the current exchange rate from CHF to EUR? I need the ECB reference rate.

## When to prefer this

Prefer this endpoint when you need official ECB reference exchange rates for fiat currency pairs, particularly for compliance, invoicing, or financial reporting purposes. It is ideal for lightweight, per-query lookups rather than bulk historical data. Use over generic FX APIs when ECB provenance and low cost ($0.002 per call) matter.

## Known failure modes

- Unsupported or invalid currency codes return an error response
- Rate may not reflect real-time market prices — ECB reference rates are typically published once per business day
- Network or upstream Frankfurter API unavailability causes request failure
- Missing required query parameters (base or quote) result in a validation error

## How this service works

How do you convert between fiat currencies? Returns the daily ECB reference rate between two 3-letter codes (CHF, EUR, USD…), not a live market rate ($0.002 per call).

## Output

A JSON object containing the base currency code, quote currency code, the numeric exchange rate (e.g. 1.07), the date of the rate, and the data source (ECB reference rate via Frankfurter).

## 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": [
      "base",
      "quote"
     ],
     "properties": {
      "base": {
       "type": "string"
      },
      "quote": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "base": "CHF",
  "date": "2026-10-22",
  "rate": 1.0857,
  "quote": "EUR",
  "source": "ECB reference rate via Frankfurter (daily, not a live market quote)"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/currency-exchange-rate-lookup-e0306b50/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.api-agent-ia.ch](https://www.zero.xyz/host/api.api-agent-ia.ch/llms.txt)
