# Vending Machine FX Rate (Frankfurter/ECB)

> Vending Machine FX Rate (Frankfurter/ECB) is a paid API for AI agents from vending-machine-seven.vercel.app, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-13).

Returns live fiat foreign exchange rates for a given base currency against selected target currencies, using Frankfurter/ECB as primary source with open.er-api as fallback.

## Facts

- Endpoint: GET https://vending-machine-seven.vercel.app/api/v/fx-rate?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vending-machine-fx-rate-frankfurter-ecb-715b446b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xAEUrwyPVuJAHcjMnqSmR

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 vending-machine-fx-rate-frankfurter-ecb-715b446b
```

Example prompt: What are the current live exchange rates from USD to EUR, GBP, and JPY — using ECB rates if available?

## When to prefer this

Choose this endpoint when you need live, authoritative fiat FX rates sourced from the ECB (via Frankfurter) with a reliable open.er-api fallback, particularly for cross-border payment calculations, invoice currency conversion, or any agent workflow requiring ISO 4217 compliant exchange rate data. Prefer over crypto price endpoints when dealing exclusively with fiat currencies.

## Known failure modes

- Unsupported or invalid ISO 4217 currency code returns an error
- Upstream Frankfurter and fallback open.er-api both unavailable returns service error
- Malformed symbols query param (e.g. typos or unsupported symbols) may return empty or partial rates
- Rate limiting or network timeout from upstream ECB/Frankfurter source

## How this service works

Live fiat FX rates (Frankfurter/ECB primary, open.er-api fallback) for cross-border agents

## Output

A JSON object with `ok: true`, the `base` currency code, a `rates` map of target currency codes to their current exchange rates, the `source` (Frankfurter or open.er-api fallback), and a `service` identifier.

## 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"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "base": {
       "type": "string",
       "description": "ISO 4217 base, default USD"
      },
      "symbols": {
       "type": "string",
       "description": "Comma list e.g. EUR,GBP,JPY"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "base": {
       "type": "string"
      },
      "rates": {
       "type": "object"
      },
      "source": {
       "type": "string"
      },
      "service": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vending-machine-fx-rate-frankfurter-ecb-715b446b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from vending-machine-seven.vercel.app](https://www.zero.xyz/host/vending-machine-seven.vercel.app/llms.txt)
