{"uid":"cap_fZs4JUo2dbUWhaZo2D6Gy","slug":"currency-exchange-rate-lookup-e0306b50","name":"Currency Exchange Rate Lookup","description":"How do you convert between fiat currencies? Returns the daily ECB reference rate between two 3-letter codes (CHF, EUR, USD…), not a live market rate ($0.002 per call).","url":"https://api.api-agent-ia.ch/taux-de-change?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":["base","quote"],"properties":{"base":{"type":"string"},"quote":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"base":"CHF","date":"2026-10-22","rate":1.0857,"quote":"EUR","source":"ECB reference rate via Frankfurter (daily, not a live market quote)"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_v_icRxdzzisbxHLgtJypU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","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 ECB reference data via Frankfurter","exampleAgentPrompt":"What's the current exchange rate from CHF to EUR? I need the ECB reference rate.","exampleUseCases":[{"title":"Invoice conversion for international billing","prompt":"I need to invoice a client in euros but my base currency is Swiss francs — what's the current CHF to EUR exchange rate so I can calculate the correct amount?"},{"title":"Travel budget planning in foreign currency","prompt":"I'm heading to Japan next week — what's today's exchange rate from USD to JPY so I can figure out how much cash to bring?"},{"title":"Daily forex rate snapshot for reporting","prompt":"Pull the current EUR to GBP exchange rate from the ECB reference data — I need it for today's financial report."}],"resultDescription":"A JSON object containing the base currency code, quote currency code, the numeric exchange rate (e.g. 1.07), the date of the rate, and the data source (ECB reference rate via Frankfurter).","failureModes":["Unsupported or invalid currency codes return an error response","Rate may not reflect real-time market prices — ECB reference rates are typically published once per business day","Network or upstream Frankfurter API unavailability causes request failure","Missing required query parameters (base or quote) result in a validation error"],"whenToPreferThis":"Prefer this endpoint when you need official ECB reference exchange rates for fiat currency pairs, particularly for compliance, invoicing, or financial reporting purposes. It is ideal for lightweight, per-query lookups rather than bulk historical data. Use over generic FX APIs when ECB provenance and low cost ($0.002 per call) matter.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T12:39:24.296Z","isFirstParty":false,"canonicalSlug":"currency-exchange-rate-lookup-e0306b50"}