# agentsvc.io Exchange Rates API

> agentsvc.io Exchange Rates API is a paid API for AI agents from agentsvc.io, paid per call via x402, $0.0045/call, status unknown (last checked 2026-10-10).

Returns live foreign exchange rates for a given base currency against one or more target currencies, sourced from the European Central Bank via frankfurter.dev

## Facts

- Endpoint: POST https://agentsvc.io/api/v1/proxy/exchange-rates?utm_source=zero.xyz
- Price: $0.0045/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentsvc-io-exchange-rates-api-67a4b90d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_26wVIIxtGJ2lDbn4_Ss0a

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 agentsvc-io-exchange-rates-api-67a4b90d -d '<json body>'
```

Example prompt: What are today's exchange rates from EUR to USD, GBP, JPY, and CHF? I need the latest ECB rates.

## When to prefer this

Choose this endpoint when you need official European Central Bank exchange rates without managing API keys or subscriptions — ideal for AI agents that need to pay per call with USDC on Base. It is particularly well-suited for EUR-based rate lookups across many currencies simultaneously. Prefer this over rolling your own forex integration when you want zero setup overhead and ECB-authoritative data.

## Known failure modes

- Unsupported currency code returns an error or empty rates object
- Empty symbols array may return all currencies, which could be a large payload
- Network or upstream ECB data source unavailability causes failure
- Invalid base currency string causes a 400-level error
- Payment failure (insufficient USDC balance) blocks the call entirely

## How this service works

86 APIs for AI agents: web scraping and crawling to Markdown, AI summaries, data extraction and cited answers, screenshots and PDF, PDF, OCR and document conversion, news, paper and developer search and more, paid per call with USDC on Base, Solana, Polygon or Arbitrum via x402. No account, no API key, free sample on every service.

## Output

Returns a JSON object containing the base currency, the date of the rates, and a map of target currency codes to their exchange rates relative to the base. Rates are sourced from the European Central Bank via frankfurter.dev. Example: {base: 'EUR', date: '2026-04-07', rates: {CHF: 0.9242, GBP: 0.8594, JPY: 161.32, USD: 1.0892}}.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "base": {
   "type": "string",
   "default": "EUR",
   "description": "Base currency (e.g. USD, EUR, GBP)"
  },
  "symbols": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "Target currencies to return. Empty = all."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "base": "EUR",
   "date": "2026-04-07",
   "rates": {
    "CHF": 0.9242,
    "GBP": 0.8594,
    "JPY": 161.32,
    "USD": 1.0892
   },
   "source": "European Central Bank via frankfurter.dev"
  },
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentsvc-io-exchange-rates-api-67a4b90d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentsvc.io](https://www.zero.xyz/host/agentsvc.io/llms.txt)
