{"uid":"cap_uBbiKJ3nIwlNpYnuzUicX","slug":"defillama-crypto-price-lookup-a3c5d486","name":"DeFiLlama Crypto Price Lookup","description":"Current USD price of one or more cryptocurrencies (ETH price, BTC price, any token by symbol or contract address), source DefiLlama. Parameter: ?coins=ethereum,bitcoin (comma-separated CoinGecko IDs, or 'chain:address' for a specific token, e.g. ethereum:0xdac17f958d2ee523a2206206994597c13d831ec7).","url":"https://x402-seller-0ay3.onrender.com/api/defi/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"],"type":"string"},"queryParams":{"type":"object","required":["coins"],"properties":{"coins":{"type":"string","description":"Comma-separated list of identifiers (e.g. ethereum,bitcoin or base:0x...)."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"prices":{"bitcoin":{"price":65000.12,"symbol":"BTC","confidence":0.99},"ethereum":{"price":2400.5,"symbol":"ETH","confidence":0.99}},"source":"https://coins.llama.fi","currency":"USD","fetched_at":"2026-09-01T12:00:00.000Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_EDvZuiKKMKZLZYcgkaNAM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current USD price of one or more cryptocurrencies by CoinGecko ID or on-chain contract address, sourced from DefiLlama","exampleAgentPrompt":"What are the current USD prices for Bitcoin and Ethereum? Also grab the price of USDT on Ethereum (contract 0xdac17f958d2ee523a2206206994597c13d831ec7) while you're at it.","exampleUseCases":[{"title":"Portfolio valuation snapshot","prompt":"I hold ETH, BTC, and SOL — can you pull their current USD prices so I can calculate the value of my portfolio?"},{"title":"DeFi token price by contract","prompt":"What's the current USD price of the token at Ethereum address 0xdac17f958d2ee523a2206206994597c13d831ec7? Use the chain:address format."},{"title":"Multi-coin price alert check","prompt":"Fetch the live prices for bitcoin, ethereum, and solana from DefiLlama and tell me if any of them have crossed their round-number thresholds I'm watching."}],"resultDescription":"A JSON object mapping each requested coin identifier to its current USD price, token symbol, and a confidence score (0–1). Also includes the source URL (coins.llama.fi), the currency (USD), and an ISO timestamp of when the data was fetched.","failureModes":["Unknown coin ID returns a missing or null entry for that coin","Malformed chain:address format results in a lookup failure for that token","DefiLlama upstream outage causes the endpoint to return an error or stale data","Empty or missing 'coins' query parameter results in a 400-level error","Rate limiting or payment failure returns a 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when you need real-time USD prices for one or more cryptocurrencies and want DefiLlama as the data source. It supports both CoinGecko IDs (e.g. 'ethereum', 'bitcoin') and on-chain contract addresses via the 'chain:address' syntax, making it ideal for DeFi tokens that may not have a standard CoinGecko ID. Prefer it over generic price APIs when you need confidence scores alongside prices, or when querying obscure ERC-20 or cross-chain tokens by contract.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:46:02.961Z","isFirstParty":false}