# Glassnode Lightning Network Node Connectivity

> Glassnode Lightning Network Node Connectivity is a paid API for AI agents from x402.glassnode.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Returns daily counts of Lightning Network nodes connected via IP, TOR, or both connection types

## Facts

- Endpoint: GET https://x402.glassnode.com/v1/metrics/lightning/node_connectivity
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glassnode-lightning-network-node-connectivity-e5a1f84a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tJ8S2e-1OjFr4sAaJlbLk

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 glassnode-lightning-network-node-connectivity-e5a1f84a
```

Example prompt: What is the current number of Lightning Network nodes connected via IP or TOR? Pull the latest 24h BTC node connectivity data from Glassnode.

## When to prefer this

Use this endpoint when you need quantitative data on Lightning Network node connectivity specifically segmented by connection type (IP, TOR, both), sourced from Glassnode's on-chain analytics platform. Prefer this over generic blockchain explorers when you need historical time-series data at daily resolution with institutional-grade data quality.

## Known failure modes

- Missing required 'a' (asset) query parameter returns 400 error
- Invalid asset symbol (only BTC supported) returns 400 or 422 error
- Payment not provided or insufficient USDC balance returns 402 Payment Required
- Rate limiting or quota exceeded returns 429 error
- Glassnode data unavailable or delayed returns 503 or empty response

## How this service works

Lightning Network Node Connectivity — The number of nodes in the Lightning Network connected via IP, TOR, or both. Data by Glassnode.

## Output

An array of timestamped data points where each entry contains a Unix timestamp (t) and an object (o) with the count of Lightning Network nodes connected via IP, TOR, or both, measured at 24-hour resolution for Bitcoin.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "a"
     ],
     "properties": {
      "a": {
       "enum": [
        "BTC"
       ],
       "type": "string",
       "description": "Asset symbol, e.g. BTC, ETH"
      },
      "c": {
       "enum": [
        "native"
       ],
       "type": "string",
       "description": "Currency for denominated values, e.g. usd, native"
      },
      "f": {
       "enum": [
        "csv",
        "json"
       ],
       "type": "string",
       "description": "Response format: json or csv"
      },
      "i": {
       "enum": [
        "24h"
       ],
       "type": "string",
       "description": "Time interval / resolution, e.g. 24h, 1w, 1month"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "array",
     "items": {
      "type": "object",
      "properties": {
       "o": {
        "type": "object"
       },
       "t": {
        "type": "number"
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glassnode-lightning-network-node-connectivity-e5a1f84a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.glassnode.com](https://www.zero.xyz/host/x402.glassnode.com/llms.txt)
