# Gateway1 FX Rate API (x402)

> Gateway1 FX Rate API (x402) is a paid API for AI agents from x402-simple-data-api.parviz-gateway1.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-12).

Returns foreign exchange (FX) rate data via a pay-per-request x402 micropayment endpoint on Base, costing $0.01 USDC per call.

## Facts

- Endpoint: GET https://x402-simple-data-api.parviz-gateway1.workers.dev/api/fx?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gateway1-fx-rate-api-x402-7f1384c2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_z53cpnleEziB233IHbR8y

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 gateway1-fx-rate-api-x402-7f1384c2
```

Example prompt: What is the current exchange rate from USD to EUR? Pay the $0.01 USDC fee via x402 on Base.

## When to prefer this

Choose this endpoint when you need a low-cost, per-request FX rate lookup via a decentralized x402 micropayment flow on Base (USDC), and you want a lightweight API without subscription overhead. Best suited for agents or apps that need occasional, real-time currency rate data and are already integrated with the x402 payment protocol.

## Known failure modes

- Payment not received or insufficient USDC balance — returns HTTP 402 Payment Required
- Unsupported or invalid currency pair — may return an error or empty result
- Network/worker downtime — returns HTTP 5xx
- Malformed query parameters — returns HTTP 400 or error JSON

## How this service works

Paid multi-service APIs via x402 on Base. $0.01 USDC per request.

## Output

A JSON object containing the current foreign exchange rate for the requested currency pair, likely including the rate value and related metadata such as timestamp or pair identifiers.

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gateway1-fx-rate-api-x402-7f1384c2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-simple-data-api.parviz-gateway1.workers.dev](https://www.zero.xyz/host/x402-simple-data-api.parviz-gateway1.workers.dev/llms.txt)
