{"uid":"cap_eNaHWnvQ_Gfxmx1AxZ4N_","slug":"ecb-currency-rates-converter-acf60916","name":"ECB Currency Rates Converter","description":"Pay-per-call data for AI agents, paid in USDC on Base with x402: token risk checks (rug check) on Base, Ethereum, Arbitrum, Optimism, Polygon and Solana, onchain reads (balances, transactions, gas, contracts, NFTs, whale trades, new pools, ENS and Basenames), ECB exchange rates, and Canadian sales tax and business days.","url":"https://ca-tax-api-mainnet.lxtap.workers.dev/fx/convert?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","required":["from","to","amount"],"properties":{"to":{"type":"string","pattern":"^[A-Za-z]{3}$","description":"ISO 4217 target currency"},"date":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Past date YYYY-MM-DD; latest if omitted"},"from":{"type":"string","pattern":"^[A-Za-z]{3}$","description":"ISO 4217 source currency"},"amount":{"type":"string","pattern":"^\\d+(\\.\\d+)?$","description":"Amount in the source currency"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"to":"CAD","date":"2026-10-22","from":"USD","rate":1.4034,"amount":250,"result":350.85,"source":"European Central Bank reference rates via frankfurter.dev"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_SbdJi_-nPtIhyT-tPAQTz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts a currency amount between two ISO 4217 currencies using the European Central Bank daily reference rate, returning the rate used, converted result, and effective rate date.","exampleAgentPrompt":"Convert 1500 USD to EUR using the ECB daily reference rate for 2024-03-15 and tell me the rate and the final converted amount.","exampleUseCases":[{"title":"Historical invoice reconciliation","prompt":"I need to convert 8500 British pounds to euros at the ECB reference rate for 2023-11-30 — what rate was used and what's the euro amount?"},{"title":"Live travel budget estimate","prompt":"How much is 2000 US dollars in Japanese yen at today's ECB rate?"},{"title":"Cross-currency reporting","prompt":"Convert 50000 Canadian dollars to Swiss francs using the ECB official rate from 2024-01-15 — I need the rate and the resulting amount."}],"resultDescription":"Returns the ECB reference exchange rate used (as a decimal), the converted amount in the target currency, and the effective date of the rate. If no date is specified, the latest available ECB rate is used.","failureModes":["Unsupported currency code (ECB only publishes rates for ~30 major currencies against EUR) — returns error or empty result","Date provided is a weekend or ECB holiday when no rate is published — may return closest prior business day rate or an error","Malformed currency code (not 3 alpha characters) — schema validation error","Amount formatted incorrectly (non-numeric string) — schema validation error","ECB data feed unavailable or delayed — may return stale or missing rate"],"whenToPreferThis":"Choose this endpoint when you need official, authoritative ECB reference rates rather than commercial or real-time market rates. Ideal for accounting, compliance, invoicing, and reporting use cases where ECB rates are contractually or legally required. Prefer over generic forex APIs when the ECB daily fixing specifically is needed, or when a historical ECB rate for a past date is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T12:45:23.231Z","isFirstParty":false,"canonicalSlug":"ecb-currency-rates-converter-acf60916"}