{"uid":"cap_tC5DwBRPViDBPqwohshHV","slug":"crypto-price-by-symbol-cryptopulse-2d88f661","name":"Crypto Price by Symbol — CryptoPulse","description":"Pay-per-call API for AI agents, settled in USDC on Base mainnet (eip155:8453) via the x402 protocol - no API keys, no signup, no subscription. Live crypto market data: BTC, ETH, SOL, USDC (USD Coin) prices with 24h change (source: OKX), Base mainnet chain snapshot (block height, gas price gwei), real-time USDC-on-Base transfer analytics (transfer count, volume, unique senders and recipients over recent blocks), and USDC/ETH wallet balances plus nonce for any address. Agent utility tools: deterministic JSON repair for LLM output (strip code fences, fix trailing commas, single quotes, unquoted keys, balance braces), DNS A/AAAA lookup, and URL extraction from arbitrary text. Every endpoint returns HTTP 402 with an x402 payment challenge in USDC on Base; pay with any wallet and retry with the PAYMENT-SIGNATURE header. MCP server at /mcp (streamable HTTP, 6 pay-per-call tools). Ideal for crypto portfolios, DeFi dashboards, market analysis agents, data pipelines, and LLM post-processing.","url":"https://cryptopulse.pythonanywhere.com/crypto/price/%7Bsymbol%7D","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"chain":{"chainId":8453,"network":"base-mainnet","blockHeight":21000000,"gasPriceGwei":0.05},"market":{"solana":{"usd":150,"usd_24h_change":-0.5},"bitcoin":{"usd":60000,"usd_24h_change":1.5},"ethereum":{"usd":3000,"usd_24h_change":2},"usd-coin":{"usd":1,"usd_24h_change":0}},"servedAt":1755430000}},"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_2zGtwQgH2TsC3UcSZUkx5","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 the live USD price and 24h percentage change for a given crypto symbol (BTC, ETH, SOL, or USDC) from OKX, alongside a Base mainnet chain snapshot, paid per-call in USDC via x402.","exampleAgentPrompt":"What's the current price of ETH right now, including its 24-hour change and the latest Base mainnet gas price?","exampleUseCases":[{"title":"Live crypto price for portfolio tracker","prompt":"Pull the current BTC price and its 24-hour change so I can update my portfolio dashboard."},{"title":"DeFi dashboard gas and price snapshot","prompt":"Get me the latest ETH price alongside the current Base mainnet block height and gas price in gwei."},{"title":"Market analysis agent price feed","prompt":"What's SOL trading at right now on OKX, and has it gone up or down in the last 24 hours?"}],"resultDescription":"A JSON object containing the requested symbol's current USD price and 24h percentage change (sourced from OKX), plus a Base mainnet chain snapshot with current block height and gas price in gwei, and a servedAt Unix timestamp.","failureModes":["HTTP 402 returned if x402 payment challenge is not satisfied — agent must pay with USDC on Base and retry with PAYMENT-SIGNATURE header","Unknown or unsupported symbol returns an error or empty market data","Stale or unavailable OKX feed may return outdated prices","Network latency on Base mainnet may delay chain snapshot","Invalid symbol format in URL path causes a 404 or bad request"],"whenToPreferThis":"Choose this endpoint when you need real-time price data for BTC, ETH, SOL, or USDC from OKX combined with a live Base mainnet chain snapshot in a single pay-per-call request — no API key or subscription required. Ideal for AI agents, DeFi dashboards, or automated pipelines that need to pay micropayments programmatically via x402 in USDC on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-09T18:30:01.926Z","isFirstParty":false}