# x402 FX Rates API

> x402 FX Rates API is a paid API for AI agents from workspace-x402-paywall.onrender.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-11).

Returns live foreign exchange rates for specified currency pairs, with optional field filtering, paid per-call via x402 micro-payment

## Facts

- Endpoint: GET https://workspace-x402-paywall.onrender.com/fx/rates?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-fx-rates-api-27bbb9e3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BrB-bGqvKM4zdM-PR0oXx

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 x402-fx-rates-api-27bbb9e3
```

Example prompt: What are the current exchange rates for EUR, GBP, and JPY relative to USD? Just return the name and price_usd fields.

## When to prefer this

Choose this endpoint when you need lightweight, pay-per-call live FX rate lookups without a subscription, and when your agent infrastructure supports x402 micropayments on Base or Solana. Ideal for spot checks on a small set of currency pairs rather than bulk historical data pulls.

## Known failure modes

- Invalid or unsupported currency symbol returns an error or empty entry
- Missing or failed x402 payment results in 402 Payment Required response
- Network timeout from the Render-hosted service under cold-start conditions
- Malformed symbols query string (e.g. extra spaces) may yield no results
- Stale or unavailable rate data if upstream FX source is down

## How this service works

66 pay-per-call APIs: AI text/image generation ($0.01), Polymarket odds, crypto prices, DeFi yields, FX rates, weather, IP/geo, FBI wanted, SEC tickers, clinical trials, 250M academic papers, Stack Overflow, meme-coin launchpads (pump.fun, Clanker, Four.meme, SunPump), tokenized stocks, Solana top 100, and 40+ more. $0.005/call standard. USDC on Base and Solana via x402.

## Output

A JSON object containing exchange rate data for the requested currency symbols, optionally filtered to specified fields such as name and price_usd, relative to the chosen base currency (default USD).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "base": {
       "type": "string",
       "description": "Requires a 3-letter ISO currency code string (default USD)"
      },
      "symbols": {
       "type": "string",
       "description": "Requires a comma-separated string of 3-letter ISO currency codes, e.g. EUR,GBP,JPY"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-fx-rates-api-27bbb9e3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from workspace-x402-paywall.onrender.com](https://www.zero.xyz/host/workspace-x402-paywall.onrender.com/llms.txt)
