{"uid":"cap_VuhXK4Nl2s7_90Q2jGk_d","slug":"leo-shi-market-data-api-a0193231","name":"Leo Shi Market Data API","description":"一个人的思考、创作与成长记录。关于生活、技术、商业和一切有趣的事。","url":"https://leoshi-blog.vercel.app/api/market?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"ethUsd":{"type":"number"},"blockNumber":{"type":"integer"},"baseRpcHealthy":{"type":"boolean"}}}}}}},"responseSchema":{"type":"json","example":{"ethUsd":3500.42,"blockNumber":28123456,"baseRpcHealthy":true}},"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_FME2pN1mmdbr6x0hWf4qz","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 current ETH/USD price, latest Base chain block number, and Base RPC health status in a single call","exampleAgentPrompt":"What's the current ETH price in USD, the latest block number on Base, and is the Base RPC healthy right now?","exampleUseCases":[{"title":"Real-time ETH price check","prompt":"Can you grab the latest ETH/USD price for me right now?"},{"title":"Base network health monitoring","prompt":"Check whether the Base RPC is currently healthy and tell me what block it's on."},{"title":"Crypto dashboard snapshot","prompt":"I need a quick snapshot — current ETH price, latest Base block number, and whether the Base RPC is up. Pull that for me."}],"resultDescription":"A JSON object containing: ethUsd (current ETH price in USD as a float, e.g. 3500.42), blockNumber (latest block number on the Base chain, e.g. 28123456), and baseRpcHealthy (boolean indicating whether the Base RPC endpoint is operational).","failureModes":["RPC node unavailable — baseRpcHealthy may return false or call may fail","Price feed outage — ethUsd may be stale or missing","Network timeout — endpoint may not respond if the Vercel deployment is cold or overloaded","Invalid/no response body if payment is not processed correctly via x402 protocol"],"whenToPreferThis":"Choose this endpoint when you need a quick, low-cost combined lookup of ETH/USD price AND Base chain status in a single call. It is ideal for lightweight monitoring agents or DeFi dashboards that need to confirm both market price and blockchain health together without querying multiple data sources separately.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T06:42:09.809Z","isFirstParty":false,"canonicalSlug":"leo-shi-market-data-api-a0193231"}