Digital Economy and Infrastructure

Lightning Network statistics

Lightning Network aggregate stats - total channels, nodes, capacity (BTC), average fees. Intervals: latest, 24h, 3d, 1w, 1m, 3m, 6m, 1y, 2y, 3y.

get/api/v1/onchain/bitcoin/lightning/stats

Query parameters

intervalstring

Interval: latest, 24h, 3d, 1w, 1m, 3m, 6m, 1y, 2y, 3y

Interval: latest, 24h, 3d, 1w, 1m, 3m, 6m, 1y, 2y, 3y

Response

Lightning Network aggregates for channels, nodes, capacity, and fees over the interval.

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 22 revisions of this API.1913

  • 560e8847c7b3191See the full diff
    • the response property data/interval became optional for the status 200

      response-property-became-optional

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

      response-property-became-optional

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

      response-property-list-of-types-widened

    • the data/stats response's property type/format changed from object/ to / for status 200

      response-property-type-changed

    • removed the required property data/stats/added from the response with the 200 status

      response-required-property-removed

    • removed the required property data/stats/avg_base_fee_mtokens from the response with the 200 status

      response-required-property-removed

    • removed the required property data/stats/avg_capacity from the response with the 200 status

      response-required-property-removed

    • removed the required property data/stats/avg_fee_rate from the response with the 200 status

      response-required-property-removed

    • removed the required property data/stats/channel_count from the response with the 200 status

      response-required-property-removed

    • removed the required property data/stats/clearnet_nodes from the response with the 200 status

      response-required-property-removed

    • removed the required property data/stats/clearnet_tor_nodes from the response with the 200 status

      response-required-property-removed

    • removed the required property data/stats/id from the response with the 200 status

      response-required-property-removed

    • removed the required property data/stats/med_base_fee_mtokens from the response with the 200 status

      response-required-property-removed

    • removed the required property data/stats/med_capacity from the response with the 200 status

      response-required-property-removed

    • removed the required property data/stats/med_fee_rate from the response with the 200 status

      response-required-property-removed

    • removed the required property data/stats/node_count from the response with the 200 status

      response-required-property-removed

    • removed the required property data/stats/tor_nodes from the response with the 200 status

      response-required-property-removed

    • removed the required property data/stats/total_capacity from the response with the 200 status

      response-required-property-removed

    • removed the required property data/stats/unannounced_nodes from the response with the 200 status

      response-required-property-removed

    • added MempoolStats subschema #2 to the data/stats response property anyOf list for the response status 200

      response-property-any-of-added

    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

Of the 22 revisions, 1 has no diff computed.