# Bitcoin Mining Difficulty & Adjustment History

> Bitcoin Mining Difficulty & Adjustment History is a paid API for AI agents from api.web3identity.com, paid per call via x402, $0.010000/call, status unknown (last checked 2026-09-14).

Returns the current Bitcoin mining difficulty, recent change percentage, and historical adjustment records along with the next scheduled adjustment details.

## Facts

- Endpoint: GET https://api.web3identity.com/api/bitcoin/difficulty
- Price: $0.010000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-web3identity-com-cf342e29
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LCA6euPCim59V-j0QN_Y-

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability api-web3identity-com-cf342e29
```

Example prompt: What's the current Bitcoin mining difficulty, how much did it change in the last adjustment, and when is the next adjustment scheduled?

## When to prefer this

Use this endpoint when you need real-time Bitcoin mining difficulty data combined with historical adjustment context and next-adjustment forecasting in a single call. Prefer this over raw blockchain explorers when you need structured, aggregated difficulty history without parsing raw block data yourself.

## Known failure modes

- Upstream Bitcoin node data unavailable — service may return 503
- Rate limiting or payment failure — returns 402 if x402 payment not processed
- Malformed response if blockchain data is temporarily inconsistent
- Network timeout if Bitcoin RPC layer is slow

## How this service works

Bitcoin mining difficulty with adjustment history

## Output

Returns a JSON object with: current difficulty (numeric), recent percentage change, an array of historical adjustment records, and a nextAdjustment object containing details about the upcoming scheduled difficulty change.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {}
 }
}
```

## Request schema (JSON Schema)

```json
{
 "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": {
      "change": {
       "type": "number"
      },
      "current": {
       "type": "number"
      },
      "history": {
       "type": "array"
      },
      "nextAdjustment": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-web3identity-com-cf342e29/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.web3identity.com](https://www.zero.xyz/host/api.web3identity.com/llms.txt)
