<p>Here's a snapshot of the <code>listchannels</code> output on c-lightning as of Feb 19 2018 <a href="https://gist.github.com/coinables/4f29d85c3902b3d8b0d929cd318af3f9" rel="nofollow noreferrer">https://gist.github.com/coinables/4f29d85c3902b3d8b0d929cd318af3f9</a>    </p>

<p>And same time as above but the output is for <code>listnodes</code> <a href="https://gist.github.com/coinables/19223b8bf09a24a3a6e8240433df04bf" rel="nofollow noreferrer">https://gist.github.com/coinables/19223b8bf09a24a3a6e8240433df04bf</a></p>

<p>With these two data sets you should be able to create a simple nodes &amp; edges relationship chart. Here's a very rough example using sigma.js, but the performance is quite poor. <a href="https://gist.github.com/coinables/034003b80148e88f68c641950ff08956" rel="nofollow noreferrer">https://gist.github.com/coinables/034003b80148e88f68c641950ff08956</a></p>

CC BY-SA 4.0
2019-06-11T08:32:57.467Z
Some nodes in nodes.json have empty `addresses`. What does it mean?
Sergei Tikhomirov
CC BY-SA 4.0
2018-06-13T04:55:36.460Z
2018-06-13T04:55:36.460Z
m1xolyd1an
<p><a href="https://ln.alhur.es/" rel="nofollow noreferrer">https://ln.alhur.es/</a> provides a download link for their historical channel database from this link: <a href="https://ln.alhur.es/static/channels.db" rel="nofollow noreferrer">https://ln.alhur.es/static/channels.db</a></p>

<p>Data starts June 2019 and provided by <a href="https://twitter.com/fiatjaf" rel="nofollow noreferrer">https://twitter.com/fiatjaf</a></p>

CC BY-SA 4.0
2019-08-31T04:15:14.387Z
2019-08-31T04:15:14.387Z
pseudozach
<p>I was wondering if it is possible for me to obtain data about the Lightning network mainnet, particularly the nodes and the edges (channels) in the network. I know that the graph is visualized in explorers such as <a href="https://lnmainnet.gaben.win/" rel="nofollow noreferrer">https://lnmainnet.gaben.win/</a> and <a href="https://graph.lndexplorer.com/" rel="nofollow noreferrer">https://graph.lndexplorer.com/</a>. I wish to obtain the data itself so I can reconstruct the graph and run some network simulations for my research. I understand that the standard way is to run a Lightning node yourself and then sync for the network's topology through your node. However, I do not have access to the computational resources and memory to run a full Lightning node.</p>

<p>If anyone knows of a way I can obtain the data without having to run a Lightning node, or has the data and is willing to share it for purely research purposes, it would be of tremendous help.</p>

<p>Thank you!</p>

<bitcoin-core><lightning-network><network><lightning-network-daemon><ln-topology>
Obtaining Lightning network graph data
antimornings
# Obtaining Lightning network graph data

(Asked by: username_0 on 2018-06-13)

I was wondering if it is possible for me to obtain data about the Lightning network mainnet, particularly the nodes and the edges (channels) in the network. I know that the graph is visualized in explorers such as <https://lnmainnet.gaben.win/> and <https://graph.lndexplorer.com/>. I wish to obtain the data itself so I can reconstruct the graph and run some network simulations for my research. I understand that the standard way is to run a Lightning node yourself and then sync for the network's topology through your node. However, I do not have access to the computational resources and memory to run a full Lightning node.

If anyone knows of a way I can obtain the data without having to run a Lightning node, or has the data and is willing to share it for purely research purposes, it would be of tremendous help.

Thank you!

**Tags:** bitcoin-core, lightning-network, network, lightning-network-daemon, ln-topology


---

## 2 answers

### Answer by username_1 on 2018-06-13. Score: 1

Here's a snapshot of the `listchannels` output on c-lightning as of Feb 19 2018 <https://gist.github.com/coinables/4f29d85c3902b3d8b0d929cd318af3f9>

And same time as above but the output is for `listnodes` <https://gist.github.com/coinables/19223b8bf09a24a3a6e8240433df04bf>

With these two data sets you should be able to create a simple nodes & edges relationship chart. Here's a very rough example using sigma.js, but the performance is quite poor. <https://gist.github.com/coinables/034003b80148e88f68c641950ff08956>

> **Comments:**
> **username_2**: Some nodes in nodes.json have empty `addresses`. What does it mean?  

---

### Answer by username_3 on 2019-08-31. Score: 1

<https://ln.alhur.es/> provides a download link for their historical channel database from this link: <https://ln.alhur.es/static/channels.db>

Data starts June 2019 and provided by <https://twitter.com/fiatjaf>


---

