{"uid":"cap_GaHFk2f5--AP5N-QVbDKF","slug":"currency-exchange-rate-ecb-data-c80929b6","name":"Currency Exchange Rate (ECB Data)","description":"Get current exchange rate between two currencies using ECB data. Supports all major currencies. Returns rate, inverse rate, and date.","url":"https://exchange.use.x402atlas.com/currency-exchange-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"],"type":"string"},"queryParams":{"type":"object","properties":{"to":{"enum":["AUD","BGN","BRL","CAD","CHF","CNY","CZK","DKK","EUR","GBP","HKD","HUF","IDR","ILS","INR","ISK","JPY","KRW","MXN","MYR","NOK","NZD","PHP","PLN","RON","SEK","SGD","THB","TRY","USD","ZAR"],"type":"string","default":"EUR","description":"Optional quote currency, 3-letter ISO 4217 code from the ECB set, must differ from `from`"},"from":{"enum":["AUD","BGN","BRL","CAD","CHF","CNY","CZK","DKK","EUR","GBP","HKD","HUF","IDR","ILS","INR","ISK","JPY","KRW","MXN","MYR","NOK","NZD","PHP","PLN","RON","SEK","SGD","THB","TRY","USD","ZAR"],"type":"string","default":"USD","description":"Optional base currency, 3-letter ISO 4217 code from the ECB set"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["from","to","rate","inverse_rate","date"],"properties":{"to":{"type":"string","description":"Quote currency code, upper-cased."},"date":{"type":"string","format":"date","description":"ECB publication date (YYYY-MM-DD) of the rate; last business day on weekends/holidays."},"from":{"type":"string","description":"Base currency code, upper-cased."},"rate":{"type":"number","description":"Units of `to` per 1 unit of `from`."},"inverse_rate":{"type":"number","description":"Units of `from` per 1 unit of `to` (1/rate, 6 decimals)."}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_JfTp9-f1NvcQqqME3RJbh","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current exchange rate between two currencies using European Central Bank (ECB) data, including the rate, inverse rate, and publication date.","exampleAgentPrompt":"What's the current exchange rate from USD to EUR according to ECB data — give me both the rate and the inverse?","exampleUseCases":[{"title":"Travel budget currency check","prompt":"I'm heading to Japan next week — what's today's ECB rate from USD to JPY so I can figure out how much yen I'll get?"},{"title":"International invoice conversion","prompt":"We just received an invoice in British pounds and need to pay in euros — what's the current GBP to EUR exchange rate from the ECB?"},{"title":"Cross-currency financial reporting","prompt":"For our end-of-month report, can you pull the latest ECB exchange rate from EUR to CNY, including the inverse rate and the date it was published?"}],"resultDescription":"A JSON object containing: the base currency code (from), the quote currency code (to), the exchange rate as units of 'to' per 1 unit of 'from', the inverse rate (1/rate, 6 decimal places), and the ECB publication date in YYYY-MM-DD format (last business day on weekends or holidays).","failureModes":["Same currency provided for both 'from' and 'to' parameters — returns an error since they must differ","Unsupported currency code provided — only the 31 ECB-supported currencies are accepted","ECB data unavailable or delayed — may return stale or no data during ECB outages","Missing required query parameters — defaults to USD/EUR if not specified","Network timeout or payment failure (x402 micropayment of $0.01 USDC not processed)"],"whenToPreferThis":"Choose this endpoint when you need authoritative ECB-sourced exchange rates for any of the 31 major currencies, with both forward and inverse rates in a single call. Ideal for financial reporting, invoice conversion, or travel budget calculations where ECB data is the trusted reference. Best suited for point-in-time rate lookups rather than historical time-series or real-time mid-market rates from other providers.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T18:31:19.796Z","isFirstParty":false,"canonicalSlug":"currency-exchange-rate-ecb-data-c80929b6"}