{
  "x402Version": 2,
  "id": 33442,
  "slug": "33442",
  "resource": "https://api.blockchain.info/explorer-gateway-kt/x402/charts/difficulty",
  "description": "Paid AI-agent access to Blockchain.com Explorer API",
  "type": "http",
  "serviceName": "Blockchain.info API",
  "resourceType": "Utilities",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x995ffeF6c39234F0bBc95cf0E84FE1B6e6e2d8e0",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bda02913",
      "amount": "1000",
      "amountUsd": 0.001,
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "description": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "period": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "unit": {
            "type": "string"
          },
          "values": {
            "items": {
              "properties": {
                "x": {
                  "format": "int64",
                  "type": "integer"
                },
                "y": {
                  "format": "double",
                  "type": "number"
                }
              },
              "required": [
                "x",
                "y"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "status",
          "name",
          "unit",
          "period",
          "description",
          "values"
        ],
        "type": "object"
      },
      "format": {
        "const": "application/json"
      },
      "type": {
        "const": "json"
      }
    },
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "description": "Get Bitcoin mining difficulty chart data (paid via x402)",
      "info": {
        "input": {
          "body": {
            "cors": false,
            "format": "json",
            "metadata": false,
            "rollingAverage": "8h",
            "sampled": true,
            "timespan": "1y"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "description": "The estimated difficulty of the bitcoin network",
            "name": "Difficulty",
            "period": "day",
            "status": "ok",
            "unit": "difficulty",
            "values": [
              {
                "x": 1704067200,
                "y": 72000000000000
              },
              {
                "x": 1704153600,
                "y": 72100000000000
              }
            ]
          },
          "format": "application/json",
          "type": "json"
        }
      },
      "method": "POST",
      "schema": {
        "properties": {
          "input": {
            "properties": {
              "body": {
                "properties": {
                  "cors": {
                    "default": false,
                    "description": "Enable CORS headers",
                    "type": "boolean"
                  },
                  "format": {
                    "default": "json",
                    "description": "Response format:\n- `json` — Returns structured JSON with metadata and values\n- `csv` — Returns raw CSV data with timestamp and value columns (no metadata)\n",
                    "enum": [
                      "json",
                      "csv"
                    ],
                    "type": "string"
                  },
                  "metadata": {
                    "default": false,
                    "description": "Include metadata in response",
                    "type": "boolean"
                  },
                  "rollingAverage": {
                    "default": "8h",
                    "description": "Rolling average window (e.g., \"8h\", \"24h\")",
                    "example": "8h",
                    "type": "string"
                  },
                  "sampled": {
                    "default": true,
                    "description": "Apply sampling to reduce data points",
                    "type": "boolean"
                  },
                  "timespan": {
                    "default": "1y",
                    "description": "Time period (e.g., \"24h\", \"7d\", \"1y\", \"3y\")",
                    "example": "1y",
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "bodyType": {
                "const": "json"
              },
              "method": {
                "const": "POST"
              },
              "type": {
                "const": "http"
              }
            },
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "description": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "period": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  },
                  "unit": {
                    "type": "string"
                  },
                  "values": {
                    "items": {
                      "properties": {
                        "x": {
                          "format": "int64",
                          "type": "integer"
                        },
                        "y": {
                          "format": "double",
                          "type": "number"
                        }
                      },
                      "required": [
                        "x",
                        "y"
                      ],
                      "type": "object"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "status",
                  "name",
                  "unit",
                  "period",
                  "description",
                  "values"
                ],
                "type": "object"
              },
              "format": {
                "const": "application/json"
              },
              "type": {
                "const": "json"
              }
            },
            "type": "object"
          }
        }
      },
      "serviceName": "Explorer Gateway API",
      "tags": [
        "Charts"
      ]
    }
  },
  "tags": [
    "ai-agent",
    "bazaar"
  ],
  "sourceHost": "api.blockchain.info",
  "lastUpdated": "2026-10-08T06:08:30.872Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-08T06:08:30.603Z"
  },
  "metadata": {
    "serviceName": "Blockchain.info API",
    "extensions": {
      "bazaar": {
        "description": "Get Bitcoin mining difficulty chart data (paid via x402)",
        "info": {
          "input": {
            "body": {
              "cors": false,
              "format": "json",
              "metadata": false,
              "rollingAverage": "8h",
              "sampled": true,
              "timespan": "1y"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "description": "The estimated difficulty of the bitcoin network",
              "name": "Difficulty",
              "period": "day",
              "status": "ok",
              "unit": "difficulty",
              "values": [
                {
                  "x": 1704067200,
                  "y": 72000000000000
                },
                {
                  "x": 1704153600,
                  "y": 72100000000000
                }
              ]
            },
            "format": "application/json",
            "type": "json"
          }
        },
        "method": "POST",
        "schema": {
          "properties": {
            "input": {
              "properties": {
                "body": {
                  "properties": {
                    "cors": {
                      "default": false,
                      "description": "Enable CORS headers",
                      "type": "boolean"
                    },
                    "format": {
                      "default": "json",
                      "description": "Response format:\n- `json` — Returns structured JSON with metadata and values\n- `csv` — Returns raw CSV data with timestamp and value columns (no metadata)\n",
                      "enum": [
                        "json",
                        "csv"
                      ],
                      "type": "string"
                    },
                    "metadata": {
                      "default": false,
                      "description": "Include metadata in response",
                      "type": "boolean"
                    },
                    "rollingAverage": {
                      "default": "8h",
                      "description": "Rolling average window (e.g., \"8h\", \"24h\")",
                      "example": "8h",
                      "type": "string"
                    },
                    "sampled": {
                      "default": true,
                      "description": "Apply sampling to reduce data points",
                      "type": "boolean"
                    },
                    "timespan": {
                      "default": "1y",
                      "description": "Time period (e.g., \"24h\", \"7d\", \"1y\", \"3y\")",
                      "example": "1y",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "bodyType": {
                  "const": "json"
                },
                "method": {
                  "const": "POST"
                },
                "type": {
                  "const": "http"
                }
              },
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "description": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "period": {
                      "type": "string"
                    },
                    "status": {
                      "type": "string"
                    },
                    "unit": {
                      "type": "string"
                    },
                    "values": {
                      "items": {
                        "properties": {
                          "x": {
                            "format": "int64",
                            "type": "integer"
                          },
                          "y": {
                            "format": "double",
                            "type": "number"
                          }
                        },
                        "required": [
                          "x",
                          "y"
                        ],
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "status",
                    "name",
                    "unit",
                    "period",
                    "description",
                    "values"
                  ],
                  "type": "object"
                },
                "format": {
                  "const": "application/json"
                },
                "type": {
                  "const": "json"
                }
              },
              "type": "object"
            }
          }
        },
        "serviceName": "Explorer Gateway API",
        "tags": [
          "Charts"
        ]
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.blockchain.info",
    "manifest_name": "api.blockchain.info",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "description": "string",
      "name": "string",
      "period": "string",
      "status": "string",
      "unit": "string",
      "values": [
        {
          "x": 0,
          "y": 0
        }
      ]
    },
    "format": null,
    "type": null
  }
}