{"uid":"cap_nJAsrZ6kQHsNBsFp142Sg","slug":"glassnode-lightning-network-node-count-9760e2f2","name":"Glassnode Lightning Network Node Count","description":"Lightning Network Number of Nodes — The number of Lightning Network nodes. Data by Glassnode.","url":"https://x402.glassnode.com/v1/metrics/lightning/nodes_count","method":"GET","headers":{},"bodySchema":{"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"},"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":{"t":{"type":"number"},"v":{"type":"number"}}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GuyBrJo8pET-YDlguXNBr","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the historical daily count of Lightning Network nodes for Bitcoin via Glassnode's on-chain analytics.","exampleAgentPrompt":"Pull the Glassnode Lightning Network node count data for Bitcoin in JSON format so I can see how the number of LN nodes has changed over the past 24h intervals.","exampleUseCases":null,"resultDescription":"An array of time-series data points, each containing a Unix timestamp (t) and the number of Lightning Network nodes (v) at that point in time, representing the daily count of active LN nodes on the Bitcoin network.","failureModes":["Missing required 'a' query parameter (must be 'BTC') returns a 400 error","Invalid format value for 'f' parameter returns a 400 error","Payment not provided or insufficient USDC balance causes a 402 Payment Required response","Network timeout or upstream Glassnode data unavailability returns a 503 error","Requesting an unsupported interval value for 'i' returns a 400 error"],"whenToPreferThis":"Use this endpoint when you need historical or current Lightning Network node count data specifically sourced from Glassnode's on-chain analytics platform, particularly when building dashboards, tracking BTC layer-2 adoption, or comparing network growth over time. Prefer this over generic crypto data sources when Glassnode's methodology and data quality are important.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:10:44.545Z","isFirstParty":false}