# BRAINIAC Historical FX Rates API

> BRAINIAC Historical FX Rates API is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-17).

Returns historical foreign exchange rates for a given base currency and date, optionally filtered to specific target currencies.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/fx/rates/historical?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-historical-fx-rates-api-7afb62bf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lqUmcPL48c75OknlQjHt3

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 brainiac-historical-fx-rates-api-7afb62bf -d '<json body>'
```

Example prompt: What was the USD exchange rate against EUR, GBP, and JPY on March 15, 2023?

## When to prefer this

Use this endpoint when you need point-in-time historical FX rates for a specific past date and do not want to manage API subscriptions or accounts. Ideal for agents doing financial reconciliation, expense reporting, or historical analysis where accuracy at a specific date matters. Prefer this over real-time FX endpoints when the date is explicitly in the past.

## Known failure modes

- Invalid or unsupported currency code (non-ISO 3-letter format) causes a validation error
- Date provided is in the future or beyond available historical data range
- Date format does not match YYYY-MM-DD pattern or is an invalid calendar date
- Network or payment failure via x402 protocol results in no response
- Requested currency pair may not have data for very old or obscure dates

## How this service works

Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.

## Output

A JSON object containing historical exchange rates for the specified base currency on the given date, with rate values keyed by target currency codes. Returns the date, base currency, and a map of symbol-to-rate pairs.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "base": {
   "type": "string",
   "pattern": "^[A-Z]{3}$"
  },
  "date": {
   "type": "string",
   "format": "date",
   "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
  },
  "symbols": {
   "anyOf": [
    {
     "type": "string",
     "pattern": "^[A-Z]{3}$"
    },
    {
     "type": "array",
     "items": {
      "type": "string",
      "pattern": "^[A-Z]{3}$"
     }
    }
   ]
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "base": "USD",
  "date": "2024-01-01",
  "rates": {},
  "source": {
   "url": "https://api.frankfurter.dev/v1/v1/2024-01-01?base=USD&symbols=EUR%2CGBP",
   "error": "Date not found or invalid parameters",
   "status": "UNAVAILABLE"
  },
  "limitations": [
   "Historical exchange rates are retrieved from the Frankfurter API (ECB data).",
   "Rates are delayed reference rates for the closest working day.",
   "…"
  ],
  "retrievedAt": "2026-11-07T12:08:57.135Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-historical-fx-rates-api-7afb62bf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
