# x402 FX Currency Converter

> x402 FX Currency Converter 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).

Converts a currency amount from one currency to another and returns the exchange rate and converted value, paid per-call via USDC microtransaction.

## Facts

- Endpoint: GET https://workspace-x402-paywall.onrender.com/fx/convert?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-currency-converter-78ef985c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DknX-7ZNwzQUtRuxsy3d-

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-currency-converter-78ef985c
```

Example prompt: Convert 250 EUR to USD for me and tell me the current exchange rate.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call currency conversion with no subscription required, particularly when already operating within the x402 USDC micropayment ecosystem on Base or Solana. Ideal for agents that need occasional FX conversions without committing to a dedicated forex API subscription.

## Known failure modes

- Invalid or unsupported currency code returns an error
- Missing required 'from' or 'to' parameters results in a 400-level error
- Payment failure or insufficient USDC balance blocks the request with a 402 Payment Required response
- Network or upstream exchange rate provider outage may result in 5xx errors or stale data

## 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

Returns a JSON object containing the converted currency amount, the exchange rate between the two currencies, and optionally the currency name and USD price, depending on which fields are requested via the 'fields' parameter.

## 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",
     "required": [
      "from",
      "to"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "Requires a 3-letter ISO currency code string, e.g. USD"
      },
      "from": {
       "type": "string",
       "description": "Requires a 3-letter ISO currency code string, e.g. EUR"
      },
      "amount": {
       "type": "string",
       "description": "Requires a positive numeric amount (default 1)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-fx-currency-converter-78ef985c/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)
