{"uid":"cap_9LA74T6OryBdaiR8c91yy","slug":"x402-crypto-exchange-rate-api-dc27200d","name":"x402 Crypto Exchange Rate API","description":"Paid cryptocurrency API endpoints via x402 micropayments","url":"https://x402-crypto.vercel.app/api/crypto-exchange/%7Bpath%7D","method":"POST","headers":{},"bodySchema":{"type":"object","required":["query"],"properties":{"to":{"type":"string","description":"Target currency symbol"},"from":{"type":"string","description":"Source currency symbol"},"query":{"type":"string","description":"Currency pair or symbol (e.g. BTC/USDT)"},"amount":{"type":"number","description":"Amount to convert"}}},"responseSchema":{"type":"object","properties":{"data":{"type":"object","description":"Response payload from the upstream API (structure varies by endpoint)"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.130964","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.130964/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.130964","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.130964","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wfNNW0qVALMykOcl-kNOs","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.130964","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns cryptocurrency exchange rates and conversion data for a given currency pair via x402 micropayment-gated API","exampleAgentPrompt":"What's the current exchange rate for BTC/USDT? I want to know how much 0.5 BTC is worth in USDT right now.","exampleUseCases":[{"title":"Portfolio valuation in USD","prompt":"I have 2.5 ETH and want to know its current value in USD — can you look up the ETH/USD exchange rate and tell me what 2.5 ETH is worth?"},{"title":"Arbitrage price comparison","prompt":"What's the current BTC/USDT rate? I'm comparing prices across exchanges and need the latest figure."},{"title":"Automated trade trigger check","prompt":"Check the current SOL/USDC exchange rate and tell me if 1 SOL is above $150 USDC right now."}],"resultDescription":"Returns a data object containing the exchange rate or converted value for the requested cryptocurrency pair, sourced from an upstream crypto market data API. The exact structure of the payload varies by endpoint path but typically includes price or rate information for the queried symbol.","failureModes":["Invalid or unsupported currency pair returns an error or empty data","Missing required 'query' field results in a validation error","Upstream crypto data provider outage causes failure or stale data","Insufficient x402 payment balance results in 402 Payment Required response","Malformed path parameter returns 404 or unexpected response"],"whenToPreferThis":"Use this endpoint when you need real-time cryptocurrency exchange rate lookups or currency conversions paid via x402 micropayments (USDC). It is well-suited for AI agents that need to fetch crypto prices on-demand without a subscription, paying only per call at ~$0.13 USDC. Prefer this over free public APIs when integrating with x402-compatible payment flows or when rate limits on free tiers are a concern.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:39:05.472Z","isFirstParty":false}