{"uid":"cap_v70lvTKDlZW55Rq0jhNzZ","slug":"x402-data-api-crypto-spot-price-8b884a47","name":"x402-data-api Crypto Spot Price","description":"Current USD spot price and 24-hour percent change for any crypto asset by CoinGecko id. Cheap, high-volume price lookups for trading and analytics agents.","url":"https://x402-data-api.onrender.com/api/price/:coin","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"},"pathParams":{"type":"object"},"queryParams":{"type":"object","required":["coin"],"properties":{"coin":{"type":"string","description":"CoinGecko asset id, e.g. bitcoin, ethereum, solana"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"ts":{"type":"string"},"usd":{"type":"number"},"coin":{"type":"string"},"change_24h_pct":{"type":"number"}}}}}}},"responseSchema":null,"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_6cK6q4nA_cA9P1h6FlbDc","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":"Returns current USD spot price and 24-hour percent change for any CoinGecko-identified crypto asset","exampleAgentPrompt":"What's the current USD price of solana and how much has it changed in the last 24 hours?","exampleUseCases":null,"resultDescription":"Returns a JSON object with the coin's CoinGecko id, current USD spot price as a number, 24-hour percent change as a decimal, and a timestamp of when the data was fetched.","failureModes":["Invalid or unknown CoinGecko coin id returns an error — agent must use exact CoinGecko ids like 'bitcoin', not ticker symbols like 'BTC'","Payment not fulfilled (x402 micropayment of $0.001 USDC not processed) results in 402 Payment Required response","Network or upstream CoinGecko API outage may cause 503 or timeout","Missing required coin query parameter returns a 400 error"],"whenToPreferThis":"Use this endpoint when you need a fast, cheap USD spot price and 24-hour change for a single crypto asset by CoinGecko id. Ideal for trading bots, price alert systems, or analytics pipelines that need high-volume, low-cost price lookups without full market data. If you need multi-timeframe changes (1h/7d/30d), market cap, or volume, prefer the sibling enriched market report endpoint instead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:33:02.114Z","isFirstParty":false}