# WorldData402 FX Exchange Rate Lookup

> WorldData402 FX Exchange 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 foreign exchange (FX) rates for a given base currency, paid per-call via x402 micropayment protocol on Base mainnet.

## Facts

- Endpoint: POST https://worlddata402.worlddata402.workers.dev/v1/fx/%7Bbase%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-exchange-rate-lookup-cac9bfe1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OnEpmjpNu4CgfzvI1mDgm

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-exchange-rate-lookup-cac9bfe1 -d '<json body>'
```

Example prompt: What's the current exchange rate for USD against all major currencies? Use WorldData402 to look it up and pay per the x402 micropayment.

## When to prefer this

Choose this endpoint when you need pay-per-call FX rate lookups without a subscription, especially in autonomous agent workflows that require micropayment-native access to currency data via the x402 protocol on Base mainnet. Prefer this over subscription FX APIs when you want cost-per-query billing in USDC.

## Known failure modes

- Invalid or unsupported base currency code returns an error response
- Payment failure or insufficient USDC balance causes x402 payment rejection
- Network timeout on the Cloudflare Workers endpoint
- Stale or delayed rate data if upstream market data feed is lagging
- Malformed request body returns a 400-level 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 current foreign exchange rates for the specified base currency, typically including rate values against one or more quote currencies, sourced from global market data feeds.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/worlddata402-fx-exchange-rate-lookup-cac9bfe1/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)
