{"uid":"cap_r-5cXOxsQvo3p_Gx-kPfL","slug":"mat-web-data-toolkit-lightning-network-stats-bdd5143c","name":"Mat Web & Data Toolkit – Lightning Network Stats","description":"Fetches a public web page and returns its title, meta description, outbound links and readable plain text as JSON.","url":"https://automatom.matt-d59.workers.dev/lightning?utm_source=zero.xyz","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":[],"properties":{"unit":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"time":"2026-08-30T00:00:00.000Z","unit":"btc","nodes":16230,"source":"mempool.space","channels":32518,"tor_nodes":7983,"clearnet_nodes":4598,"avg_fee_rate_ppm":823,"avg_base_fee_msat":904,"avg_capacity_sats":11543596,"total_capacity_btc":3753.74668018,"median_fee_rate_ppm":100,"total_capacity_sats":375374668018,"median_capacity_sats":2010000}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_uIgEU9A26bbZ6iSsOVXO3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches current Lightning Network statistics including node count, channel count, capacity, and fee data from mempool.space.","exampleAgentPrompt":"What are the current Lightning Network stats — total capacity in BTC, number of nodes and channels, and average fee rate?","exampleUseCases":[{"title":"Lightning Network health dashboard","prompt":"Pull the latest Lightning Network snapshot — I need total capacity in BTC, total number of nodes, channels, and the average fee rate in ppm for my dashboard."},{"title":"Fee rate check before routing payment","prompt":"What's the current average and median fee rate on the Lightning Network in ppm right now? I want to decide if it's a good time to route a payment."},{"title":"Network growth monitoring","prompt":"Give me today's Lightning Network stats in BTC — nodes, channels, and total capacity — so I can compare against last week's numbers."}],"resultDescription":"Returns a JSON object with timestamp, unit (btc or sats), number of nodes, channels, Tor nodes, clearnet nodes, average fee rate in ppm, average base fee in msat, average and median channel capacity in sats, total network capacity in BTC and sats, and median fee rate in ppm, sourced from mempool.space.","failureModes":["mempool.space upstream unavailable — returns error or stale data","Invalid unit parameter — may return unexpected format","Rate limiting or payment failure — 402 payment required if USDC payment not processed","Network timeout if mempool.space is slow to respond"],"whenToPreferThis":"Use this endpoint when you need a quick, real-time snapshot of aggregate Lightning Network statistics (node count, channel count, capacity, fee rates) without needing to query mempool.space directly. Prefer this over general web-scraping endpoints when you specifically need structured Lightning Network metrics.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T12:51:01.576Z","isFirstParty":false,"canonicalSlug":"mat-web-data-toolkit-lightning-network-stats-bdd5143c"}