{"uid":"cap_eZMmjkgp0kA-Tzza751r5","slug":"x402-agent-store-crypto-token-prices-091ab877","name":"x402-agent-store Crypto Token Prices","description":"Current USD prices for one or more tokens by CoinGecko id (e.g. bitcoin, ethereum, solana, usd-coin). Returns price, symbol, and confidence per token in one call. Sourced live from DefiLlama with attribution.","url":"https://x402-agent-store.rileycraig14.workers.dev/crypto/prices","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"],"type":"string"},"queryParams":{"type":"object","properties":{"at":{"type":"integer","description":"Unix seconds for a historical price snapshot. Omit for current."},"ids":{"type":"string","description":"Legacy alias for coins: comma-separated CoinGecko ids (bitcoin,ethereum)."},"coins":{"type":"string","description":"Comma-separated symbols (BTC,ETH), CoinGecko ids (bitcoin or coingecko:solana), or chain:address (base:0x833…). Up to 50. Preferred param."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"asOf":{"type":"string"},"count":{"type":"number"},"prices":{"type":"array"},"source":{"type":"object"},"requested":{"type":"number"},"historical":{"type":"boolean"},"unresolved":{"type":"array"}}}}}}},"responseSchema":{"type":"json","example":{"prices":{"bitcoin":{"price":104250.12,"symbol":"BTC"},"ethereum":{"price":3890.4,"symbol":"ETH"}},"source":"DefiLlama"}},"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"ids":"bitcoin,ethereum,solana"}}},"response":{"prices":{"solana":{"price":67.00297432157817,"symbol":"SOL","confidence":0.99},"bitcoin":{"price":63695.3287652914,"symbol":"BTC","confidence":0.99},"ethereum":{"price":1675.208929830666,"symbol":"ETH","confidence":0.99}},"source":"DefiLlama (https://defillama.com)","served_at":1781238641256}},"exampleRequest":{"ids":"bitcoin,ethereum,solana"},"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2eFNivhJlYGnHWkV_1C5N","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 live USD prices, symbols, and confidence scores for one or more tokens identified by CoinGecko ID, sourced from DefiLlama","exampleAgentPrompt":"What are the current USD prices for bitcoin, ethereum, and solana right now, with confidence scores?","exampleUseCases":[{"title":"DeFi portfolio value tracker","prompt":"Check the current USD prices for ethereum, aave, and uniswap so I can calculate my portfolio's total value right now"},{"title":"Real-time token swap comparison","prompt":"Get me the live prices for bitcoin and ethereum with their confidence scores to decide which one to swap into"},{"title":"Multi-chain asset monitoring","prompt":"What are the current USD prices for solana, polygon, and avalanche? I need to know which one's performing best today"}],"resultDescription":"A JSON object mapping each requested CoinGecko token ID to its current USD price, token symbol, and a confidence score indicating data reliability, plus a source attribution string (DefiLlama).","failureModes":["Invalid or unrecognized CoinGecko ID returns an error or missing entry for that token","Requesting more than 25 token IDs returns a validation error","DefiLlama data source unavailable causes a 503 or stale-data response","Malformed comma-separated ids parameter returns a 400 bad request","Payment not processed (x402 payment required) results in a 402 error"],"whenToPreferThis":"Use this endpoint when you need live USD price data for one or more specific tokens identified by their CoinGecko IDs in a single call, especially when you want confidence scores alongside prices and attribution to DefiLlama. Prefer this over generic price APIs when operating in a DeFi/agent context that supports x402 micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T06:43:48.974Z","isFirstParty":false}