{"uid":"cap_7NjPBx70YI9DvKmRrum57","slug":"x402-fx-rate-api-3be53991","name":"x402 FX Rate API","description":"FX rates for AI agents — 160+ currency pairs. Paid per call in USDC on Base via the x402 protocol (v2, exact scheme). No API keys, no accounts.","url":"https://x402-fx-rate.netlify.app/v1/fx?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","required":["to","from"],"properties":{"to":{"type":"string","description":"Target currency code, e.g. EUR"},"from":{"type":"string","description":"Source currency code, e.g. USD"}}},"responseSchema":{"type":"object"},"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_h4-4dN0BE2XGA2R9RevZ1","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 a real-time foreign exchange rate for a specified currency pair, paid per call in USDC via the x402 protocol","exampleAgentPrompt":"What's the current exchange rate from USD to EUR?","exampleUseCases":[{"title":"Real-time invoice currency conversion","prompt":"I'm sending an invoice to a client in Japan — what's the current exchange rate from USD to JPY so I can quote them the right amount?"},{"title":"Travel budget planning","prompt":"I'm heading to the UK next week — what's today's exchange rate from USD to GBP so I can figure out my spending budget?"},{"title":"Cross-border payment pricing","prompt":"Before I send a wire to our supplier in Germany, can you check the current EUR to USD exchange rate so I can calculate exactly how many dollars I need?"}],"resultDescription":"Returns an exchange rate value for the requested currency pair (e.g. how many units of the target currency equal one unit of the source currency), drawn from a pool of 160+ supported currency pairs. The response is a JSON object containing the rate data.","failureModes":["Unsupported currency pair — returns error if either currency code is not among the 160+ supported pairs","Payment failure — x402 payment in USDC on Base is required; missing or invalid payment header results in HTTP 402","Invalid currency code format — malformed or unrecognized currency codes (e.g. typos) may return an error","Network or service unavailability — the Netlify-hosted service may be temporarily unavailable"],"whenToPreferThis":"Choose this endpoint when you need a per-call, no-signup FX rate lookup paid in USDC via x402 — ideal for autonomous AI agents that lack API key management but can execute micropayments on Base. Best for real-time, single-pair lookups across a broad range of 160+ currency pairs without account infrastructure overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T06:31:11.661Z","isFirstParty":false,"canonicalSlug":"x402-fx-rate-api-3be53991"}