{"uid":"cap_U6I2atSMJywJolTY7j-GH","slug":"fx-exchange-rate-lookup-29afb67c","name":"FX Exchange Rate Lookup","description":"Free need-to-tool routing plus pay-per-call npm docs and TypeScript API signatures, npm breaking-change diffs, JavaScript-rendered browser snapshots and deterministic coding-agent checks via AgentCash/x402.","url":"https://x402-canary.nicolas-x402-16f380a7.workers.dev/v1/exchange-rates?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"base":{"type":"string","default":"USD","example":"USD"},"quote":{"type":"string","default":"EUR","example":"EUR"}}},"responseSchema":{"type":"json","example":{"data":{"base":"USD","rate":0.91,"quote":"EUR"},"meta":{"engine":"fx"}}},"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_NIDO_uonpUGfrEE9x4muf","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 (base and quote) via a lightweight FX engine.","exampleAgentPrompt":"What's the current exchange rate from USD to EUR?","exampleUseCases":[{"title":"Real-time invoice currency conversion","prompt":"I'm invoicing a client in Japan — what's the current USD to JPY exchange rate so I can convert my $2,500 invoice?"},{"title":"Travel budget planning","prompt":"I'm heading to the UK next week — what's the current USD to GBP exchange rate so I can figure out how much cash to bring?"},{"title":"Crypto arbitrage FX baseline","prompt":"Can you check the current EUR to CHF exchange rate? I need it as a baseline for a cross-border trade calculation."}],"resultDescription":"A JSON object containing the base currency, quote currency, and the current exchange rate as a decimal number, plus metadata indicating the FX engine used (e.g. {\"data\":{\"base\":\"USD\",\"rate\":0.91,\"quote\":\"EUR\"},\"meta\":{\"engine\":\"fx\"}}).","failureModes":["Unsupported or invalid currency code returns an error response","Network timeout or worker unavailability returns a 5xx error","Missing required base or quote parameter may return a validation error","Payment failure (x402 protocol) may block access if the $0.01 USDC fee is not fulfilled"],"whenToPreferThis":"Choose this endpoint when you need a quick, cheap ($0.01 USDC) programmatic FX rate lookup between two currency pairs without needing historical data, batch conversions, or deep financial analytics. It is well-suited for coding agents that need a lightweight, pay-per-call currency rate within an x402-compatible payment flow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T18:38:34.333Z","isFirstParty":false,"canonicalSlug":"fx-exchange-rate-lookup-29afb67c"}