{"uid":"cap_lHPXyHOd6f_YWTjN34tNf","slug":"ecb-historical-fx-rates-1fbc9e16","name":"ECB Historical FX Rates","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/historical?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":["date","to"],"properties":{"to":{"type":"string","description":"targets"},"date":{"type":"string","description":"YYYY-MM-DD"},"from":{"type":"string","description":"base"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"base":"USD","rates":{"EUR":0.86},"rate_date":"2026-01-15"}},"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_K94SRF3T5i9BmENDqnEan","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 official European Central Bank foreign-exchange reference rates for a specific historical date, converting between ~30 currencies.","exampleAgentPrompt":"What was the official ECB exchange rate from USD to EUR on January 15, 2026?","exampleUseCases":[{"title":"Invoicing in foreign currency retrospectively","prompt":"I need to convert $5,000 USD to EUR using the official ECB rate from March 3, 2025 — what was the rate and how much is that in euros?"},{"title":"Historical portfolio valuation","prompt":"What were the ECB reference rates for GBP, JPY, and CHF against EUR on December 31, 2024? I'm trying to value my international holdings at year-end."},{"title":"Compliance reporting with benchmark rates","prompt":"Pull the official ECB FX fixing for USD to EUR on 2025-09-15 — I need the benchmark rate for a regulatory report."}],"resultDescription":"A JSON object containing the base currency, the requested rate date as confirmed by ECB, and a rates map with each target currency code mapped to its exchange rate relative to the base currency (e.g. {\"base\":\"USD\",\"rates\":{\"EUR\":0.86},\"rate_date\":\"2026-01-15\"}).","failureModes":["Non-business day requested (ECB does not publish rates on weekends or holidays) — may return nearest available date or an error","Unsupported currency code — ECB covers ~30 currencies, exotic pairs will not be available","Date too far in the past — ECB historical data has a limited range","Missing required 'date' or 'to' query parameters — returns 400 or validation error","Payment not completed (x402) — returns 402 Payment Required before data is served"],"whenToPreferThis":"Use this endpoint when you need official, authoritative ECB benchmark exchange rates for a specific past date — ideal for financial reporting, compliance, invoice reconciliation, or historical portfolio valuation. Prefer this over real-time FX feeds when regulatory or audit-grade historical accuracy is required, or when you need the ECB fixing specifically (not market mid-rates). Not appropriate for live/real-time rate quotes or currency pairs outside the ECB's ~30 currency basket.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T03:44:51.427Z","isFirstParty":false,"canonicalSlug":"ecb-historical-fx-rates-1fbc9e16"}