{"uid":"cap_1f1of5cr4krLAhI9AhJCj","slug":"agentindex-x402-live-crypto-prices-fe9c982c","name":"AgentIndex x402 Live Crypto Prices","description":"Live spot prices for crypto coins (BTC, ETH, SOL, ...) in USD or another fiat, with 24h change. Accepts tickers or CoinGecko ids. Try GET /crypto/sample.","url":"https://x402.agentindex.world/crypto?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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["coins"],"properties":{"coins":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"},"maxItems":20,"minItems":1}],"description":"Coin tickers (btc, eth, sol) and/or CoinGecko ids. String, comma-separated string, or array. Up to 20."},"vs_currency":{"type":"string","description":"Fiat quote currency, default usd (also eur, gbp, ...)."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["vs_currency","prices"],"properties":{"prices":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"price":{"type":"number"},"symbol":{"type":"string"},"change_24h_pct":{"type":"number"}}}},"vs_currency":{"type":"string"},"x402_receipt":{"type":"object"}}}}}}},"responseSchema":{"type":"json","example":{"prices":[{"id":"bitcoin","price":81218,"symbol":"btc","change_24h_pct":-1.2},{"id":"ethereum","price":2634.1,"symbol":"eth","change_24h_pct":0.4}],"vs_currency":"usd"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_M4EWTlQ8udPX_QhHqT-47","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches real-time cryptocurrency prices and 24-hour percentage changes for up to 20 coins in a specified fiat currency","exampleAgentPrompt":"What are the current prices of Bitcoin, Ethereum, and Solana in USD, and how much have they moved in the last 24 hours?","exampleUseCases":[{"title":"Portfolio snapshot before trading","prompt":"Pull the live prices and 24-hour change for BTC, ETH, and SOL in USD so I can decide whether to rebalance my crypto portfolio today."},{"title":"DeFi dashboard price feed","prompt":"Fetch real-time prices for ethereum, chainlink, and uniswap in EUR — I need the current price and the 24h percentage change for each."},{"title":"Crypto price alert context","prompt":"What's Bitcoin's current price in GBP and how much has it changed in the last 24 hours? I want to know if it's moved more than 5%."}],"resultDescription":"A JSON object containing a list of coin objects each with their CoinGecko ID, ticker symbol, current price in the requested fiat currency, and 24-hour percentage price change. Also includes the quote currency used and an x402 payment receipt.","failureModes":["Unknown coin ticker or CoinGecko ID returns an error or omits the coin from results","Requesting more than 20 coins returns a validation error","Unsupported vs_currency value may return an error or fall back to USD","Payment insufficient or missing triggers a 402 response requiring USDC payment on Base","Network or upstream CoinGecko outage may return a 5xx error"],"whenToPreferThis":"Choose this endpoint when you need live cryptocurrency prices and 24h change data for up to 20 coins simultaneously, paid per-call in USDC on Base via x402. It is ideal for AI agents that need real-time market data without a subscription, especially for DeFi workflows, portfolio monitoring, or any use case requiring trustless, pay-per-use pricing. Prefer this over subscription APIs when usage is sporadic or when the agent must autonomously pay for data access on-chain.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:41:12.886Z","isFirstParty":false,"canonicalSlug":"agentindex-x402-live-crypto-prices-fe9c982c"}