{"uid":"cap_8-j8qw1HHFElJO8woPs5o","slug":"crypto-spot-price-api-coinbase-sourced-edge-cached-74e79794","name":"Crypto Spot Price API (Coinbase-sourced, Edge-cached)","description":"Live crypto spot price in USD — Coinbase public source, edge-cached up to 30s","url":"https://mr-river8.makar52nn2016.workers.dev/api/crypto-price?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"input":{"type":"object","properties":{"queryParams":{"type":"object","properties":{"symbol":{"type":"string","example":"BTC-USD","description":"Trading pair BASE-QUOTE"}}}}},"output":{"type":"object","properties":{"example":{"base":"BTC","price":112345.67,"quote":"USD","source":"coinbase-spot","symbol":"BTC-USD","currency":"USD"}}}}},"responseSchema":{"type":"json","example":{"base":"BTC","price":112345.67,"quote":"USD","source":"coinbase-spot","symbol":"BTC-USD","currency":"USD"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/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_YUQTbYALictO4tSCOWOyC","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 the live USD spot price for a given crypto trading pair (e.g. BTC-USD) sourced from Coinbase, edge-cached up to 30 seconds","exampleAgentPrompt":"What's the current spot price of BTC-USD right now? Pull it from the Coinbase-sourced feed.","exampleUseCases":[{"title":"Real-time Bitcoin price check","prompt":"What is Bitcoin trading at right now in USD? I need the current spot price."},{"title":"Crypto portfolio valuation","prompt":"Get me the current spot prices for ETH-USD and SOL-USD so I can calculate the value of my holdings."},{"title":"Trading bot price trigger","prompt":"Fetch the live price of BTC-USD — if it's below $100,000 I want to trigger a buy alert."}],"resultDescription":"A JSON object containing the base asset (e.g. 'BTC'), quote currency ('USD'), the numeric spot price (e.g. 112345.67), the trading symbol (e.g. 'BTC-USD'), the source identifier ('coinbase-spot'), and the currency label. Price is edge-cached and up to 30 seconds old.","failureModes":["Invalid or unsupported trading pair symbol returns an error or empty result","Network or edge cache unavailability may cause timeout","Coinbase upstream outage could result in stale or failed price data","Missing 'symbol' query parameter returns a bad request error","Payment failure (insufficient USDC) blocks the request with a 402 response"],"whenToPreferThis":"Choose this endpoint when you need a quick, low-cost ($0.001 per call) live USD spot price for a crypto asset sourced directly from Coinbase, with edge-caching ensuring low latency. Ideal for agents that need real-time price lookups without managing Coinbase API credentials. Prefer over raw Coinbase API when you want a pay-per-call micro-payment model via x402 and don't want to maintain API keys.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-16T18:34:00.947Z","isFirstParty":false,"canonicalSlug":"crypto-spot-price-api-coinbase-sourced-edge-cached-74e79794"}