{"uid":"cap_k1fz1a8Ux-qxk1sungscp","slug":"bitcoin-mining-difficulty-lookup-0856c7f3","name":"Bitcoin Mining Difficulty Lookup","description":"Bitcoin mining difficulty, via Blockchain.info stats API","url":"https://finance-api.kdlcfa.workers.dev/btc-difficulty","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_sFX2SViTU_p9dDzQNUiqp","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 mining difficulty value via the Blockchain.info stats API","exampleAgentPrompt":"What's the current Bitcoin mining difficulty? I want to know how hard it is to mine BTC on the network right now.","exampleUseCases":[{"title":"Crypto dashboard difficulty widget","prompt":"Pull the current Bitcoin mining difficulty so I can display it on my crypto portfolio dashboard."},{"title":"Monitor mining difficulty changes","prompt":"What is Bitcoin's mining difficulty right now? I'm tracking whether it has gone up or down since last week's adjustment."},{"title":"BTC miner profitability analysis","prompt":"Fetch the current Bitcoin mining difficulty — I need it to calculate whether mining is still profitable at today's hash rate and energy costs."}],"resultDescription":"Returns a numeric value representing the current Bitcoin mining difficulty, sourced from the Blockchain.info stats API. The difficulty value indicates how hard it is to find a valid block hash on the Bitcoin network, reflecting the network's computational challenge level at the time of the request.","failureModes":["Upstream Blockchain.info API unavailability may return a 502 or 503 error","Stale or cached data if Blockchain.info stats endpoint is lagging","Network timeout if the Cloudflare Worker cannot reach the upstream provider","Payment not received or invalid x402 payment resulting in 402 error"],"whenToPreferThis":"Choose this endpoint when you need the current Bitcoin mining difficulty as a raw numeric value, especially in automated pipelines or agents that require live blockchain stats without building direct Blockchain.info integration. Ideal for crypto dashboards, miner profitability calculators, or monitoring workflows that need a simple, pay-per-call approach via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:44:12.504Z","isFirstParty":false}