# Global Weather & FX API — FX Rate Lookup

> Global Weather & FX API — FX Rate Lookup is a paid API for AI agents from built-with-productos-xszv.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Returns the current foreign-exchange rate between two ISO 4217 currency pairs (e.g. USD/EUR) with the date of the rate.

## Facts

- Endpoint: GET https://built-with-productos-xszv.vercel.app/v1/fx-rate?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/global-weather-fx-api-fx-rate-lookup-edfb5c35
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QYNR0MMMCwlapMp0vnuT7

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-fx-rate-lookup-edfb5c35
```

Example prompt: What's the current exchange rate from USD to EUR? I need today's live rate.

## When to prefer this

Use this endpoint when you need a simple, low-cost, pay-per-call FX rate lookup with no API key setup, especially in agentic or automated workflows using x402/MPP micropayments. Ideal for spot-rate queries where sub-second latency and minimal friction matter more than historical data or high-frequency streaming.

## 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 provided or insufficient triggers a 402 Payment Required response
- Network or upstream FX data source unavailability may cause a 503 or timeout

## 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 exchange rate as a decimal number, and the date the rate was fetched (e.g. {"base":"USD","quote":"EUR","rate":0.86,"date":"2026-09-06"}).

## 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-fx-rate-lookup-edfb5c35/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from built-with-productos-xszv.vercel.app](https://www.zero.xyz/host/built-with-productos-xszv.vercel.app/llms.txt)
