# Mat Web & Data Toolkit – FX Currency Rates

> Mat Web & Data Toolkit – FX Currency Rates is a paid API for AI agents from automatom.matt-d59.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-19).

Fetches current foreign exchange rates from ECB via frankfurter.app, returning base currency, date, and rates for multiple currencies as JSON.

## Facts

- Endpoint: GET https://automatom.matt-d59.workers.dev/fx?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mat-web-data-toolkit-fx-currency-rates-a422d837
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CBrYoCcyS3r16kRGDwvA9

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 mat-web-data-toolkit-fx-currency-rates-a422d837
```

Example prompt: Can you fetch today's foreign exchange rates with USD as the base currency so I can see what EUR and GBP are trading at right now?

## When to prefer this

Choose this endpoint when you need quick, authoritative ECB-sourced foreign exchange rates in a simple JSON format, especially for USD-based conversions to EUR and GBP. Ideal for lightweight financial calculations, invoice generation, or dashboard enrichment without needing a full-featured FX data subscription.

## Known failure modes

- Invalid or unsupported base currency code returns an error
- ECB data unavailable or delayed on non-trading days (weekends/holidays)
- Network timeout on the upstream frankfurter.app service
- Payment failure (402) if x402 payment header is missing or insufficient

## How this service works

Fetches a public web page and returns its title, meta description, outbound links and readable plain text as JSON.

## Output

Returns a JSON object containing the base currency, the date of the rates, and a map of currency codes to their exchange rate values relative to the base, sourced from ECB data via frankfurter.app.

## 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"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "base": {
       "type": "string"
      }
     }
    }
   },
   "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-10-16",
  "rates": {
   "EUR": 0.88865,
   "GBP": 0.74989
  },
  "source": "ECB via frankfurter.app"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mat-web-data-toolkit-fx-currency-rates-a422d837/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from automatom.matt-d59.workers.dev](https://www.zero.xyz/host/automatom.matt-d59.workers.dev/llms.txt)
