# Datakoot FX Historical Rates

> Datakoot FX Historical 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 historical foreign exchange rates for a given date using ECB reference rates via Frankfurter

## Facts

- Endpoint: POST https://x402.datakoot.com/api/fx_historical?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-historical-rates-3943a90a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LFEtZRe1TfWRxd3CvyT4s

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-historical-rates-3943a90a -d '<json body>'
```

Example prompt: What was the ECB reference exchange rate for EUR to USD and GBP on January 15, 2026?

## When to prefer this

Use this endpoint when you need official ECB reference exchange rates for a specific historical date, particularly for accounting, financial reporting, or compliance purposes where ECB rates are the accepted benchmark. Prefer this over live-rate APIs when the query is historical (not real-time) and over generic FX APIs when ECB provenance matters. The micro-payment model ($0.002/call) makes it cost-effective for low-to-moderate volume lookups without a subscription.

## Known failure modes

- Invalid date format returns an error — use YYYY-MM-DD or MM/DD/YYYY
- Dates before ECB historical data availability may return no data
- Invalid 3-letter currency code in base or symbols returns an error
- Weekend/holiday dates silently return the prior business day's rates (not an error, but may surprise callers)
- 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 requested date (adjusted to the last business day if a weekend or holiday), and a 'rates' map of target currency codes to their ECB reference exchange rates. Also includes the data source attribution (ECB reference rates via Frankfurter).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "base": {
   "type": "string",
   "description": "3-letter base (default USD)"
  },
  "date": {
   "type": "string",
   "description": "The date to look up, YYYY-MM-DD (MM/DD/YYYY is also accepted). Weekends and holidays return the previous business day's ECB rates."
  },
  "symbols": {
   "type": "string",
   "description": "Optional comma-separated targets"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "base": "EUR",
  "date": "2026-01-15",
  "rates": {
   "USD": 1.1624
  },
  "source": "ECB reference rates via Frankfurter (information only; not a transaction benchmark)",
  "requested_date": "2026-01-15"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/datakoot-fx-historical-rates-3943a90a/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)
