{"uid":"cap_2Tkeq3vNw1qnrxzpNQz-w","slug":"x402-fx-exchange-rate-api-14988fc5","name":"x402 FX Exchange Rate API","description":"Paid API endpoints for prices, weather, FX, news, gas, dominance, fear/greed, ATH, and more","url":"https://x402-api-production-bd43.up.railway.app/fx?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"to":{"type":"string","description":"Target currency (e.g. EUR)"},"from":{"type":"string","description":"Source currency (e.g. USD)"}}},"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_bAfroI26URhNTXQvfZ-rq","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 foreign exchange (FX) rate between two currencies via a micropayment-gated GET endpoint","exampleAgentPrompt":"What's the current exchange rate from USD to EUR?","exampleUseCases":[{"title":"International invoice currency conversion","prompt":"I'm billing a client in Japan — what's the current USD to JPY exchange rate so I can calculate what to charge them?"},{"title":"Travel budget planning","prompt":"I'm heading to the UK next month — what's the current USD to GBP rate so I can figure out my budget?"},{"title":"Cross-border crypto settlement check","prompt":"Before I settle this payment, can you grab the live EUR to CHF exchange rate for me?"}],"resultDescription":"Returns the current exchange rate value for the specified currency pair (from → to), enabling currency conversion calculations in real time.","failureModes":["Invalid or unsupported currency code returns an error or empty result","Payment failure (402) if USDC micropayment is not completed","Missing required 'from' or 'to' parameters results in a bad request error","Network or upstream data provider unavailability may cause timeout or 5xx error"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, real-time FX rate lookup for a specific currency pair and are operating in an x402 micropayment environment. It is well-suited for agents that need to perform currency conversions on-demand without a long-term API subscription, paying only $0.01 USDC per call. Prefer alternatives if you need bulk historical rates, a full currency list, or cannot use the x402 payment protocol.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T05:37:34.938Z","isFirstParty":false,"canonicalSlug":"x402-fx-exchange-rate-api-14988fc5"}