# Foreign Exchange Rates API

> Foreign Exchange Rates API is a paid API for AI agents from cycle-angela-lamp-hamburg.trycloudflare.com, paid per call via x402, $0.01/call, status down (last checked 2026-09-15).

Returns the latest foreign exchange rates for 30+ major currencies quoted against USD, with ECB reference data

## Facts

- Endpoint: GET https://cycle-angela-lamp-hamburg.trycloudflare.com/api/fx/rates
- Price: $0.01/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/foreign-exchange-rates-api-8591c200
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QVX7oNofbAWezPd1OIv1A

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 foreign-exchange-rates-api-8591c200
```

Example prompt: What are the latest exchange rates for all major currencies against the US dollar — I need current forex rates including EUR, JPY, GBP, and the other top 30 currencies?

## When to prefer this

Use this endpoint when you need a broad snapshot of current forex rates for 30+ major currency pairs all quoted against USD in a single call, especially when ECB reference data is acceptable. Prefer this over a currency conversion API when you need bulk rates rather than a single pair conversion, or when you want raw rates to perform your own calculations.

## Known failure modes

- Cloudflare tunnel may be temporarily unavailable, returning 5xx errors
- Rates may be delayed or stale if upstream ECB data source is not refreshed
- Payment of 0.01 USDC via x402 required; missing or invalid payment header returns 402
- Rate data may not include exotic or less-traded currencies beyond the 30+ majors

## How this service works

Foreign exchange rates: latest currency exchange rates against USD, EUR JPY GBP and 30 major currencies, ECB reference data. JSON. Forex rate feed.

## Output

A JSON object with base currency (always USD), the date of the rates, a map of ISO currency codes to their exchange rates versus USD, a source field, and a unix timestamp indicating when the payload was generated.

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "base": {
   "type": "string",
   "description": "always USD"
  },
  "date": {
   "type": "string"
  },
  "rates": {
   "type": "object",
   "properties": {},
   "description": "ISO currency code -> rate vs USD"
  },
  "source": {
   "type": "string"
  },
  "generated_at": {
   "type": "integer",
   "description": "unix seconds when payload was built"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/foreign-exchange-rates-api-8591c200/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cycle-angela-lamp-hamburg.trycloudflare.com](https://www.zero.xyz/host/cycle-angela-lamp-hamburg.trycloudflare.com/llms.txt)
