Luxor Documentation Hub Logo
Hashrate Index/API Documentation/Network

Get Network Difficulty Adjustment

> **/network/difficulty-adjustment** has rate limitation: > > Initially, the API allows for a burst of **20 requests**, and afterward, it gradually restores **1 request every 15 seconds until reaching the maximum allowable limit of 20**. > This limitation is imposed to manage and control the rate at which requests can be made to the API, preventing potential misuse or excessive use of resources. ## Difficulty Adjustment Metrics This endpoint details adjustments to the Bitcoin network's mining difficulty, providing a historical view of changes in mining difficulty over time. This is crucial for predicting future mining requirements and network security.

GET
/network/difficulty-adjustment

Authorization

X-Hi-Api-Key<token>

In: header

Query Parameters

spanstring

Time span

Default: "1M"Value in: "1D" | "7D" | "1M" | "3M" | "1Y" | "5Y" | "ALL"
curl -X GET "https://api.hashrateindex.com/v1/hashrateindex/network/difficulty-adjustment?span=1D" \
  -H "X-Hi-Api-Key: <token>"

OK

{
  "$schema": "https://api.hashrateindex.com/v1/hashrateindex/schemas/NetworkDifficultyAdjustmentData.json",
  "data": [
    {
      "difficulty": 0.1,
      "timestamp": "2019-08-24T14:15:22Z"
    }
  ]
}