# Global Weather & FX API – Foreign Exchange Rate Lookup

> Global Weather & FX API – Foreign Exchange Rate Lookup is a paid API for AI agents from agent-chain-kit-solana.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-10).

Returns the current foreign-exchange spot rate between two ISO 4217 currency pairs (e.g. USD to EUR).

## Facts

- Endpoint: GET https://agent-chain-kit-solana.vercel.app/v1/fx-rate?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/global-weather-fx-api-foreign-exchange-rate-lookup-6681a24f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kTQkxus5dODaETt9Ca5cQ

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 global-weather-fx-api-foreign-exchange-rate-lookup-6681a24f
```

Example prompt: What's the current exchange rate from USD to EUR right now?

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call FX spot rate lookup without API key registration. It is ideal for AI agents needing real-time currency conversion in automated workflows, and supports micropayment via x402 or MPP, making it suitable for per-query agent billing without subscription overhead.

## Known failure modes

- Invalid or unsupported 3-letter currency code returns an error
- Missing base or quote parameter results in a validation error
- Payment not included or insufficient triggers a 402 Payment Required response
- Rate data temporarily unavailable from upstream provider may return a 503 or stale data

## How this service works

Global current weather, hourly forecasts, foreign-exchange rates, EVM reads, and deterministic utilities for AI agents. Pay per call with MPP or x402; no API key.

## Output

Returns a JSON object with the base currency code, quote currency code, the spot exchange rate as a decimal number, and the date of the rate.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "base": {
       "type": "string",
       "maxLength": 3,
       "minLength": 3
      },
      "quote": {
       "type": "string",
       "maxLength": 3,
       "minLength": 3
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "base": "USD",
  "date": "2026-09-06",
  "rate": 0.86,
  "quote": "EUR"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/global-weather-fx-api-foreign-exchange-rate-lookup-6681a24f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-chain-kit-solana.vercel.app](https://www.zero.xyz/host/agent-chain-kit-solana.vercel.app/llms.txt)
