# WorldData402 FX Historical Rate Lookup

> WorldData402 FX Historical Rate Lookup is a paid API for AI agents from worlddata402.worlddata402.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-23).

Returns historical foreign exchange rates for a given base currency on a specified date, paid via x402 micropayment.

## Facts

- Endpoint: POST https://worlddata402.worlddata402.workers.dev/v1/fx/history/%7Bbase%7D/%7Bdate%7D?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/worlddata402-fx-historical-rate-lookup-24bf7bf4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YrgoRTkwES0CVTqRfsUOS

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 worlddata402-fx-historical-rate-lookup-24bf7bf4 -d '<json body>'
```

Example prompt: What was the USD to EUR exchange rate on March 15, 2024? Use historical FX data to look it up.

## When to prefer this

Choose this endpoint when you need point-in-time historical FX rates for a specific base currency and date, especially when integrating into an agent workflow that supports x402 micropayments on Base mainnet. Prefer it over subscription-based FX APIs for low-frequency, pay-per-call use cases where cost control matters.

## Known failure modes

- Invalid currency code returns an error or empty result
- Future dates or unsupported date ranges may return an error
- Dates with no market data (e.g. weekends, holidays) may return null or nearest available rate
- x402 payment failure results in 402 response and no data returned
- Malformed date format may cause a 400 bad request error

## How this service works

Global market, government and reference data for AI agents. Pay-per-call over x402 (USDC on Base mainnet).

## Output

Returns the historical exchange rate for the specified base currency pair on the given date, likely including the rate value, currency codes, and the date of the rate.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/worlddata402-fx-historical-rate-lookup-24bf7bf4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from worlddata402.worlddata402.workers.dev](https://www.zero.xyz/host/worlddata402.worlddata402.workers.dev/llms.txt)
