{"uid":"cap_OU-feo7ZV_E5UTt4Hg3kI","slug":"ecb-fx-reference-rates-api-fx-x402utils-ed3ef264","name":"ECB FX Reference Rates API (fx.x402utils)","description":"Official ECB foreign-exchange reference rates for agents: latest rates, conversion and historical fixings for ~30 currencies. Paid per call via x402 (USDC on Base).","url":"https://fx.x402utils.workers.dev/v1/rate?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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","required":["to"],"properties":{"to":{"type":"string","description":"comma-separated targets"},"from":{"type":"string","description":"base currency (ISO 4217)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"base":"USD","date":"2026-09-24","rates":{"EUR":0.8797,"PLN":3.8553}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_kwIfavGLNBhC_Tyvl_QSb","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns European Central Bank official foreign-exchange reference rates for ~30 currencies, supporting latest rates and currency conversion via a pay-per-call x402 endpoint.","exampleAgentPrompt":"What's the official ECB reference rate for USD to EUR and PLN right now? Use the ECB FX rates service to get today's fixing.","exampleUseCases":[{"title":"Invoice currency conversion for accounting","prompt":"I need to convert USD amounts to EUR and PLN for our monthly invoices — can you pull today's official ECB reference rates for both currencies so I can do the conversion accurately?"},{"title":"Real-time FX display in a finance dashboard","prompt":"Show me the current ECB official exchange rates for GBP, CHF, JPY, and SEK against USD so I can update our finance dashboard."},{"title":"Compliance reporting with official rates","prompt":"I need the ECB's official reference rate for EUR against USD for today's date for a regulatory report — can you fetch that?"}],"resultDescription":"Returns a JSON object with the base currency, the fixing date, and a map of target currency codes to their exchange rates (e.g. {\"base\":\"USD\",\"date\":\"2026-09-24\",\"rates\":{\"EUR\":0.8797,\"PLN\":3.8553}}). Rates are sourced from ECB official daily fixings.","failureModes":["Missing or invalid 'to' query parameter returns an error","Unsupported currency code (outside ECB's ~30 covered currencies) returns an error or empty rates","Payment failure via x402 (insufficient USDC balance) blocks the request","ECB data not yet published for today (e.g. before daily fixing) may return previous business day's date","Network or Cloudflare Worker timeout returns a 5xx error"],"whenToPreferThis":"Choose this endpoint when you need official ECB reference rates — the authoritative, legally recognized daily fixings used in financial, accounting, and compliance contexts — rather than real-time market rates from a broker or exchange. Ideal when you need rates for ~30 major currencies, want a simple per-call pay-as-you-go model with no subscription, and your workflow requires a trustworthy, auditable source.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T18:36:39.410Z","isFirstParty":false,"canonicalSlug":"ecb-fx-reference-rates-api-fx-x402utils-ed3ef264"}