{"uid":"cap_l0-xu4rdRuqDQDBLU0b2s","slug":"x402-fx-rates-api-c755e74e","name":"x402 FX Rates API","description":"USDC pay-per-call APIs for AI agents via the x402 protocol (v2, exact, Base mainnet). Send a request, receive HTTP 402 with payment requirements, pay with @x402/fetch or any x402 client, retry with the PAYMENT-SIGNATURE header.","url":"https://call402.com/api/fx-rates?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"base":{"type":"string","description":"Base currency code (default USD)"},"amount":{"type":"number","description":"Amount of base currency to convert (default 1)"},"symbols":{"type":"array","items":{"type":"string"},"description":"Optional target currency codes; omit for all"}}},"responseSchema":{"type":"json","example":{"base":"USD","date":"2026-10-16","meta":{"note":"Daily reference rates.","source":"frankfurter (European Central Bank reference rates)"},"rates":{"CNY":710.5,"EUR":92.1},"amount":100}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_nNEQa4aDfSMbZ8EW-Aec0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns daily foreign exchange reference rates for one or more currency pairs, paid per-call via USDC microtransaction on Base mainnet.","exampleAgentPrompt":"What's today's exchange rate from USD to EUR and GBP? Convert 250 dollars into both currencies using the latest ECB reference rates.","exampleUseCases":[{"title":"Real-time invoice currency conversion","prompt":"I need to send an invoice for 1500 USD to a client in Germany — what's today's EUR equivalent based on official ECB rates?"},{"title":"Multi-currency portfolio snapshot","prompt":"Give me today's exchange rates from USD to EUR, JPY, GBP, CNY, and CHF so I can update my portfolio summary."},{"title":"Travel budget estimation","prompt":"I'm budgeting a trip to Japan and France — how much is 2000 USD worth in Japanese yen and euros right now?"}],"resultDescription":"A JSON object containing the base currency, the date of the rates, the requested amount, a source/note metadata block (citing ECB reference rates via Frankfurter), and a 'rates' map of target currency codes to converted values. For example: {base:'USD', date:'2026-10-16', amount:100, rates:{EUR:92.1, CNY:710.5}, meta:{source:'frankfurter (European Central Bank reference rates)', note:'Daily reference rates.'}}","failureModes":["HTTP 402 returned before payment — agent must attach PAYMENT-SIGNATURE header using x402 client and retry","Invalid currency code returns an error or empty rates map","Network or facilitator downtime causes request failure","Insufficient USDC balance prevents payment and request completion","Rates are daily reference rates only — not real-time mid-market or bid/ask spreads"],"whenToPreferThis":"Choose this endpoint when you need official ECB daily reference rates for one or many currency pairs with a pay-per-call model (no subscription required). Ideal for AI agents operating autonomously with a USDC wallet on Base, or when you want authoritative EU reference rates rather than commercial FX feeds. Not suitable for real-time tick data, bid/ask spreads, or high-frequency trading applications.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:38:38.815Z","isFirstParty":false,"canonicalSlug":"x402-fx-rates-api-c755e74e"}