# Datakoot FX Rates

> Datakoot FX Rates is a paid API for AI agents from x402.datakoot.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-11).

Returns live foreign exchange rates for a given base currency against one or more target currencies, sourced from ECB reference rates via Frankfurter.

## Facts

- Endpoint: POST https://x402.datakoot.com/api/fx_rates?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/datakoot-fx-rates-d9cab7e6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OCPCYn_E9zeE1DErGTjiK

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 datakoot-fx-rates-d9cab7e6 -d '<json body>'
```

Example prompt: What are today's ECB reference exchange rates for EUR, GBP, and JPY against USD?

## When to prefer this

Use this endpoint when you need real-time ECB reference FX rates for one or many currency pairs in a single call, particularly when you want a pay-per-use model (no subscription) and are already operating in a crypto-native or x402-compatible payment environment. Prefer it over subscription FX APIs when usage is sporadic or when you need a broad basket of currencies cheaply. Not suitable for live transaction benchmarking or high-frequency trading where tick-level accuracy is required.

## Known failure modes

- Invalid 3-letter currency code returns an error or empty rates object
- Unsupported or misspelled currency symbol in the symbols field may be silently omitted or return an error
- ECB reference rates are only updated on business days — weekend/holiday queries return the most recent available date
- Network or upstream Frankfurter outage returns a 5xx error
- Payment failure via x402 means the call is not charged and no data is returned

## How this service works

48 live public-data tools (security, packages, SEC filings, economy, FX, weather, domains, Federal Register, Base) for AI agents. $0.002 USDC per call on Base via x402, charged only on success. The same tools are free for 100 calls/day via MCP at <server>.datakoot.com/mcp.

## Output

A JSON object containing the base currency, the date of the rates, and a map of target currency codes to their exchange rates (e.g. {"base":"USD","date":"2026-10-02","rates":{"EUR":0.89087,"GBP":0.75753,"JPY":157.67}}). Rates are ECB reference rates sourced via Frankfurter and are for informational purposes only, not transaction benchmarks.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "base": {
   "type": "string",
   "description": "3-letter base currency, e.g. USD, EUR (default USD)"
  },
  "symbols": {
   "type": "string",
   "description": "Optional comma-separated targets, e.g. EUR,GBP,JPY"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "base": "USD",
  "date": "2026-10-02",
  "rates": {
   "EUR": 0.89087,
   "GBP": 0.75753,
   "JPY": 157.67
  },
  "source": "ECB reference rates via Frankfurter (information only; not a transaction benchmark)"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/datakoot-fx-rates-d9cab7e6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.datakoot.com](https://www.zero.xyz/host/x402.datakoot.com/llms.txt)
