{"uid":"cap_vfcHr3kRylMPuG1XpGM0Q","slug":"api-web3identity-com-ed77bc83","name":"Bitcoin Network Statistics API","description":"Bitcoin network statistics including hashrate, difficulty, and blocks","url":"https://api.web3identity.com/api/bitcoin/stats","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"mempool":{"type":"number"},"hashrate":{"type":"number"},"difficulty":{"type":"number"},"blockHeight":{"type":"number"},"avgBlockTime":{"type":"number"}}}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{}}},"response":{"n_tx":697966,"source":"blockchain.info","totalbc":2003630937500000,"hash_rate":1015403714743.3557,"timestamp":"2026-05-29T22:42:23.863Z","difficulty":138955357012247,"blocks_size":236966405,"n_btc_mined":45937500000,"nextretarget":953567,"n_blocks_mined":147,"n_blocks_total":951619,"total_btc_sent":83691653213416,"total_fees_btc":-45937500000,"market_price_usd":73325.05,"trade_volume_btc":2952.76,"trade_volume_usd":216511274.638,"estimated_btc_sent":11406689191469,"miners_revenue_btc":0,"miners_revenue_usd":0,"minutes_between_blocks":9.1575,"estimated_transaction_volume_usd":8363960552.989242}},"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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_l9lCF83KeIkk8TKTajySv","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 live Bitcoin network statistics including hashrate, difficulty, block height, average block time, and mempool size","exampleAgentPrompt":"What are the current Bitcoin network stats — hashrate, difficulty, block height, and mempool size right now?","exampleUseCases":[{"title":"Monitor Bitcoin mining difficulty changes","prompt":"Can you check the current Bitcoin mining difficulty and let me know if there's been a significant adjustment recently? I want to know how competitive the network is right now."},{"title":"Check Bitcoin mempool congestion","prompt":"How backed up is the Bitcoin mempool right now? I'm about to send a transaction and want to know if it's going to be slow or if the network is clear."},{"title":"Track live Bitcoin hashrate","prompt":"What's the Bitcoin network hashrate looking like at the moment? I'm trying to gauge overall network health and security for a report I'm putting together."}],"resultDescription":"Returns a JSON object with current Bitcoin network metrics: hashrate (TH/s or similar unit), mining difficulty, current block height, average block time in seconds, and mempool transaction count or size.","failureModes":["Network or upstream data source unavailable — 5xx error","Payment not completed — 402 Payment Required if x402 payment header is missing or insufficient","Rate limiting — 429 if too many requests in a short window","Stale data if upstream Bitcoin node is out of sync"],"whenToPreferThis":"Use this endpoint when you need a quick, aggregated snapshot of Bitcoin network health — especially hashrate, difficulty, and mempool — without running your own Bitcoin node or querying a block explorer manually. Ideal for dashboards, trading bots, or any workflow that needs current on-chain network conditions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:45:30.402Z","isFirstParty":false}