# FXRate by YourAITools

> FXRate by YourAITools is a paid API for AI agents from api.youraitools.co, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-25).

Returns ECB reference exchange rates for a base currency against up to 30 other currencies, for today or any past date

## Facts

- Endpoint: GET https://api.youraitools.co/fx/v1/rates?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-25
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fxrate-by-youraitools-d3c3540f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xUkPwcsVcirVhZp45_QOm

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 fxrate-by-youraitools-d3c3540f
```

Example prompt: What are the current ECB reference exchange rates for USD against EUR, GBP, and JPY?

## When to prefer this

Choose this endpoint when you need official ECB reference rates (not mid-market or broker rates) for a broad set of currency pairs, historical rate lookups, or when you want a structured rates table with a configurable base currency. Prefer it over general forex APIs when ECB provenance and a consistent 31-currency universe matter. It is especially useful when the agent needs to cross-compute derived rates or retrieve data for a specific past date.

## Known failure modes

- Unsupported base currency: ECB only publishes rates for 31 currencies, so an unsupported ISO code returns an error
- Weekend or holiday date: resolved silently to the previous ECB publication date — agent should check returned date
- Invalid date format: must be YYYY-MM-DD or the API returns a validation error
- Invalid quotes parameter: unrecognised currency codes in the comma-separated list may be silently dropped or return an error
- Payment failure: x402 micropayment of $0.001 USDC required per call; missing or invalid payment returns a 402 response

## How this service works

Exchange rates API for AI agents. Every ECB reference rate for a base currency (or just the quotes you list) on the latest or a past date. Search intents: exchange rates api, fx rates table, currency rates today, usd exchange rates, ecb reference rates.

## Output

A JSON object containing the base currency code, the effective date (adjusted to the nearest ECB business day if a weekend or holiday is requested), a count of returned rates, and a map of currency codes to their numeric exchange rates relative to the base. Also includes source attribution (ECB via Frankfurter) and a boolean indicating whether the rates were derived (cross-computed) from ECB euro rates.

## 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": [],
     "properties": {
      "base": {
       "type": "string",
       "description": "Base currency (default EUR): ISO 4217 code, e.g. USD, EUR, GBP, JPY (31 supported)"
      },
      "date": {
       "type": "string",
       "description": "Optional YYYY-MM-DD (default: latest). Weekends/holidays use the previous ECB rate."
      },
      "quotes": {
       "type": "string",
       "description": "Optional comma-separated currency codes (default: all 30)"
      }
     },
     "description": "Search intents: exchange rates api, fx rates table, currency rates today, usd exchange rates, ecb reference rates"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "base",
      "date",
      "rates"
     ],
     "properties": {
      "base": {
       "type": "string"
      },
      "date": {
       "type": "string"
      },
      "count": {
       "type": "integer"
      },
      "rates": {
       "type": "object",
       "additionalProperties": {
        "type": "number"
       }
      },
      "source": {
       "type": "string"
      },
      "derived": {
       "type": "boolean"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "base": "USD",
  "date": "2026-10-23",
  "count": 3,
  "rates": {
   "EUR": 0.89342,
   "GBP": 0.74805,
   "JPY": 156.8
  },
  "source": "Source: ECB statistics (euro foreign exchange reference rates), via the open-source Frankfurter API.",
  "derived": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fxrate-by-youraitools-d3c3540f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.youraitools.co](https://www.zero.xyz/host/api.youraitools.co/llms.txt)
