{"uid":"cap_l1h7XnWjszrZ3sPUxKCcG","slug":"x402-onchainexpat-com-75759b1c","name":"x402.onchainexpat.com Fiat Currency Converter","description":"Pay-per-request AI, crypto, proxy, and utility APIs using x402 protocol","url":"https://x402.onchainexpat.com/api/x402-tools/currency/convert","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"to":{"type":"string","description":"Target currency code (default 'EUR'). Aliases: 'to_currency', 'toCurrency', 'target'"},"from":{"type":"string","description":"Source currency code (default 'USD'). Aliases: 'from_currency', 'fromCurrency', 'source'"},"amount":{"type":"number","description":"Amount to convert (default 1). Aliases: 'fromAmount', 'value'"}}},"responseSchema":{"type":"object","properties":{"to":{"type":"string"},"from":{"type":"string"},"rate":{"type":"number"},"amount":{"type":"number"},"cached":{"type":"boolean"},"result":{"type":"number"}}},"example":{"request":{"input":{"body":{"to":"EUR","from":"USD","amount":100},"type":"http","bodyType":"json"}},"response":{"to":"EUR","from":"USD","rate":0.8598,"amount":100,"cached":false,"converted":85.98,"last_updated":"Wed, 03 Jun 2026 00:00:01 +0000"}},"exampleRequest":{"to":"EUR","from":"USD","amount":100},"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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_boiAx37ad5BsQlU9nJnER","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":"Converts fiat currency amounts between world currencies (USD, EUR, GBP, etc.) using current exchange rates","exampleAgentPrompt":"Convert 250 US dollars to euros and tell me the current exchange rate.","exampleUseCases":[{"title":"Calculate international payroll in local currencies","prompt":"I need to pay team members in different countries. Convert 5000 USD to EUR for our Berlin office, GBP for London, and JPY for Tokyo so I know exactly what each person receives."},{"title":"Budget travel expenses across multiple countries","prompt":"I'm planning a month-long trip through Europe. Can you convert my 3000 dollar budget into euros, British pounds, and Swiss francs so I know how much I can spend in each country?"},{"title":"Compare pricing for global vendor invoices","prompt":"We have invoices from three suppliers: one requesting 10000 EUR, another 8500 GBP, and a third 1200000 INR. Convert all of them to USD so I can see which vendor is actually the cheapest."}],"resultDescription":"Returns the converted amount in the target currency along with the exchange rate used, given a source currency, target currency, and input amount.","failureModes":["Unsupported currency code returns an error","Invalid or negative amount causes a validation error","Missing required fields (source, target, amount) returns a 400 error","Payment failure or insufficient USDC balance blocks the request","Exchange rate data unavailable for exotic currency pairs"],"whenToPreferThis":"Use this endpoint when you need fiat-to-fiat currency conversion (e.g., USD to EUR, GBP to JPY). Do NOT use this for cryptocurrency price lookups — the sibling /crypto/price endpoint handles crypto. Prefer this over generic FX APIs when you are already operating in a Web3/x402 payment context.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:54:59.464Z","isFirstParty":false}