# PayWeave Exchange Rates – Currency Conversion (Pay-per-call)

> PayWeave Exchange Rates – Currency Conversion (Pay-per-call) is a paid API for AI agents from abstract-exchange-rates.payweave.services, paid per call via x402, $0.006/call, status unknown (last checked 2026-09-13).

Converts an amount from one currency to another using real-time or historical foreign-exchange rates.

## Facts

- Endpoint: POST https://abstract-exchange-rates.payweave.services/convert
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/payweave-exchange-rates-currency-conversion-pay-per-call-5951394e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DGPbGdl4yLR0xka37Uw1Q

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 payweave-exchange-rates-currency-conversion-pay-per-call-5951394e -d '<json body>'
```

Example prompt: What's the current exchange rate from USD to JPY, and how much would 750 US dollars be in Japanese yen right now?

## When to prefer this

Use this endpoint when you need a quick, pay-per-call foreign exchange rate or currency conversion without a subscription, especially when converting a specific amount or querying a historical date. Prefer this over subscription FX APIs when call volume is low or unpredictable. The Abstract data backend provides reliable real-time rates for most major and minor currency pairs.

## Known failure modes

- Invalid or unsupported 3-letter currency code returns an error
- Historical date in future or out of supported range may return empty or error
- Missing required 'base' or 'target' fields returns validation error
- Payment failure (insufficient USDC balance) results in HTTP 402 before processing
- Network timeout if underlying Abstract data source is unavailable

## How this service works

Real-time foreign-exchange rates and currency conversion.

## Output

A JSON object containing the base currency, a map of target currency codes to their exchange rates relative to the base, and a Unix timestamp indicating when the rates were last updated.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "base",
  "target"
 ],
 "properties": {
  "base": {
   "type": "string",
   "description": "3-letter base currency code, e.g. USD"
  },
  "date": {
   "type": "string",
   "description": "Historical date (YYYY-MM-DD) to convert at. Omit for live rate."
  },
  "target": {
   "type": "string",
   "description": "3-letter target currency code, e.g. EUR"
  },
  "base_amount": {
   "type": "number",
   "description": "Amount in base currency to convert. Defaults to 1."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "base": {
   "type": "string",
   "description": "The base currency the rates are expressed against."
  },
  "last_updated": {
   "type": "number",
   "description": "Unix timestamp of the quoted rates."
  },
  "exchange_rates": {
   "type": "object",
   "description": "Map of target currency code → rate against `base` (for /live and /historical).",
   "additionalProperties": {
    "type": "number"
   }
  }
 },
 "description": "Exchange-rate JSON forwarded verbatim from Abstract.",
 "additionalProperties": true
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/payweave-exchange-rates-currency-conversion-pay-per-call-5951394e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from abstract-exchange-rates.payweave.services](https://www.zero.xyz/host/abstract-exchange-rates.payweave.services/llms.txt)
