{"uid":"cap_OXceVSxjfXJOprJBFvNr8","slug":"crypto-price-lookup-via-coingecko-cc824207","name":"Crypto Price Lookup via CoinGecko","description":"Pay-per-request crypto &amp; stock market data for AI agents and developers, settled in USDC on Base via x402.","url":"https://market-data-x402-5wh8-ivory.vercel.app/api/crypto/price","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":["ids"],"properties":{"ids":{"type":"string","description":"Comma-separated CoinGecko ids"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{"bitcoin":{"usd":65000}},"source":"coingecko"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zsnNfmMWGmIsn5DvwVtNj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current USD prices for one or more cryptocurrencies by CoinGecko ID","exampleAgentPrompt":"What are the current USD prices for bitcoin, ethereum, and solana?","exampleUseCases":[{"title":"Portfolio value snapshot","prompt":"Can you get me the current USD prices for bitcoin, ethereum, and solana so I can see how my portfolio is doing today?"},{"title":"DeFi arbitrage price check","prompt":"Fetch the live prices for uniswap, aave, and compound in USD — I need to compare them before making a move."},{"title":"Crypto price alert trigger","prompt":"Check the current price of dogecoin and shiba-inu in USD and let me know if either has moved significantly."}],"resultDescription":"A JSON object with a 'data' key containing a map of each requested CoinGecko coin ID to its current USD price, plus a 'source' field indicating the data came from CoinGecko. Example: {data: {bitcoin: {usd: 65000}}, source: 'coingecko'}.","failureModes":["Invalid or misspelled CoinGecko IDs return empty or partial data","Missing 'ids' query parameter causes a 400 or empty response","Payment not completed results in 402 Payment Required","Rate limiting or CoinGecko API downtime may cause 503 or stale data","Very new or obscure tokens may not be listed on CoinGecko and return no price"],"whenToPreferThis":"Use this endpoint when you need real-time USD price data for one or more cryptocurrencies identified by their CoinGecko IDs. It is ideal for portfolio tracking, DeFi decision-making, price alerting, or any workflow that needs live market prices at low cost ($0.002 per call). Prefer this over free public APIs when operating in a paid agent context that already handles x402 micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:35:42.199Z","isFirstParty":false}