{"uid":"cap_dleyS06ID-Y9OrqzsjdrT","slug":"bitcoin-block-height-lookup-c923c179","name":"Bitcoin Block Height Lookup","description":"Current Bitcoin block height, via Blockchain.info stats API","url":"https://finance-api.kdlcfa.workers.dev/btc-block-height","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":[],"properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_AHI50FEENzTU32Ula_1gL","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 Bitcoin blockchain block height via Blockchain.info stats API","exampleAgentPrompt":"What is the current Bitcoin block height right now?","exampleUseCases":[{"title":"On-chain analytics dashboard refresh","prompt":"Can you pull the current Bitcoin block height so I can update my blockchain analytics dashboard?"},{"title":"Monitor Bitcoin halving progress","prompt":"How close are we to the next Bitcoin halving? Grab the current block height so I can calculate how many blocks are left."},{"title":"Verify Bitcoin transaction confirmation depth","prompt":"What block is Bitcoin currently on? I want to figure out how many confirmations my transaction has based on its block number."}],"resultDescription":"Returns a single integer representing the current Bitcoin blockchain block height — the total number of blocks mined since genesis, sourced from Blockchain.info's stats API.","failureModes":["Blockchain.info upstream API unavailable or rate-limited — returns error or stale data","Network timeout at the Cloudflare Worker layer","Payment not processed — 402 response requiring USDC payment before data is returned"],"whenToPreferThis":"Use this endpoint when you need a quick, low-cost ($0.01 USDC) lookup of the current Bitcoin block height without setting up a full Bitcoin node or subscribing to a heavier blockchain data provider. It is ideal for lightweight on-chain monitoring, halving countdown calculations, or confirming transaction depth in a simple agentic workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:49:07.284Z","isFirstParty":false}