{
  "x402Version": 2,
  "id": 33281,
  "slug": "33281",
  "resource": "https://x402-apis.pages.dev/v1/fx-rates",
  "description": "Use when an agent needs an official exchange rate to convert prices, invoices or portfolios: ECB euro reference rates for ~30 currencies (USD, GBP, CHF, JPY, CNY …), latest or for any day since 1999, with any base currency (cross rates computed from the ECB fix). Returns the exact rate date. Source named in every answer. Bad input: HTTP 400 before payment; unknown currency or outage is not charged.",
  "type": "http",
  "serviceName": "Official Macro & FX Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x896baBcda513322AF2218fe7346353846835f978",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "base": {
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "rates": {
            "type": "object"
          },
          "source": {
            "type": "string"
          }
        },
        "required": [
          "base",
          "date",
          "rates",
          "source"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "base": "USD",
            "symbols": "EUR,CHF,GBP"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "attribution": "Source: European Central Bank (ECB Data Portal, data-api.ecb.europa.eu). Reuse permitted with source acknowledged.",
            "base": "USD",
            "date": "2026-10-13",
            "rates": {
              "CHF": 0.82418,
              "EUR": 0.885113,
              "GBP": 0.761234
            },
            "retrievedAt": "2026-10-13T15:10:00.000Z",
            "source": "European Central Bank – euro foreign exchange reference rates"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "additionalProperties": false,
                "properties": {
                  "base": {
                    "description": "Base currency, 3 letters, default EUR. Any ECB reference currency.",
                    "type": "string"
                  },
                  "date": {
                    "description": "Day as YYYY-MM-DD (1999-01-04 or later). Default: latest. Weekends/holidays return the previous ECB fix.",
                    "type": "string"
                  },
                  "symbols": {
                    "description": "Comma-separated target currencies, e.g. USD,CHF,GBP. Default: all.",
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "base": {
                    "type": "string"
                  },
                  "date": {
                    "type": "string"
                  },
                  "rates": {
                    "type": "object"
                  },
                  "source": {
                    "type": "string"
                  }
                },
                "required": [
                  "base",
                  "date",
                  "rates",
                  "source"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "fx",
    "exchange-rates",
    "currency",
    "ecb",
    "eur",
    "bazaar"
  ],
  "sourceHost": "x402-apis.pages.dev",
  "lastUpdated": "2026-10-13T11:57:33.438Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-13T11:57:33.168Z"
  },
  "metadata": {
    "serviceName": "Official Macro & FX Data",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "base": "USD",
              "symbols": "EUR,CHF,GBP"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "attribution": "Source: European Central Bank (ECB Data Portal, data-api.ecb.europa.eu). Reuse permitted with source acknowledged.",
              "base": "USD",
              "date": "2026-10-13",
              "rates": {
                "CHF": 0.82418,
                "EUR": 0.885113,
                "GBP": 0.761234
              },
              "retrievedAt": "2026-10-13T15:10:00.000Z",
              "source": "European Central Bank – euro foreign exchange reference rates"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "additionalProperties": false,
                  "properties": {
                    "base": {
                      "description": "Base currency, 3 letters, default EUR. Any ECB reference currency.",
                      "type": "string"
                    },
                    "date": {
                      "description": "Day as YYYY-MM-DD (1999-01-04 or later). Default: latest. Weekends/holidays return the previous ECB fix.",
                      "type": "string"
                    },
                    "symbols": {
                      "description": "Comma-separated target currencies, e.g. USD,CHF,GBP. Default: all.",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "base": {
                      "type": "string"
                    },
                    "date": {
                      "type": "string"
                    },
                    "rates": {
                      "type": "object"
                    },
                    "source": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "base",
                    "date",
                    "rates",
                    "source"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "x402-apis.pages.dev",
    "manifest_name": "x402-apis.pages.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-13T15:56:53.641Z"
  },
  "exampleResponse": {
    "example": {
      "base": "string",
      "date": "string",
      "rates": {},
      "source": "string"
    },
    "type": "string"
  }
}