Digital Economy and Infrastructure

Network hashrate and difficulty

Bitcoin network hashrate (EH/s) and difficulty over time. Periods: 24h, 3d, 1w, 1m, 3m, 6m, 1y, 2y, 3y. Hashrate = total computing power securing the network.

get/api/v1/onchain/bitcoin/mining/hashrate

Query parameters

periodstring

Time period: 24h, 3d, 1w, 1m, 3m, 6m, 1y, 2y, 3y

Time period: 24h, 3d, 1w, 1m, 3m, 6m, 1y, 2y, 3y

Response

Network hashrate and difficulty time series.

Example response

{
  "meta": {
    "endpoint": "/api/v1/fred/us/cpi",
    "data_time": "2026-04-16T14:30:00Z",
    "response_time": "2026-04-16T14:30:12Z",
    "provider": "Sugra API v1.0.1",
    "source": "sugra_crypto",
    "attribution": "Short interest and Reg SHO daily short volume data is owned by and sourced from FINRA (Financial Industry Regulatory Authority).",
    "fallback_chain": [
      "sugra_crypto",
      "sugra_finance"
    ]
  }
}

Changes

Changed in 2 of the 21 revisions of this API.1412

    • the response property data/currentDifficulty became optional for the status 200

      response-property-became-optional

    • the response property data/currentHashrate became optional for the status 200

      response-property-became-optional

    • the response property data/difficulty became optional for the status 200

      response-property-became-optional

    • the response property data/difficulty_count became optional for the status 200

      response-property-became-optional

    • the response property data/hashrate_count became optional for the status 200

      response-property-became-optional

    • the response property data/hashrates became optional for the status 200

      response-property-became-optional

    • the response property data/period became optional for the status 200

      response-property-became-optional

    • response property data/currentDifficulty list-of-types was widened by adding types integer and null to media type application/json of response 200

      response-property-list-of-types-widened

    • response property data/currentHashrate list-of-types was widened by adding types null and number to media type application/json of response 200

      response-property-list-of-types-widened

    • response property data/difficulty list-of-types was widened by adding types null to media type application/json of response 200

      response-property-list-of-types-widened

    • response property data/difficulty_count list-of-types was widened by adding types null and number to media type application/json of response 200

      response-property-list-of-types-widened

    • response property data/hashrate_count list-of-types was widened by adding types null and number to media type application/json of response 200

      response-property-list-of-types-widened

    • response property data/hashrates list-of-types was widened by adding types null to media type application/json of response 200

      response-property-list-of-types-widened

    • response property data/period list-of-types was widened by adding types null to media type application/json of response 200

      response-property-list-of-types-widened

    This revision also has 15 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • added the optional property code to the response with the 401 status

      response-optional-property-added

    • added the optional property code to the response with the 429 status

      response-optional-property-added

    • added the optional property code to the response with the 503 status

      response-optional-property-added

    • added the optional property hint to the response with the 401 status

      response-optional-property-added

    • added the optional property hint to the response with the 429 status

      response-optional-property-added

    • added the optional property hint to the response with the 503 status

      response-optional-property-added

    • added the optional property plan to the response with the 401 status

      response-optional-property-added

    • added the optional property plan to the response with the 429 status

      response-optional-property-added

    • added the optional property plan to the response with the 503 status

      response-optional-property-added

    • added the optional property reason to the response with the 401 status

      response-optional-property-added

    • added the optional property reason to the response with the 429 status

      response-optional-property-added

    • added the optional property reason to the response with the 503 status

      response-optional-property-added