# ECB EUR/FX Historical Rate Series

> ECB EUR/FX Historical Rate Series is a paid API for AI agents from x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-19).

Returns a time series of ECB euro foreign exchange reference rates for a given currency pair over up to 30 calendar days

## Facts

- Endpoint: GET https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/eu/fx/history?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ecb-eur-fx-historical-rate-series-906b5581
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nHg3xmE0B8ro_AL2dNjOw

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 ecb-eur-fx-historical-rate-series-906b5581
```

Example prompt: Can you pull the ECB euro reference rates for EUR/USD over the last 10 days and tell me the min, max, and how much the rate has changed?

## When to prefer this

Choose this endpoint when you need official ECB euro reference rates as a time series for research, analytics, or enrichment purposes — especially when you want the authoritative daily mid-market rate published by the European Central Bank rather than a real-time commercial feed. It is ideal for historical trend analysis, compliance documentation referencing official ECB rates, or enriching financial calculations with up to 30 days of daily EUR-based FX history. Not suitable for real-time trading rates or non-EUR base pairs.

## Known failure modes

- Unsupported currency code returns an error or empty points array
- days parameter outside 1-30 range is rejected by schema validation
- ECB data not yet published for the current day causes stale=true flag
- Weekend or TARGET holiday gaps result in fewer data points than requested days
- Network or worker timeout returns a 5xx error

## How this service works

Use for a short euro exchange rate history: daily ECB euro foreign exchange reference rates of one currency against EUR for up to the last 30 days (ccy=USD, days=1..30), with min, max and percent change over the window and a stale flag. Source attribution in every reply. Reference rates for information only, not transaction rates. $0.002 USDC per call. Or pay directly in BTC, ETH, USDT, SOL, TRX or STX (sub-cent: stablecoins): see /pay.

## Output

A JSON object containing the EUR base, the quoted currency, the requested day count, an array of {date, rate} data points, the minimum and maximum rates over the period, the percentage change from first to last point, a staleness flag, the source name ('ECB euro foreign exchange reference rates'), the source URL, and a note about publication timing (around 16:00 CET on TARGET working days).

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "ccy": {
       "type": "string",
       "default": "USD",
       "pattern": "^[A-Z]{3}$",
       "description": "ISO 4217 currency quoted against EUR, e.g. USD, GBP, JPY"
      },
      "days": {
       "type": "integer",
       "default": 30,
       "maximum": 30,
       "minimum": 1,
       "description": "calendar days back from the latest ECB publication"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "base",
      "ccy",
      "days",
      "points",
      "stale",
      "source",
      "sourceUrl"
     ],
     "properties": {
      "to": {
       "type": [
        "string",
        "null"
       ]
      },
      "ccy": {
       "type": "string"
      },
      "max": {
       "type": [
        "number",
        "null"
       ]
      },
      "min": {
       "type": [
        "number",
        "null"
       ]
      },
      "base": {
       "type": "string"
      },
      "days": {
       "type": "integer"
      },
      "from": {
       "type": [
        "string",
        "null"
       ]
      },
      "note": {
       "type": "string"
      },
      "count": {
       "type": "integer"
      },
      "stale": {
       "type": "boolean"
      },
      "points": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "date",
         "rate"
        ],
        "properties": {
         "date": {
          "type": "string"
         },
         "rate": {
          "type": "number"
         }
        }
       }
      },
      "source": {
       "type": "string"
      },
      "changePct": {
       "type": [
        "number",
        "null"
       ]
      },
      "sourceUrl": {
       "type": "string"
      },
      "businessDaysOld": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "base",
  "ccy",
  "days",
  "from",
  "to",
  "count",
  "points",
  "min",
  "max",
  "changePct",
  "stale",
  "businessDaysOld",
  "source",
  "sourceUrl",
  "note"
 ],
 "properties": {
  "to": {
   "type": "string"
  },
  "ccy": {
   "type": "string"
  },
  "max": {
   "type": "number"
  },
  "min": {
   "type": "number"
  },
  "base": {
   "type": "string"
  },
  "days": {
   "type": "number"
  },
  "from": {
   "type": "string"
  },
  "note": {
   "type": "string"
  },
  "count": {
   "type": "number"
  },
  "stale": {
   "type": "boolean"
  },
  "points": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "date": {
      "type": "string"
     },
     "rate": {
      "type": "number"
     }
    }
   }
  },
  "source": {
   "type": "string"
  },
  "changePct": {
   "type": "number"
  },
  "sourceUrl": {
   "type": "string"
  },
  "businessDaysOld": {
   "type": "number"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ecb-eur-fx-historical-rate-series-906b5581/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev](https://www.zero.xyz/host/x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/llms.txt)
