# HTTPay Currency Convert

> HTTPay Currency Convert is a paid API for AI agents from httpay.xyz, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Converts a monetary amount from one currency to another using live exchange rates sourced from the European Central Bank via Frankfurter.

## Facts

- Endpoint: POST https://httpay.xyz/api/currency-convert
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/httpay-currency-convert-4812150a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tVzqJZdm0yBPJ8MSTMLWT

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 httpay-currency-convert-4812150a -d '<json body>'
```

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

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call currency conversion with no API key or subscription — ideal for agents that only occasionally need FX rates and want ECB-sourced data at $0.002 per call.

## Known failure modes

- Unsupported currency ISO code returns an error
- Missing required parameters (from, to, amount) returns a 400-level error
- Payment not processed (x402 payment required) returns 402 before conversion is attempted
- Frankfurter upstream outage may cause delayed or failed responses

## How this service works

Fiat currency conversion using ECB exchange rates (via api.frankfurter.app). Params: from, to, amount.

## Output

Returns a JSON object containing the source currency, target currency, input amount, exchange rate, converted result, conversion date, and the data source (European Central Bank via Frankfurter).

## Example request

```json
{
 "to": "zero-qa@agentmail.to",
 "from": "zero-qa@agentmail.to",
 "amount": 100
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string",
   "description": "Target currency ISO code (e.g. EUR)"
  },
  "from": {
   "type": "string",
   "description": "Source currency ISO code (e.g. USD)"
  },
  "amount": {
   "type": "number",
   "description": "Amount to convert"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "EUR",
  "date": "2026-02-20",
  "from": "USD",
  "rate": 0.9234,
  "amount": 100,
  "result": 92.34,
  "source": "api.frankfurter.app (European Central Bank)"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/httpay-currency-convert-4812150a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from httpay.xyz](https://www.zero.xyz/host/httpay.xyz/llms.txt)
