{"uid":"cap_XXoOwuIVpdNGLFxNHtxan","slug":"x402-data-api-defillama-spot-token-prices-cdeefb79","name":"x402-data-api DefiLlama Spot Token Prices","description":"Spot token prices from DefiLlama — pass comma-separated CoinGecko ids, get price/change_24h/symbol/confidence/timestamp.","url":"https://x402-data-api.sigrunner.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":{"coins":{"type":"string","description":"Comma-separated CoinGecko ids (default bitcoin,ethereum,solana; max 25)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"id":"bitcoin","price":63731.49678570848,"symbol":"BTC","timestamp":1784244902,"change_24h":-1.78,"confidence":0.99}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_IePvZhbZQHw8sUz9sKp1B","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns spot token prices from DefiLlama for up to 25 CoinGecko-identified tokens, including price, 24h change, symbol, confidence score, and timestamp.","exampleAgentPrompt":"What are the current spot prices, 24-hour percent changes, and confidence scores for bitcoin, ethereum, and solana right now?","exampleUseCases":null,"resultDescription":"A JSON object keyed by CoinGecko id, each entry containing the token's current USD price, 24h price change percentage, symbol, a confidence score (indicating data quality), and a Unix timestamp of when the price was last updated.","failureModes":["Invalid or unrecognized CoinGecko ids return missing or empty entries","Requesting more than 25 coins may result in an error or truncated response","Network/worker downtime returns a 5xx error","Payment failure (insufficient USDC or bad x402 header) returns 402 Payment Required","DefiLlama upstream unavailability may cause stale or missing price data"],"whenToPreferThis":"Prefer this endpoint when you need fast, multi-token spot price lookups sourced from DefiLlama with confidence metadata, especially when you already have CoinGecko token ids and want price, 24h change, and freshness signals in a single call. It is well-suited for DeFi dashboards, portfolio trackers, or any workflow needing batch token pricing for up to 25 assets simultaneously.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:36:45.599Z","isFirstParty":false}