{"uid":"cap_T6rafx3d3kpstlpTGt5WM","slug":"x402-exchange-rate-converter-fa9075ad","name":"x402 Exchange Rate Converter","description":"Convert money between currency codes using current reference exchange-rate data. Use this endpoint for USD, EUR, GBP, JPY, and other supported fiat conversions when an agent needs a rate, converted amount, or currency comparison.","url":"https://x402-trends-server.onrender.com/api/exchange-rate?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"],"properties":{"to":{"type":"string","description":"Three-letter target currency code such as EUR, USD, GBP, or JPY."},"from":{"type":"string","description":"Three-letter source currency code such as USD, EUR, GBP, or JPY."},"amount":{"type":"number","description":"Amount of source currency to convert. Defaults to 1.","exclusiveMinimum":0}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["status","from","to","amount","rate","convertedAmount"],"properties":{"to":{"type":"string"},"date":{"type":["string","null"]},"from":{"type":"string"},"rate":{"type":"number"},"amount":{"type":"number"},"source":{"type":"string"},"status":{"type":"string"},"payment":{"type":"string"},"convertedAmount":{"type":"number"}},"additionalProperties":false}}}}},"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_wd3irpfK0RA_ttOTiFy-y","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":"Convert an amount from one currency to another using current reference exchange-rate data, returning the rate and converted amount.","exampleAgentPrompt":"What's the current exchange rate from USD to EUR, and how much would 250 US dollars be in euros?","exampleUseCases":[{"title":"Travel budget planning in foreign currency","prompt":"I'm heading to Japan next month — how much would 1500 US dollars convert to in Japanese yen at today's exchange rate?"},{"title":"Invoice conversion for international client","prompt":"I need to send an invoice to a UK client — can you tell me what 3200 euros is worth in British pounds right now?"},{"title":"Cross-currency price comparison","prompt":"What's the current exchange rate from Swiss francs to US dollars, and how much is 800 CHF in USD?"}],"resultDescription":"Returns a JSON object containing the source currency code, target currency code, the input amount, the current exchange rate, the converted amount, the date of the rate, and the data source. For example: {status, from, to, amount, rate, convertedAmount, date, source}.","failureModes":["Invalid or unsupported currency code returns an error","Missing required 'from' or 'to' query parameters causes a 400 bad request","Amount of zero or negative value is rejected due to exclusiveMinimum constraint","Exchange rate data source may be temporarily unavailable causing a 5xx error","Render.com cold start may introduce initial latency on first call"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, on-demand currency conversion with a clear numeric result and exchange rate. It is ideal for single currency pair lookups rather than bulk or historical rate queries. At $0.01 USDC per call via x402, it is cost-effective for occasional agent-driven conversions in financial, travel, or invoicing workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:36:20.654Z","isFirstParty":false,"canonicalSlug":"x402-exchange-rate-converter-fa9075ad"}